|
@@ -504,16 +504,15 @@ public class OrderServiceImpl extends SuperServiceImpl<OrderMapper, Order> imple
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
- List<Map>list = new ArrayList<Map>();
|
|
|
- if(map!=null&&map.get("orderList")!=null){
|
|
|
- list = (List<Map>)map.get("orderList");
|
|
|
- }
|
|
|
-
|
|
|
- isFalse(list==null||list.size()==0,"排产订单不能为空");
|
|
|
+// List<Map>list = new ArrayList<Map>();
|
|
|
+// if(map!=null&&map.get("orderList")!=null){
|
|
|
+// list = (List<Map>)map.get("orderList");
|
|
|
+// }
|
|
|
+//
|
|
|
+// isFalse(list==null||list.size()==0,"排产订单不能为空");
|
|
|
+ List<Plan>planList = planMapper.selectList(Wraps.<Plan>lbQ().in(Plan::getId,planIds)));
|
|
|
//更新订单状态
|
|
|
- for(Map m:list){
|
|
|
- Plan plan = new Plan();
|
|
|
- plan.setId(Long.parseLong(m.get("id").toString()));
|
|
|
+ for(Plan plan:planList){
|
|
|
plan.setPlanStatus("2");//进行中
|
|
|
plan.setSchedulingStatus("1");//已排产
|
|
|
plan.setProduceStatus("2");
|