Преглед изворни кода

新增公出最大审核配置详情接口

anderx пре 1 година
родитељ
комит
8f56bc726b

+ 2 - 0
src/main/java/com/goafanti/common/dao/PublicConfigMapper.java

@@ -1,6 +1,7 @@
 package com.goafanti.common.dao;
 
 import com.goafanti.common.model.PublicConfig;
+import com.goafanti.weChat.bo.OutPublicConfig;
 import org.apache.ibatis.annotations.Param;
 import org.springframework.data.domain.Pageable;
 
@@ -80,6 +81,7 @@ public interface PublicConfigMapper {
      * @return 影响行数
      */
     int deleteById(Integer id);
+    OutPublicConfig selectDetails();
 
 }
 

+ 18 - 0
src/main/java/com/goafanti/common/mapper/PublicConfigMapper.xml

@@ -164,5 +164,23 @@
         from public_config
         where id = #{id}
     </delete>
+
+    <select id="selectDetails" resultType="com.goafanti.weChat.bo.OutPublicConfig">
+        select a.id,
+               a.tech_auditor_stauts as techAuditorStauts,
+               a.tech_auditor as techAuditor,
+                b.name as techAuditorName,
+               a.finance_auditor_stauts as financeAuditorStauts,
+               a.finance_auditor as financeAuditor,
+            c.name as financeAuditorName,
+               a.other_auditor_stauts as otherAuditorStauts,
+               a.other_auditor as otherAuditor,
+            d.name as otherAuditorName,
+               a.create_time
+        from public_config a left join admin b on a.tech_auditor=b.id
+            left join admin c on a.finance_auditor=c.id
+            left join admin d on a.other_auditor=d.id
+        where a.id = 1
+    </select>
 </mapper>
 

+ 34 - 0
src/main/java/com/goafanti/weChat/bo/OutPublicConfig.java

@@ -0,0 +1,34 @@
+package com.goafanti.weChat.bo;
+
+import com.goafanti.common.model.PublicConfig;
+
+public class OutPublicConfig extends PublicConfig {
+
+    private String techAuditorName;
+    private String financeAuditorName;
+    private String otherAuditorName;
+
+    public String getTechAuditorName() {
+        return techAuditorName;
+    }
+
+    public void setTechAuditorName(String techAuditorName) {
+        this.techAuditorName = techAuditorName;
+    }
+
+    public String getFinanceAuditorName() {
+        return financeAuditorName;
+    }
+
+    public void setFinanceAuditorName(String financeAuditorName) {
+        this.financeAuditorName = financeAuditorName;
+    }
+
+    public String getOtherAuditorName() {
+        return otherAuditorName;
+    }
+
+    public void setOtherAuditorName(String otherAuditorName) {
+        this.otherAuditorName = otherAuditorName;
+    }
+}

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

@@ -1326,7 +1326,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 
 	@Override
 	public Object getPublicConfig() {
-		return publicConfigMapper.queryById(1);
+		return publicConfigMapper.selectDetails();
 	}
 
 	private void pushCompleteMaxDuration(String orderNo) {