更新代码

This commit is contained in:
xiao-fajia 2024-09-14 11:32:28 +08:00
parent 825dc1e12d
commit 87bbe404ce
4 changed files with 39 additions and 16 deletions

View File

@ -5,19 +5,19 @@ import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.stockOperate.entity.DlRepairSo; import cn.iocoder.yudao.module.stockOperate.entity.DlRepairSo;
import cn.iocoder.yudao.module.stockOperate.service.DlRepairSoService; import cn.iocoder.yudao.module.stockOperate.service.DlRepairSoService;
import cn.iocoder.yudao.module.stockOperate.vo.DlRepairSoReqVO; import cn.iocoder.yudao.module.stockOperate.vo.DlRepairSoReqVO;
import cn.iocoder.yudao.module.stockOperate.vo.DlRepairSoRespVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.bind.annotation.GetMapping; import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
/** /**
* 采购单领料单(DlRepairSo)表控制层 * 采购单领料单(DlRepairSo)表控制层
*
* @author 小李 * @author 小李
* @date 9:13 2024/9/13 * @date 9:13 2024/9/13
**/ **/
@RestController @RestController
@RequestMapping("/repair/so") @RequestMapping("/repair/so")
public class DlRepairSoController { public class DlRepairSoController {
@ -28,19 +28,16 @@ public class DlRepairSoController {
private DlRepairSoService dlRepairSoService; private DlRepairSoService dlRepairSoService;
/** /**
* 分页查询所有数据 * 采购单/领料单 新增
* @author 小李 * @author 小李
* @date 16:12 2024/9/13 * @date 10:49 2024/9/14
* @param repairSoReqVO 查询对象 * @param repairSoRespVO 采购单对象
* @param pageNo 页码
* @param pageSize 条数
**/ **/
@GetMapping("/page") @PostMapping("/create")
public CommonResult<?> getDlRepairSoPage(DlRepairSoReqVO repairSoReqVO, @Operation(summary = "采购单/领料单新增")
@RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo, public CommonResult<?> createRepairSo(@RequestBody DlRepairSoRespVO repairSoRespVO) {
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) { dlRepairSoService.createRepairSo(repairSoRespVO);
Page<DlRepairSo> page = new Page<>(pageNo, pageSize); return CommonResult.ok();
return null;
} }
} }

View File

@ -1,6 +1,7 @@
package cn.iocoder.yudao.module.stockOperate.service; package cn.iocoder.yudao.module.stockOperate.service;
import cn.iocoder.yudao.module.stockOperate.entity.DlRepairSo; import cn.iocoder.yudao.module.stockOperate.entity.DlRepairSo;
import cn.iocoder.yudao.module.stockOperate.vo.DlRepairSoRespVO;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
/** /**
@ -9,4 +10,12 @@ import com.baomidou.mybatisplus.extension.service.IService;
* @date 9:09 2024/9/13 * @date 9:09 2024/9/13
**/ **/
public interface DlRepairSoService extends IService<DlRepairSo> { public interface DlRepairSoService extends IService<DlRepairSo> {
/**
* 采购单/领料单 新增
* @author 小李
* @date 10:49 2024/9/14
* @param repairSoRespVO 采购单对象
**/
void createRepairSo(DlRepairSoRespVO repairSoRespVO);
} }

View File

@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.stockOperate.service.impl;
import cn.iocoder.yudao.module.stockOperate.entity.DlRepairSo; import cn.iocoder.yudao.module.stockOperate.entity.DlRepairSo;
import cn.iocoder.yudao.module.stockOperate.mapper.DlRepairSoMapper; import cn.iocoder.yudao.module.stockOperate.mapper.DlRepairSoMapper;
import cn.iocoder.yudao.module.stockOperate.service.DlRepairSoService; import cn.iocoder.yudao.module.stockOperate.service.DlRepairSoService;
import cn.iocoder.yudao.module.stockOperate.vo.DlRepairSoRespVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -16,6 +17,16 @@ import org.springframework.stereotype.Service;
public class DlRepairSoServiceImpl extends ServiceImpl<DlRepairSoMapper, DlRepairSo> public class DlRepairSoServiceImpl extends ServiceImpl<DlRepairSoMapper, DlRepairSo>
implements DlRepairSoService { implements DlRepairSoService {
/**
* 采购单/领料单 新增
* @author 小李
* @date 10:49 2024/9/14
* @param repairSoRespVO 采购单对象
**/
@Override
public void createRepairSo(DlRepairSoRespVO repairSoRespVO){
return;
}
} }

View File

@ -2,6 +2,9 @@ package cn.iocoder.yudao.module.stockOperate.vo;
import cn.iocoder.yudao.module.stockOperate.entity.DlRepairSo; import cn.iocoder.yudao.module.stockOperate.entity.DlRepairSo;
import lombok.Data; import lombok.Data;
import org.apache.poi.ss.formula.functions.T;
import java.util.List;
/** /**
* 采购单/领料单 响应VO * 采购单/领料单 响应VO
@ -10,4 +13,7 @@ import lombok.Data;
**/ **/
@Data @Data
public class DlRepairSoRespVO extends DlRepairSo { public class DlRepairSoRespVO extends DlRepairSo {
// 商品List
private List<T> partList;
} }