|
|
|
@ -9,6 +9,7 @@ import com.dsic.gj_erp.bean.jhgk.DmYdjhLj;
|
|
|
|
|
import com.dsic.gj_erp.bean.pgd.PgdDmjh;
|
|
|
|
|
import com.dsic.gj_erp.bean.pgd.PgdDmjh;
|
|
|
|
|
import com.dsic.gj_erp.exception.CustomException;
|
|
|
|
|
import com.dsic.gj_erp.service.jhgk.DmYdjhLjService;
|
|
|
|
|
import com.dsic.gj_erp.service.pgd.PgdDmjhService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
@ -33,20 +34,25 @@ public class PgdDmjhController {
|
|
|
|
|
@Autowired
|
|
|
|
|
PgdDmjhService pgdDmjhService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
DmYdjhLjService dmYdjhLjService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/getDmPgd")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public ResultBean getDmPgd(HttpServletRequest req, @RequestBody Map map) throws Exception, CustomException {
|
|
|
|
|
QueryWrapper<PgdDmjh> qw =new QueryWrapper<>();
|
|
|
|
|
QueryWrapper<DmYdjhLj> qw =new QueryWrapper<>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
qw.eq(StrUtil.isNotEmpty((String)map.get("dcch")),"czbh",(String)map.get("dcch"));
|
|
|
|
|
qw.eq(StrUtil.isNotEmpty((String)map.get("pl")),"pl",(String)map.get("pl"));
|
|
|
|
|
qw.eq(StrUtil.isNotEmpty((String)map.get("fd")),"fd",(String)map.get("fd"));
|
|
|
|
|
qw.eq(StrUtil.isNotEmpty((String)map.get("zt")),"zt",(String)map.get("zt"));
|
|
|
|
|
qw.eq(StrUtil.isNotEmpty((String)map.get("zt")),"dm_zt",(String)map.get("zt"));
|
|
|
|
|
|
|
|
|
|
qw.eq("dmbs","Y");
|
|
|
|
|
qw.orderBy(true,true,"czbh","pl","fd");
|
|
|
|
|
return new ResultBean(pgdDmjhService.list(qw));
|
|
|
|
|
return new ResultBean(dmYdjhLjService.list(qw));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -83,5 +89,13 @@ public class PgdDmjhController {
|
|
|
|
|
return new ResultBean();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/saveDmPgdJs")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
@AuthFunction
|
|
|
|
|
public ResultBean saveDmPgdJs(HttpServletRequest req, @RequestBody List<DmYdjhLj>list) throws Exception, CustomException {
|
|
|
|
|
pgdDmjhService.saveDmPgdJs(list,req);
|
|
|
|
|
return new ResultBean();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|