|
|
@@ -38,6 +38,10 @@ public class AdminPatentNewApiController extends CertifyApiController {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "专利", "专利"));
|
|
|
return res;
|
|
|
}
|
|
|
+ if (StringUtils.isBlank(p.getEmail())) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "邮箱", "邮箱"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
if ( StringUtils.isBlank(p.getApplyDates())|| StringUtils.isBlank(p.getAuthorizationDates())) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "时间", "时间"));
|
|
|
return res;
|
|
|
@@ -60,10 +64,14 @@ public class AdminPatentNewApiController extends CertifyApiController {
|
|
|
@RequestMapping(value = "/updatePatentNew", method = RequestMethod.POST)
|
|
|
public Result updatePatentNew(PatentNewBo p){
|
|
|
Result res = new Result();
|
|
|
- if (StringUtils.isBlank(p.getPatentNo())|| StringUtils.isBlank(p.getName())||StringUtils.isBlank(p.getCertificateUrl())) {
|
|
|
+ if (StringUtils.isBlank(p.getPatentNo())|| StringUtils.isBlank(p.getName())) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "专利", "专利"));
|
|
|
return res;
|
|
|
}
|
|
|
+ if ( StringUtils.isBlank(p.getEmail())) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "邮箱", "邮箱"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat( AFTConstants.YYYYMMDD);
|
|
|
try {
|
|
|
p.setApplyDate(sdf.parse(p.getApplyDates()));
|