Browse Source

证书数据同步

songzhengming 2 months ago
parent
commit
d3563aa6d1

+ 4 - 4
ghjg-item-datashare-server/src/main/resources/mapper/CommonMapper.xml

@@ -60,9 +60,9 @@
                           infoall.JUDGMENT                                                                        judgment,
                           to_char(infoall.BUSINESS_TYPE)                                                          businessType,
                           ''                                                                                      bz,
-                          ''                                                                                      baseid,
-                          2                                                                                       infoSource,
-                          ''                                                                                      infoStats,
+                          t2.enterprise_id                                                                        baseid,
+                          infoall.INFO_SOURCE                                                                     infoSource,
+                          infoall.info_stats                                                                      infoStats,
                           infoall.CRE_DATE                                                                        creDate,
                           infoall.EFFECTIVESTARTDATE                                                              effectivestartdate,
                           infoall.EFFECTIVEENDDATE                                                                effectiveenddate,
@@ -84,7 +84,7 @@
                           ss.ECONOMIC_TYPE,
                           ss.BUSINESS_SCOPE
           from GHJG_BASICS.Vw_Cret_Info_Self_All infoall
-                 left join GHJG_BASICS.TOBJ_ENTERPRISE_BASIC t2 on infoall.cname = t2.cnname and t2.isremove = 0
+                 left join GHJG_BASICS.TOBJ_ENTERPRISE_BASIC t2 on infoall.TAXLICENSE = t2.TAXLICENSE and t2.isremove = 0
                  left join GHJG_PORT_MANAGE.SY_INSPECT ss
                            on ss.LICENSE_NUMBER = infoall.CRET_NUMER
           where (infoall.JUDGMENT like '%上海市浦东新区建设和交通委员会%')