|
@@ -4,6 +4,7 @@ package com.steerinfo.dil.controller;
|
|
|
import com.steerinfo.dil.mapper.BackgroundProcessingMapper;
|
|
|
import com.steerinfo.dil.service.impl.BackgroundProcessingServiceImpl;
|
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
|
+import com.steerinfo.dil.util.DataChange;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -93,8 +94,10 @@ public class BackgroundProcessingController extends BaseRESTfulController {
|
|
|
@PostMapping("updateOrderStatus")
|
|
|
public RESTfulResult updateOrderStatus(@RequestBody(required = false) Map<String,Object> map){
|
|
|
if(map.get("orderNumber") != null){
|
|
|
- int i = backgroundProcessingMapper.updateOrderStatus(map);
|
|
|
- return success(i);
|
|
|
+ if(DataChange.dataToBigDecimal(map.get("orderStatus")).intValue() != 2) {
|
|
|
+ int i = backgroundProcessingMapper.updateOrderStatus(map);
|
|
|
+ return success(i);
|
|
|
+ }
|
|
|
}
|
|
|
return failed(0);
|
|
|
}
|