提交人瞩
This commit is contained in:
parent
4a6b4d7a2f
commit
d5eb363f93
@ -425,7 +425,7 @@ public class ResultRecordController extends AbstractController {
|
|||||||
@RequestMapping("/recordIdsSubmit")
|
@RequestMapping("/recordIdsSubmit")
|
||||||
public R recordIdsSubmit(String recordIds) {
|
public R recordIdsSubmit(String recordIds) {
|
||||||
if (StringUtil.isBlank(recordIds)) {
|
if (StringUtil.isBlank(recordIds)) {
|
||||||
return R.error("请选择状态为待提交的记录");
|
return R.error("请选择提交");
|
||||||
}
|
}
|
||||||
List<Long> records = new ArrayList<>();
|
List<Long> records = new ArrayList<>();
|
||||||
String ids[] = recordIds.split(",");
|
String ids[] = recordIds.split(",");
|
||||||
@ -436,7 +436,7 @@ public class ResultRecordController extends AbstractController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (recordIds == null) {
|
if (records == null) {
|
||||||
return R.error("请选择状态为待提交的记录");
|
return R.error("请选择状态为待提交的记录");
|
||||||
}
|
}
|
||||||
List<ResultRecord> resultRecords = resultRecordService.selectResultRecordByIds(records);
|
List<ResultRecord> resultRecords = resultRecordService.selectResultRecordByIds(records);
|
||||||
@ -447,10 +447,12 @@ public class ResultRecordController extends AbstractController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
R r = null;
|
R r = null;
|
||||||
for (ResultRecord resultRecord : resultRecords) {
|
for (ResultRecord resultRecord : resultRecords) {
|
||||||
r = resultRecordService.approval(resultRecord.getId(), getUserId());
|
r = resultRecordService.approval(resultRecord.getId(), getUserId());
|
||||||
|
if (!r.isSuccess()) {
|
||||||
|
return r;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r != null && r.isSuccess()) {//批量提交
|
if (r != null && r.isSuccess()) {//批量提交
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user