Bläddra i källkod

成果发布时间修改

liliang4869 7 år sedan
förälder
incheckning
690bca67fc

+ 3 - 0
src/main/java/com/goafanti/demand/controller/AdminDemandApiController.java

@@ -1,5 +1,7 @@
 package com.goafanti.demand.controller;
 
+import java.util.Date;
+
 import javax.annotation.Resource;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
@@ -196,6 +198,7 @@ public class AdminDemandApiController extends CertifyApiController {
 		}
 		if(AFTConstants.YES == auditResult){
 			d.setAuditStatus(DemandAuditStatus.AUDITED.getCode());
+			d.setReleaseDate(new Date());
 		}else if(AFTConstants.NO == auditResult){
 			d.setAuditStatus(DemandAuditStatus.UNAUDITED.getCode());
 		}

+ 1 - 1
src/main/java/com/goafanti/demand/controller/UserDemandApiController.java

@@ -235,7 +235,7 @@ public class UserDemandApiController extends CertifyApiController {
 		}
 		Demand d = new Demand();
 		d.setId(id);
-		d.setReleaseDate(new Date());
+//		d.setReleaseDate(new Date());
 		d.setAuditStatus(DemandAuditStatus.INAUDIT.getCode());
 		demandService.updateByPrimaryKeySelective(d);
 		return res;

+ 1 - 1
src/main/java/com/goafanti/demand/service/impl/DemandServiceImpl.java

@@ -259,7 +259,7 @@ public class DemandServiceImpl extends BaseMybatisDao<DemandMapper> implements D
 		d.setInfoSources(source_platform);
 		if (DemandAuditStatus.INAUDIT.getCode().equals(d.getAuditStatus())) {
 			createAuditorNotice(d);
-			d.setReleaseDate(new Date());
+//			d.setReleaseDate(new Date());
 		} else {
 			d.setAuditStatus(DemandAuditStatus.CREATE.getCode());
 		}