|
|
@@ -128,8 +128,12 @@ public class AdminReleaseApiController extends CertifyApiController{
|
|
|
return res;
|
|
|
}
|
|
|
try {
|
|
|
- in.setReleaseStart(DateUtils.parseDate(in.getReleaseStarts(), AFTConstants.YYYYMMDDHHMMSS));
|
|
|
- in.setReleaseEnd(DateUtils.parseDate(in.getReleaseEnds(), AFTConstants.YYYYMMDDHHMMSS));
|
|
|
+ String format = AFTConstants.YYYYMMDDHHMMSS;
|
|
|
+ if (in.getType()==5){
|
|
|
+ format = AFTConstants.YYYYMMDD;
|
|
|
+ }
|
|
|
+ in.setReleaseStart(DateUtils.parseDate(in.getReleaseStarts(), format));
|
|
|
+ in.setReleaseEnd(DateUtils.parseDate(in.getReleaseEnds(), format));
|
|
|
} catch (ParseException e) {
|
|
|
e.printStackTrace();
|
|
|
throw new BusinessException("转换异常");
|