|
@@ -59,8 +59,11 @@ public class AdminReleaseApiController extends CertifyApiController{
|
|
|
}
|
|
}
|
|
|
try {
|
|
try {
|
|
|
String format = AFTConstants.YYYYMMDDHHMMSS;
|
|
String format = AFTConstants.YYYYMMDDHHMMSS;
|
|
|
- in.setReleaseStart(DateUtils.parseDate(in.getReleaseStarts(), AFTConstants.YYYYMMDDHHMMSS));
|
|
|
|
|
- in.setReleaseEnd(DateUtils.parseDate(in.getReleaseEnds(), 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) {
|
|
} catch (ParseException e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
throw new BusinessException("转换异常");
|
|
throw new BusinessException("转换异常");
|