|
@@ -66,8 +66,14 @@ public class ApsProductDetailServiceImpl extends ServiceImpl<ApsProductDetailDao
|
|
|
@Override
|
|
|
public R getCustomOrderData(Map<String, Object> params) {
|
|
|
R r = new R();
|
|
|
+ String curtenantid = params.get("CURTENANTID").toString();
|
|
|
List<String> orderNos = new ArrayList<>();
|
|
|
orderNos.add(params.get("CUSTOMORDERNO").toString());
|
|
|
+ List<ApsProductionOrderDo> apsProductionOrderDos = apsProductDetailDao.getProductionOrders(curtenantid, orderNos);
|
|
|
+ if (apsProductionOrderDos.size() > 0) {
|
|
|
+ return R.error("该客户订单已经存在");
|
|
|
+ }
|
|
|
+
|
|
|
List<VNcOrderVo> vNcOrderVos = slaveSourceService.getVNcOrderVo(orderNos);
|
|
|
if (vNcOrderVos.size() == 0) {
|
|
|
return R.error("客户订单系统没有找到该订单");
|
|
@@ -630,9 +636,9 @@ public class ApsProductDetailServiceImpl extends ServiceImpl<ApsProductDetailDao
|
|
|
String alloystatus = orderDetail.getAlloystatus();
|
|
|
|
|
|
// List<GetOldTechnicalRequirementRes> apsProductDetailDoList = this.baseMapper.selectMyList(technicalRequirementId, orderDetail.getId(), alloy, alloystatus, orderProductTypeId);
|
|
|
- List<GetOldTechnicalRequirementRes> list1 = this.baseMapper.selectMyList1(technicalRequirementId, orderDetail.getId(),customId, alloy);
|
|
|
- List<GetOldTechnicalRequirementRes> list2 = this.baseMapper.selectMyList2(technicalRequirementId, orderDetail.getId(),customId, alloystatus);
|
|
|
- List<GetOldTechnicalRequirementRes> list3 = this.baseMapper.selectMyList3(technicalRequirementId, orderDetail.getId(),customId, orderProductTypeId);
|
|
|
+ List<GetOldTechnicalRequirementRes> list1 = this.baseMapper.selectMyList1(technicalRequirementId, orderDetail.getId(), customId, alloy);
|
|
|
+ List<GetOldTechnicalRequirementRes> list2 = this.baseMapper.selectMyList2(technicalRequirementId, orderDetail.getId(), customId, alloystatus);
|
|
|
+ List<GetOldTechnicalRequirementRes> list3 = this.baseMapper.selectMyList3(technicalRequirementId, orderDetail.getId(), customId, orderProductTypeId);
|
|
|
|
|
|
//合并三个list
|
|
|
List<GetOldTechnicalRequirementRes> apsProductDetailDoList = new LinkedList<>();
|