|
|
|
@ -13,6 +13,7 @@ import com.dsic.gj_erp.bean.czzj.MpDhsj;
|
|
|
|
|
import com.dsic.gj_erp.bean.jhgk.DmYdjh;
|
|
|
|
|
import com.dsic.gj_erp.bean.jhgk.DmYdjhLj;
|
|
|
|
|
import com.dsic.gj_erp.bean.kc.ImCkwpkwp;
|
|
|
|
|
import com.dsic.gj_erp.bean.zyjh.DmYppyz;
|
|
|
|
|
import com.dsic.gj_erp.bean.zyjh.PwExcel;
|
|
|
|
|
import com.dsic.gj_erp.bean.zyjh.Ycldw;
|
|
|
|
|
import com.dsic.gj_erp.bean.zyjh.YcldwInfo;
|
|
|
|
@ -30,6 +31,7 @@ import com.dsic.gj_erp.wsclient.Message;
|
|
|
|
|
import com.dsic.gj_erp.wsclient.WebSocketService;
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import org.springframework.transaction.support.TransactionTemplate;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
@ -60,14 +62,39 @@ public class ZyjhController {
|
|
|
|
|
|
|
|
|
|
private final MpDhsjServcie mpDhsjServcie;
|
|
|
|
|
|
|
|
|
|
private final TransactionTemplate transactionTemplate;
|
|
|
|
|
|
|
|
|
|
@PostMapping("yppbg")
|
|
|
|
|
public ResultBean<?> yppbg(@RequestBody List<PPBGongDto> list){
|
|
|
|
|
List<DmYdjhLj> updateList=new ArrayList<>();
|
|
|
|
|
list.forEach(item->{
|
|
|
|
|
transactionTemplate.execute((status)->{
|
|
|
|
|
zyjhService.ppbg(item.getId());
|
|
|
|
|
|
|
|
|
|
if (item.getLjList()!=null){
|
|
|
|
|
item.getLjList().forEach(lj->{
|
|
|
|
|
DmYdjhLj dmYdjhLj = new DmYdjhLj();
|
|
|
|
|
dmYdjhLj.setId(lj.getId());
|
|
|
|
|
dmYdjhLj.setPpzt("03");
|
|
|
|
|
updateList.add(dmYdjhLj);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
zyjhService.ppBGong(updateList,null,null,null);
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
return new ResultBean<>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 预配盘完整性检查
|
|
|
|
|
* 根据输入的船号、批次,分段,图号等信息检查已完工的作业计划零件是否已经摆放完全
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping("wzxjc")
|
|
|
|
|
public ResultBean<?> wzxjc(@RequestBody DmYdjhLj lj){
|
|
|
|
|
|
|
|
|
|
return new ResultBean<>();
|
|
|
|
|
public ResultBean<?> wzxjc(@RequestBody DmYppyz yppyz){
|
|
|
|
|
List<DmYppyz> ybf = zyjhService.getYbf(yppyz);
|
|
|
|
|
return new ResultBean<>(ybf);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -79,7 +106,7 @@ public class ZyjhController {
|
|
|
|
|
if (ObjUtil.isNotEmpty(dto.getLjList())){
|
|
|
|
|
List<DmYdjhLj> list=dto.getLjList();
|
|
|
|
|
zyjhService.ppBGong(list,dto.getDcCh(),dto.getDcPl(),dto.getZyq());
|
|
|
|
|
zyjhService.ppwc(dto.getId(),dto.getDcCh(),dto.getDcPl());
|
|
|
|
|
zyjhService.ppwc(dto.getId(),dto.getDcCh(),dto.getDcPl(),dto.getDcFd());
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return new ResultBean<>();
|
|
|
|
|