|
@@ -72,8 +72,10 @@ public class AdminPatentNewApiController extends CertifyApiController {
|
|
|
@RequestMapping(value = "/updatePatentNew", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/updatePatentNew", method = RequestMethod.POST)
|
|
|
public Result updatePatentNew(PatentNewBo p){
|
|
public Result updatePatentNew(PatentNewBo p){
|
|
|
Result res = new Result();
|
|
Result res = new Result();
|
|
|
- if (p.getApplyDates()!=null||p.getAuthorizationDates()!=null) {
|
|
|
|
|
|
|
+ if (p.getApplyDates()!=null) {
|
|
|
p.setApplyDate(DateUtils.StringToDate(p.getApplyDates(),AFTConstants.YYYYMMDD));
|
|
p.setApplyDate(DateUtils.StringToDate(p.getApplyDates(),AFTConstants.YYYYMMDD));
|
|
|
|
|
+ }
|
|
|
|
|
+ if(p.getAuthorizationDates()!=null) {
|
|
|
p.setAuthorizationDate(DateUtils.StringToDate(p.getAuthorizationDates(),AFTConstants.YYYYMMDD));
|
|
p.setAuthorizationDate(DateUtils.StringToDate(p.getAuthorizationDates(),AFTConstants.YYYYMMDD));
|
|
|
}
|
|
}
|
|
|
if (p.getTid()!=null&&patentNewService.checkTid(p.getTid())) {
|
|
if (p.getTid()!=null&&patentNewService.checkTid(p.getTid())) {
|