parent
00c1c1e30f
commit
1126514070
@ -0,0 +1,35 @@
|
||||
package com.dsic.gj_erp.controller.zyjh;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.dsic.gj_erp.bean.ResultBean;
|
||||
import com.dsic.gj_erp.bean.jhgk.DmYdjhLj;
|
||||
import com.dsic.gj_erp.service.jcsj.impl.DmDwxxpService;
|
||||
import com.dsic.gj_erp.service.jhgk.DmYdjhLjService;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("zyjh")
|
||||
@AllArgsConstructor
|
||||
public class GetXXXController {
|
||||
|
||||
private final DmDwxxpService dmDwxxpService;
|
||||
private final DmYdjhLjService ydjhLjService;
|
||||
|
||||
@PostMapping("getYdjhlj")
|
||||
public ResultBean<?> getYdjhlj(@RequestBody DmYdjhLj lj){
|
||||
List<DmYdjhLj> list = ydjhLjService.list(Wrappers.<DmYdjhLj>lambdaQuery()
|
||||
.eq(DmYdjhLj::getCzbh, lj.getCzbh())
|
||||
.eq(StrUtil.isNotEmpty(lj.getPl()), DmYdjhLj::getPl, lj.getPl())
|
||||
);
|
||||
return new ResultBean<>(list);
|
||||
}
|
||||
|
||||
@GetMapping("getBFangDwxx")
|
||||
public ResultBean<?> getBFangDwxx(){
|
||||
return new ResultBean<>(dmDwxxpService.getDwxxForSelect());
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.dsic.gj_erp.mapper.jcsj.DmDwxxpMapper">
|
||||
|
||||
</mapper>
|
Loading…
Reference in new issue