|
@@ -813,6 +813,7 @@ public class MaterialInfoController {
|
|
|
return result;
|
|
|
|
|
|
}
|
|
|
+ String refuseReason = requestJson.getString("refuseReason");
|
|
|
int successNum = 0;
|
|
|
for (int i = 0; i < ids.size(); i++) {
|
|
|
String id = ids.getString(i);
|
|
@@ -820,7 +821,11 @@ public class MaterialInfoController {
|
|
|
materialInfo.setId(id);
|
|
|
materialInfo.setStatus(status);
|
|
|
materialInfo.setAuditorId(userId);
|
|
|
- materialInfo.setConfirmTime(new Date());
|
|
|
+ if (status == 1) {
|
|
|
+ materialInfo.setConfirmTime(new Date());
|
|
|
+ } else if (status == 2) {
|
|
|
+ materialInfo.setRefuseReason(refuseReason);
|
|
|
+ }
|
|
|
boolean b = materialInfoService.updateById(materialInfo);
|
|
|
if (b) {
|
|
|
successNum++;
|