Browse Source

新增最大公出日志列表

anderx 1 year ago
parent
commit
b0693931e4

+ 3 - 0
src/main/java/com/goafanti/common/model/OrderPublicReleaseLog.java

@@ -1,5 +1,7 @@
 package com.goafanti.common.model;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
+
 import java.io.Serializable;
 import java.util.Date;
 
@@ -126,6 +128,7 @@ public class OrderPublicReleaseLog implements Serializable {
         this.auditorName = auditorName;
     }
 
+    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
     public Date getCreateTime() {
         return createTime;
     }

+ 14 - 0
src/main/java/com/goafanti/weChat/controller/AdminReleaseApiController.java

@@ -6,6 +6,7 @@ import com.goafanti.common.bo.Result;
 import com.goafanti.common.constant.ErrorConstants;
 import com.goafanti.common.controller.CertifyApiController;
 import com.goafanti.common.error.BusinessException;
+import com.goafanti.common.model.OrderPublicReleaseLog;
 import com.goafanti.common.utils.StringUtils;
 import com.goafanti.common.utils.excel.NewExcelUtil;
 import com.goafanti.weChat.bo.*;
@@ -572,4 +573,17 @@ public class AdminReleaseApiController extends CertifyApiController{
 		}
 		return res.data(publicReleaseService.pushExamineMaxDuration(orderNo,status,remarks));
 	}
+
+
+	/**
+	 * 最大公出日志
+	 */
+	@RequestMapping(value = "/maxDurationLog",method = RequestMethod.GET)
+	public Result<List<OrderPublicReleaseLog>> maxDurationLog (String orderNo){
+		Result res =new Result();
+		if (StringUtils.isEmpty(orderNo)){
+			return res().error(buildError(ErrorConstants.PARAM_ERROR,"订单编号"));
+		}
+		return res.data(publicReleaseService.maxDurationLog(orderNo));
+	}
 }

+ 2 - 0
src/main/java/com/goafanti/weChat/service/PublicReleaseService.java

@@ -90,4 +90,6 @@ public interface PublicReleaseService {
 	Object updateMaxDuration(String orderNo, Double maxDuration,String remarks);
 
 	Object pushExamineMaxDuration(String orderNo,Integer status, String remarks);
+
+	Object maxDurationLog(String orderNo);
 }

+ 5 - 0
src/main/java/com/goafanti/weChat/service/impl/PublicReleaseServiceImpl.java

@@ -1276,6 +1276,11 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 		return tOrderPublicReleaseCountMapper.updateByOrderNo(in);
 	}
 
+	@Override
+	public Object maxDurationLog(String orderNo) {
+		return orderPublicReleaseLogMapper.queryByOrderNo(orderNo);
+	}
+
 	private void pushCompleteMaxDuration(String orderNo) {
 		List<OrderPublicReleaseLog> orderPublicReleaseLogs = orderPublicReleaseLogMapper.queryByOrderNo(orderNo);
 		List<PublicRelease> publicReleases = publicReleaseMapper.selectByOrderNo(orderNo);