Browse Source

详情查看修改

anderx 1 year ago
parent
commit
cc7a75fad0

+ 28 - 0
src/main/java/com/goafanti/weChat/bo/OutPublicRelease.java

@@ -3,6 +3,7 @@ package com.goafanti.weChat.bo;
 import com.goafanti.common.model.PublicExamine;
 import com.goafanti.common.model.PublicRelease;
 
+import java.math.BigDecimal;
 import java.util.List;
 
 public class OutPublicRelease extends PublicRelease {
@@ -53,6 +54,33 @@ public class OutPublicRelease extends PublicRelease {
 	 */
 	private Integer ViewPermission;
 
+	private BigDecimal maxDuration;
+	private Integer maxProcess;
+	private Integer maxType;
+
+	public BigDecimal getMaxDuration() {
+		return maxDuration;
+	}
+
+	public void setMaxDuration(BigDecimal maxDuration) {
+		this.maxDuration = maxDuration;
+	}
+
+	public Integer getMaxProcess() {
+		return maxProcess;
+	}
+
+	public void setMaxProcess(Integer maxProcess) {
+		this.maxProcess = maxProcess;
+	}
+
+	public Integer getMaxType() {
+		return maxType;
+	}
+
+	public void setMaxType(Integer maxType) {
+		this.maxType = maxType;
+	}
 
 	public Integer getViewPermission() {
 		return ViewPermission;

+ 13 - 1
src/main/java/com/goafanti/weChat/service/impl/PublicReleaseServiceImpl.java

@@ -1664,7 +1664,19 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 			//客户文档查看权限
 			boolean flag2=false;
 			AdminListBo ab=adminMapper.getDeptNameByAid(out.getAid());
-
+			//获取设置公出最大值的
+			if(out.getType()==1){
+				TOrderPublicReleaseCount tOrderPublicReleaseCount = tOrderPublicReleaseCountMapper.selectByOrderNo(out.getOrderNo());
+				if(tOrderPublicReleaseCount!=null){
+					out.setMaxDuration(BigDecimal.valueOf(tOrderPublicReleaseCount.getMaxDuration()));
+					out.setMaxProcess(tOrderPublicReleaseCount.getMaxProcess());
+					out.setMaxType(tOrderPublicReleaseCount.getMaxType());
+				}else {
+					out.setMaxDuration(BigDecimal.ZERO);
+					out.setMaxProcess(0);
+					out.setMaxType(0);
+				}
+			}
 			//自己、部门负责人与技术财税管理员可以查看
 			if (aid.equals( out.getAid())||
 					aid.equals(ab.getDepManager())||