|
|
|
@ -9,10 +9,8 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
import com.dsic.gj_erp.annotation.AuthFunction;
|
|
|
|
|
import com.dsic.gj_erp.bean.ResultBean;
|
|
|
|
|
import com.dsic.gj_erp.bean.czzj.MpDhsj;
|
|
|
|
|
import com.dsic.gj_erp.bean.jhgk.DmYdjh;
|
|
|
|
|
import com.dsic.gj_erp.bean.kc.ImCkwpkwp;
|
|
|
|
|
import com.dsic.gj_erp.bean.pbsc.MpYlxxp;
|
|
|
|
|
import com.dsic.gj_erp.bean.zyjh.PwExcel;
|
|
|
|
|
import com.dsic.gj_erp.bean.zyjh.Ycldw;
|
|
|
|
|
import com.dsic.gj_erp.bean.zyjh.YcldwInfo;
|
|
|
|
@ -21,7 +19,6 @@ import com.dsic.gj_erp.exception.ServiceException;
|
|
|
|
|
import com.dsic.gj_erp.listeners.ExcelPwListener;
|
|
|
|
|
import com.dsic.gj_erp.service.czzj.MpDhsjServcie;
|
|
|
|
|
import com.dsic.gj_erp.service.kc.ImCkwpkwpService;
|
|
|
|
|
import com.dsic.gj_erp.service.pgsc.MpYlxxpService;
|
|
|
|
|
import com.dsic.gj_erp.service.zyjh.YcldwInfoService;
|
|
|
|
|
import com.dsic.gj_erp.service.zyjh.YcldwService;
|
|
|
|
|
import com.dsic.gj_erp.service.zyjh.ZyjhService;
|
|
|
|
@ -265,14 +262,17 @@ public class ZyjhController {
|
|
|
|
|
ycldwInfoService.updatePw(dto.getYcldwInfo());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//更新质量的炉批号
|
|
|
|
|
List<MpDhsj> collect=new ArrayList<>();
|
|
|
|
|
list.forEach(item -> {
|
|
|
|
|
MpDhsj mpDhsj = new MpDhsj();
|
|
|
|
|
//生成零件信息
|
|
|
|
|
list.forEach(item-> zyjhService.createLj(item.getDcCh(),item.getDcPl(),item.getTzbh()));
|
|
|
|
|
|
|
|
|
|
collect.add(mpDhsj);
|
|
|
|
|
});
|
|
|
|
|
mpDhsjServcie.saveBatch(collect);
|
|
|
|
|
//生成质量信息
|
|
|
|
|
// List<MpDhsj> collect=new ArrayList<>();
|
|
|
|
|
// list.forEach(item -> {
|
|
|
|
|
// MpDhsj mpDhsj = new MpDhsj();
|
|
|
|
|
//
|
|
|
|
|
// collect.add(mpDhsj);
|
|
|
|
|
// });
|
|
|
|
|
// mpDhsjServcie.saveBatch(collect);
|
|
|
|
|
|
|
|
|
|
wsHandler.sendHXComplete((JSONObject) JSONObject.toJSON(dto.getYcldwInfo()));
|
|
|
|
|
wsHandler.sendQGComplete((JSONObject) JSONObject.toJSON(dto.getYcldwInfo()));
|
|
|
|
@ -433,7 +433,8 @@ public class ZyjhController {
|
|
|
|
|
.eq(StrUtil.isNotEmpty(search.getDcch()),DmYdjh::getDcCh, search.getDcch())
|
|
|
|
|
.eq(StrUtil.isNotEmpty(search.getDcPl()),DmYdjh::getDcPl, search.getDcPl())
|
|
|
|
|
.eq(StrUtil.isNotEmpty(search.getKw()),DmYdjh::getKw, search.getKw())
|
|
|
|
|
.orderByDesc(DmYdjh::getDjh)
|
|
|
|
|
.eq(StrUtil.isNotEmpty(search.getZylx()),DmYdjh::getZylx, search.getZylx())
|
|
|
|
|
.orderByAsc(DmYdjh::getDjh)
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
return new ResultBean<>(list);
|
|
|
|
|