运营商实体类
parent
e1c7c79ea6
commit
82958b325a
|
@ -19,11 +19,12 @@ public class Operators extends BaseEntity {
|
||||||
/**
|
/**
|
||||||
* 运营商ID
|
* 运营商ID
|
||||||
*/
|
*/
|
||||||
private Long operators_id;
|
|
||||||
|
private Long operatorsId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 运营商
|
* 运营商
|
||||||
*/
|
*/
|
||||||
private String operators_name;
|
private String operatorsName;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,43 @@
|
||||||
package com.muyu.cloud.market.controller;
|
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 io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import lombok.extern.log4j.Log4j2;
|
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.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Log4j2
|
@Log4j2
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/orders")
|
@RequestMapping("/operators")
|
||||||
@Tag(name = "运营商控制层", description = "进行订单支付所用运营商管理")
|
@Tag(name = "运营商控制层", description = "进行订单支付所用运营商管理")
|
||||||
public class OperatorsController {
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,10 +3,22 @@ package com.muyu.cloud.market.service;
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
import com.muyu.cloud.market.domin.Operators;
|
import com.muyu.cloud.market.domin.Operators;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public interface OperatorsService extends IService<Operators> {
|
public interface OperatorsService extends IService<Operators> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 回显
|
||||||
|
* @param operatorsId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
Operators selectfindById (Integer operatorsId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
// static List<Operators> selectList();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.muyu.cloud.market.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.muyu.cloud.market.domin.Operators;
|
import com.muyu.cloud.market.domin.Operators;
|
||||||
|
import com.muyu.cloud.market.mapper.OperatorsMapper;
|
||||||
import com.muyu.cloud.market.service.OperatorsService;
|
import com.muyu.cloud.market.service.OperatorsService;
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
@ -10,11 +11,23 @@ import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@Log4j2
|
@Log4j2
|
||||||
public class OperatorsServiceImpl
|
public class OperatorsServiceImpl extends ServiceImpl<OperatorsMapper,Operators> implements OperatorsService
|
||||||
// extends ServiceImpl<Operators> implements OperatorsService
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Operators selectfindById(Integer operatorsId) {
|
||||||
|
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// @Override
|
// @Override
|
||||||
// public List<Operators> list() {
|
// public List<Operators> selectShowlist() {
|
||||||
// return OperatorsService.super.list();
|
//
|
||||||
|
// return null;
|
||||||
|
//
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue