mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
计算用板量错误修改,排单查询系统配置逻辑修改
This commit is contained in:
+1
-1
@@ -174,7 +174,7 @@ public interface PlateMapper extends BaseMapperX<PlateDO> {
|
||||
|
||||
|
||||
|
||||
List<PlateDetailRespVO> selectPlateListByGoodsIds(@Param("orderIds") List<Long> orderIds,@Param("goodsIdList") List<Long> goodsIdList, @Param("organId") Long organId);
|
||||
List<PlateDetailRespVO> selectPlateListByGoodsIds(@Param("orderIds") List<Long> orderIds, @Param("organId") Long organId);
|
||||
|
||||
List<PlateDetailRespVO> selectNoPlanPlate(@Param("orderIds") List<Long> orderIds, @Param("ids") List<Long> ids, @Param("organId") Long organId);
|
||||
|
||||
|
||||
+4
-6
@@ -492,9 +492,9 @@ public class OptimizePlanServiceImpl implements OptimizePlanService {
|
||||
|
||||
List<GoodsReqVO> goodsDOS = goodsMapper.selectGoodsList(orderId,getUserOrganId());
|
||||
|
||||
List<Long> goodsIds = goodsDOS.stream().map(GoodsReqVO::getId).distinct().toList();
|
||||
AssertUtils.notEmpty(goodsDOS,THIS_ORDER_NOT_PLATE_DATA);
|
||||
|
||||
List<PlateDetailRespVO> plateDOS = plateMapper.selectPlateListByGoodsIds(Collections.singletonList(orderId),goodsIds,getUserOrganId());
|
||||
List<PlateDetailRespVO> plateDOS = plateMapper.selectPlateListByGoodsIds(Collections.singletonList(orderId),getUserOrganId());
|
||||
|
||||
AssertUtils.notEmpty(plateDOS,ORDER_PLATE_ERROR);
|
||||
|
||||
@@ -697,6 +697,8 @@ public class OptimizePlanServiceImpl implements OptimizePlanService {
|
||||
throw exception(THIS_PLAN_OPTIMIZE_IS_LOCK);
|
||||
}
|
||||
|
||||
esUtils.deleteEsDocument(FIELD_PLAN_ID,FIELD_PLAN_CONFIG_ID,planId,req.getPlanConfigId(),ORDER_OPTIMIZE_PLATE_MODEL);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -720,10 +722,6 @@ public class OptimizePlanServiceImpl implements OptimizePlanService {
|
||||
|
||||
plateMapper.updateBatch(plateDOS);
|
||||
|
||||
// Long planConfigId = req.getPlanConfigId();
|
||||
|
||||
// esUtils.deleteEsDocument(FIELD_PLAN_CONFIG_ID,FIELD_PLAN_ID,planConfigId,planId,ORDER_OPTIMIZE_PLATE_MODEL);
|
||||
|
||||
// 保存优化后的大板数据
|
||||
esUtils.saveEsDocument(ORDER_OPTIMIZE_PLATE_MODEL,req.getOptimizeBoardModelDOS());
|
||||
|
||||
|
||||
-5
@@ -445,11 +445,6 @@
|
||||
#{orderIds}
|
||||
</foreach>
|
||||
|
||||
and op.goods_id in
|
||||
<foreach collection="goodsIdList" item="goodsIdList" open="(" close=")" separator=",">
|
||||
#{goodsIdList}
|
||||
</foreach>
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user