运营商实体类

dev2
Aaaaaaaa 2024-08-29 16:41:01 +08:00
parent e1c7c79ea6
commit 82958b325a
4 changed files with 64 additions and 8 deletions

View File

@ -19,11 +19,12 @@ public class Operators extends BaseEntity {
/**
* ID
*/
private Long operators_id;
private Long operatorsId;
/**
*
*/
private String operators_name;
private String operatorsName;
}

View File

@ -1,13 +1,43 @@
package com.muyu.cloud.market.controller;
import com.dtflys.forest.springboot.annotation.ForestScannerRegister;
import com.muyu.cloud.market.domin.Operators;
import com.muyu.cloud.market.service.OperatorsService;
import com.muyu.common.core.domain.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.expression.spel.ast.Operator;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Log4j2
@RestController
@RequestMapping("/orders")
@RequestMapping("/operators")
@Tag(name = "运营商控制层", description = "进行订单支付所用运营商管理")
public class OperatorsController {
public OperatorsController() {
log.info("forest{} 扫描路径", ForestScannerRegister.getBasePackages());
}
@Autowired
private OperatorsService operatorsService;
@PostMapping("/list")
@Operation(summary = "查看运营商")
public Result<List<Operators>> selectList (){
// return Result.success(OperatorsService.selectList());
return null;
}
}

View File

@ -3,10 +3,22 @@ package com.muyu.cloud.market.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.cloud.market.domin.Operators;
import java.util.List;
public interface OperatorsService extends IService<Operators> {
/**
*
* @param operatorsId
* @return
*/
Operators selectfindById (Integer operatorsId);
/**
*
* @return
*/
// static List<Operators> selectList();

View File

@ -2,6 +2,7 @@ package com.muyu.cloud.market.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.cloud.market.domin.Operators;
import com.muyu.cloud.market.mapper.OperatorsMapper;
import com.muyu.cloud.market.service.OperatorsService;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
@ -10,11 +11,23 @@ import java.util.List;
@Service
@Log4j2
public class OperatorsServiceImpl
// extends ServiceImpl<Operators> implements OperatorsService
public class OperatorsServiceImpl extends ServiceImpl<OperatorsMapper,Operators> implements OperatorsService
{
@Override
public Operators selectfindById(Integer operatorsId) {
return null;
}
// @Override
// public List<Operators> list() {
// return OperatorsService.super.list();
// public List<Operators> selectShowlist() {
//
// return null;
//
// }
}