Browse Source

放开注释代码

Gogs 1 day ago
parent
commit
688f93fd66

+ 4 - 4
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/impl/ghss/ZbmxJcpgyjServiceImpl.java

@@ -123,10 +123,10 @@ public class ZbmxJcpgyjServiceImpl implements IZbmxJcpgyjService {
             //监测值(趋势分析)
             ZbmxZbjczDTO qsfx = zbmxJcpgyjMapper.SeletQSFX(page.getXzqdm(), page.getZbbh(), page.getYear());
             //监测值(环比分析)
-//            Calendar calendar = Calendar.getInstance();
-//            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd :hh:mm:ss");
-//            String jcsj = dateFormat.format(calendar.getTime());
-            ZbmxZbjczDTO hbfx = zbmxJcpgyjMapper.SelectHBFX(page.getXzqdm(), page.getZbbh(), page.getYear());
+            Calendar calendar = Calendar.getInstance();
+            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd :hh:mm:ss");
+            String jcsj = dateFormat.format(calendar.getTime());
+            ZbmxZbjczDTO hbfx = zbmxJcpgyjMapper.SelectHBFX(page.getXzqdm(), page.getZbbh(), jcsj);
             //监测值(目标对比)
             String timejczmbdb = "";
             if (page.getYear() == null || Objects.equals(page.getYear(), "")) {

+ 0 - 3
onemap-modules/onemap-apply/src/main/resources/mapper/oracle/ghss/ZbmxJcyjMapper.xml

@@ -141,9 +141,6 @@
         <if test="zbbh != null and zbbh != ''">
             and t.zbbh = #{zbbh}
         </if>
-        <if test="jcsj != null and jcsj != ''">
-            and t.jcsj = #{jcsj})
-        </if>
 
         order by t.jcsj desc) a
     </select>