|
@@ -105,8 +105,11 @@ public class CenterdataTEmergencyMaterialController extends BaseController {
|
|
|
if (!centerdataTEmergencyMaterialService.uniqueCheck("centerdata_t_emergency_material", keys, values)) {
|
|
|
return AjaxResult.error("此部门下已存在该物资名称");
|
|
|
}
|
|
|
- int result = centerdataTEmergencyMaterialService.updateCenterdataTEmergencyMaterial(centerdataTEmergencyMaterial);
|
|
|
- return toAjax(result);
|
|
|
+ int num = centerdataTEmergencyMaterialService.updateCenterdataTEmergencyMaterial(centerdataTEmergencyMaterial);
|
|
|
+ if (num == -1) {
|
|
|
+ return AjaxResult.error("生产日期不能大于当前日期");
|
|
|
+ }
|
|
|
+ return toAjax(num);
|
|
|
}
|
|
|
|
|
|
/**
|