hanfucheng il y a 1 an
Parent
commit
789540edcd

+ 1 - 1
src/main/java/com/sooka/sponest/data/generalbusiness/service/impl/CenterdataTKeyProjectsServiceImpl.java

@@ -146,7 +146,7 @@ public class CenterdataTKeyProjectsServiceImpl extends BaseServiceImpl implement
             projects.setMessage(JSON.toJSONString(projects));
             if (project.contains(projects.getProjectId())){
                 //需求要求建设地点为空不修改
-                boolean matches = projects.getConstructionSite().matches(".*\\s{2,}.*");
+                boolean matches = projects.getConstructionSite().matches("\\s+");
                 if (matches){
                     projects.setConstructionSite(null);
                 }

+ 1 - 1
src/main/resources/mapper/generalbusiness/CenterdataTKeyProjectsMapper.xml

@@ -306,7 +306,7 @@
             <if test="constructionUnit != null">construction_unit = #{constructionUnit},</if>
             <if test="principal != null">principal = #{principal},</if>
             <if test="phone != null">phone = #{phone},</if>
-            <if test="constructionSite != null">construction_site = #{constructionSite},</if>
+            <if test="constructionSite != null and constructionSite != ''">construction_site = #{constructionSite},</if>
             <if test="constructionArea != null">construction_area = #{constructionArea},</if>
             <if test="longitude != null">longitude = #{longitude},</if>
             <if test="latitude != null">latitude = #{latitude},</if>