|
@@ -9,10 +9,8 @@ import com.rongwei.bsentity.vo.ApsPlanVo;
|
|
|
import com.rongwei.bsentity.vo.CheckAndSaveOrUpdateBlankReq;
|
|
|
import com.rongwei.bsentity.vo.CheckScheduleReq;
|
|
|
import com.rongwei.bsentity.vo.OrderLockVo;
|
|
|
-import com.rongwei.rwadmincommon.system.vo.SysUserVo;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
import com.rongwei.rwcommon.vo.CriteriaQuery;
|
|
|
-import com.rongwei.safecommon.utils.CXCommonUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -135,16 +133,7 @@ public class ApsBlankOrderController {
|
|
|
try {
|
|
|
log.info("插单;参数为:{}", params);
|
|
|
R resData = apsBlankOrderService.insertOrder(params);
|
|
|
- if (resData.getCode().equals("200")) {
|
|
|
- //获取当前用户相关信息
|
|
|
- SysUserVo currentUser = CXCommonUtils.getCurrentUser();
|
|
|
- //重新排程
|
|
|
- apsService.insertSchedule(params,currentUser);
|
|
|
-
|
|
|
- return resData;
|
|
|
- } else {
|
|
|
- return R.error();
|
|
|
- }
|
|
|
+ return resData;
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
log.info("插单异常:" + e.getMessage());
|
|
@@ -152,6 +141,15 @@ public class ApsBlankOrderController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
+ 插单后重排
|
|
|
+ */
|
|
|
+ @PostMapping("/insertSchedule")
|
|
|
+ public void insertSchedule(@RequestBody Map<String, Object> params) {
|
|
|
+ log.info("插单后重排;参数为:{}", params);
|
|
|
+ apsBlankOrderService.insertSchedule(params);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 校验和保存坯料计划
|
|
|
*/
|