Selaa lähdekoodia

导出GA38 明细 达标日期不带时分秒

zhulu 1 vuosi sitten
vanhempi
commit
dd25267b46

+ 5 - 2
soc-modules/soc-modules-system/src/main/resources/mapper/system/SysOrgMapper.xml

@@ -826,7 +826,8 @@ and
                             1,
                             0
                 ) AS complianceStatus,
-            a.date_of_compliance AS complianceDate,
+            IFNULL(SUBSTR( a.date_of_compliance, 1, 10 ), '' ) AS complianceDate,
+<!--            a.date_of_compliance AS complianceDate,-->
             IF
                 (
                             IF
@@ -836,7 +837,8 @@ and
                             NULL,
                             a.reason
                 ) AS reason,
-            a.date_of_complete AS completeDate,
+            IFNULL(SUBSTR( a.date_of_complete, 1, 10 ), '' ) AS completeDate,
+<!--            a.date_of_complete AS completeDate,-->
             c.address as address,
             c.affiliated_area as city,
             c.affiliated_bank as orgName,
@@ -1029,6 +1031,7 @@ and
             1=1
           and b.deleted = 0
           and b.is_lock = 0
+          and b.type = 4
           and b.path LIKE concat(#{orgPath}, '%')
     </select>
     <select id="getCertificate" resultType="java.util.Map">