浏览代码

修改sql

gushoubang 3 月之前
父节点
当前提交
21746e2374

+ 2 - 1
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/impl/sbjk/XzczghcgsbServiceImpl.java

@@ -188,6 +188,7 @@ public class XzczghcgsbServiceImpl implements XzczghcgsbService {
     public List<TreeAnalyse> getStatistics() {
         int current = 1;
         List<LandMyAttend.RecordsDTO> list = getAllLandMyAttendsData(2, current, 200, "1506");
+//        List<LandMyAttend.RecordsDTO> list = new ArrayList<>();
         // 根据divisionCode的前9位进行divisionCode分组数量
         Map<String, List<String>> townCountMap = new HashMap<>();
         // 根据divisionCode的前9位进行divisionCode分组节点类别
@@ -389,7 +390,7 @@ public class XzczghcgsbServiceImpl implements XzczghcgsbService {
         // 正式环境
         JSONObject jsonObject = sbSearchService.getLandMyAttendsData(planType, current, size, divisionCode, "");
         // 测试数据
-        // JSONObject jsonObject = sbSearchService.landMyAttendsData(planType, current, size, divisionCode);
+//         JSONObject jsonObject = sbSearchService.landMyAttendsData(planType, current, size, divisionCode);
         List<LandMyAttend.RecordsDTO> list = new ArrayList<>();
         if (jsonObject.containsKey("success") && jsonObject.getBoolean("success")) {
             LandMyAttend landMyAttend = jsonObject.getObject("data", LandMyAttend.class);

+ 2 - 1
onemap-modules/onemap-apply/src/main/resources/mapper/oracle/sbjk/TuseXzqhMapper.xml

@@ -61,6 +61,7 @@
     <select id="getTownReportAllNum" resultType="java.lang.Integer">
         SELECT COALESCE(COUNT(*), 0)
         FROM T_USE_XZQH_REPORT
-        WHERE "use_id" T_USE_XZQH_REPORT WHERE LENGTH("code")=12 AND "pid" = #{pid}
+        WHERE LENGTH("code") = 12
+          AND "pid" = #{pid}
     </select>
 </mapper>