|
@@ -13,6 +13,7 @@ import com.rongwei.rwcommon.utils.SecurityUtil;
|
|
|
import com.rongwei.rwcommon.utils.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
@@ -109,9 +110,11 @@ public class ApsProductDetailServiceImpl extends ServiceImpl<ApsProductDetailDao
|
|
|
更新客户订单
|
|
|
*/
|
|
|
@Override
|
|
|
- public R updateCustomOrder(List<String> orderNos) {
|
|
|
+ public R updateCustomOrder(Map<String, Object> params) {
|
|
|
StringBuffer noOrderNos = new StringBuffer();//不存在客户订单系统里的客户订单号
|
|
|
List<String> hasOrderNos = new ArrayList<>();//存在客户订单系统里的客户订单号
|
|
|
+ String curtenantid = params.get("CURTENANTID").toString();
|
|
|
+ List<String> orderNos = (List<String>) params.get("ORDERNOS");
|
|
|
|
|
|
//客户订单系统的数据
|
|
|
List<VNcOrderVo> vNcOrderVoList = slaveSourceService.getVNcOrderVo(orderNos);
|
|
@@ -129,8 +132,8 @@ public class ApsProductDetailServiceImpl extends ServiceImpl<ApsProductDetailDao
|
|
|
List<ApsProductDetailDo> apsProductDetailDoList = new ArrayList<>();
|
|
|
List<String> delProductDetailIdList = new ArrayList<>();
|
|
|
if (hasOrderNos.size() > 0) {
|
|
|
- List<ApsProductionOrderDo> apsProductionOrderDos = apsProductDetailDao.getProductionOrders(hasOrderNos);
|
|
|
- List<ApsProductDetailDo> apsProductDetailDos = apsProductDetailDao.getProductDetails(hasOrderNos);
|
|
|
+ List<ApsProductionOrderDo> apsProductionOrderDos = apsProductDetailDao.getProductionOrders(curtenantid, hasOrderNos);
|
|
|
+ List<ApsProductDetailDo> apsProductDetailDos = apsProductDetailDao.getProductDetails(curtenantid, hasOrderNos);
|
|
|
// List<ApsCustomerManagementDo> customDatas = apsProductDetailDao.getCustomerData();
|
|
|
//明细 物料、合金、合金状态转换
|
|
|
List<ApsProcessMaterialDo> materialDos = apsProductDetailDao.getMaterialData();
|
|
@@ -278,9 +281,11 @@ public class ApsProductDetailServiceImpl extends ServiceImpl<ApsProductDetailDao
|
|
|
更新合并客户订单
|
|
|
*/
|
|
|
@Override
|
|
|
- public R updateMergeCustomOrder(List<String> orderNos) {
|
|
|
+ public R updateMergeCustomOrder(@RequestBody Map<String, Object> params) {
|
|
|
StringBuffer noOrderNos = new StringBuffer();//不存在客户订单系统里的客户订单号
|
|
|
List<String> hasOrderNos = new ArrayList<>();//存在客户订单系统里的客户订单号
|
|
|
+ String curtenantid = params.get("CURTENANTID").toString();
|
|
|
+ List<String> orderNos = (List<String>) params.get("ORDERNOS");
|
|
|
|
|
|
//客户订单系统的数据
|
|
|
List<VNcOrderVo> vNcOrderVoList = slaveSourceService.getVNcOrderVo(orderNos);
|
|
@@ -294,8 +299,8 @@ public class ApsProductDetailServiceImpl extends ServiceImpl<ApsProductDetailDao
|
|
|
}
|
|
|
|
|
|
//本系统的订单信息
|
|
|
- List<ApsProductionMergeOrderDo> apsProductionMergeOrderDos = apsProductDetailDao.getProductionMergeOrders(hasOrderNos);
|
|
|
- List<ApsProductDetailDo> apsProductDetailDos = apsProductDetailDao.getProductDetails(hasOrderNos);
|
|
|
+ List<ApsProductionMergeOrderDo> apsProductionMergeOrderDos = apsProductDetailDao.getProductionMergeOrders(curtenantid, hasOrderNos);
|
|
|
+ List<ApsProductDetailDo> apsProductDetailDos = apsProductDetailDao.getProductDetails(curtenantid, hasOrderNos);
|
|
|
List<ApsProductionMergeOrderDo> apsProductionMergeOrderDoList = new ArrayList<>();
|
|
|
List<ApsProductDetailDo> apsProductDetailDoList = new ArrayList<>();
|
|
|
List<String> delProductDetailIdList = new ArrayList<>();
|