|
|
@@ -135,7 +135,7 @@ public class AdminReleaseApiController extends CertifyApiController{
|
|
|
@RequestMapping(value = "/dtails", method = RequestMethod.GET)
|
|
|
public Result details(Integer id){
|
|
|
Result res =new Result();
|
|
|
- res.setData(publicReleaseService.details(id));
|
|
|
+ res.setData(publicReleaseService.dtails(id));
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
@@ -365,14 +365,6 @@ public class AdminReleaseApiController extends CertifyApiController{
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"公出编号"));
|
|
|
return res;
|
|
|
}
|
|
|
- if (supplement==null) {
|
|
|
- res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"本次公出目标总结"));
|
|
|
- return res;
|
|
|
- }
|
|
|
- if (nextPlan==null) {
|
|
|
- res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"下次公出计划"));
|
|
|
- return res;
|
|
|
- }
|
|
|
res.setData(publicReleaseService.addSupplement( id ,supplement,nextPlan));
|
|
|
return res;
|
|
|
}
|