update:
验证多步骤任务必须有标识卡才能提交
This commit is contained in:
parent
ddf6078774
commit
1616215534
@ -144,6 +144,9 @@ public class CurrTaskController extends BaseController {
|
|||||||
@ApiOperation(value = "订单加工-创建多个个分步骤加工任务至任务队列")
|
@ApiOperation(value = "订单加工-创建多个个分步骤加工任务至任务队列")
|
||||||
public R<String> createAutoTask(@Validated @RequestBody AutoCurrTaskParam autoCurrTaskParam){
|
public R<String> createAutoTask(@Validated @RequestBody AutoCurrTaskParam autoCurrTaskParam){
|
||||||
List<TaskCreateParam> detParams = autoCurrTaskParam.getTaskCreateParamList();
|
List<TaskCreateParam> detParams = autoCurrTaskParam.getTaskCreateParamList();
|
||||||
|
if (detParams.size()==0){
|
||||||
|
return failed("请添加至少一个标识卡!");
|
||||||
|
}
|
||||||
Boolean apmsCreateProcessSheet=false;
|
Boolean apmsCreateProcessSheet=false;
|
||||||
String sheetNo=null;
|
String sheetNo=null;
|
||||||
int i=1;
|
int i=1;
|
||||||
|
Loading…
Reference in New Issue
Block a user