|
@@ -329,16 +329,16 @@ public class BmstruckDetailsOrderController extends BaseRESTfulController {
|
|
public RESTfulResult updateBatchDetailsOrder(@RequestBody Map<String,Object> mapValue) throws Exception {
|
|
public RESTfulResult updateBatchDetailsOrder(@RequestBody Map<String,Object> mapValue) throws Exception {
|
|
List<Map<String,Object>> mapList = (List<Map<String,Object>>) mapValue.get("mapList");
|
|
List<Map<String,Object>> mapList = (List<Map<String,Object>>) mapValue.get("mapList");
|
|
int code = 0;
|
|
int code = 0;
|
|
- try{
|
|
|
|
- for (Map<String,Object> map :mapList) {
|
|
|
|
- if(bmstruckDetailsOrderService.getSaleOrderStatus(DataChange.dataToBigDecimal(map.get("saleOrderMaterialId")))!=4){
|
|
|
|
- return failed("存在未审核的订单,不允许修改单价!");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }catch (Exception e) {
|
|
|
|
- e.printStackTrace();
|
|
|
|
- System.out.println("查询订单状态异常");
|
|
|
|
- }
|
|
|
|
|
|
+// try{
|
|
|
|
+// for (Map<String,Object> map :mapList) {
|
|
|
|
+// if(bmstruckDetailsOrderService.getSaleOrderStatus(DataChange.dataToBigDecimal(map.get("saleOrderMaterialId")))!=4){
|
|
|
|
+// return failed("存在未审核的订单,不允许修改单价!");
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// }catch (Exception e) {
|
|
|
|
+// e.printStackTrace();
|
|
|
|
+// System.out.println("查询订单状态异常");
|
|
|
|
+// }
|
|
for (Map<String,Object> map :mapList) {
|
|
for (Map<String,Object> map :mapList) {
|
|
map.put("userId",mapValue.get("userId"));
|
|
map.put("userId",mapValue.get("userId"));
|
|
map.put("updatePlace",mapValue.get("updatePlace"));
|
|
map.put("updatePlace",mapValue.get("updatePlace"));
|