Ver Fonte

1、已修正值作为条件查询

QuietShadow há 3 anos atrás
pai
commit
c0b8d170f0

+ 3 - 0
src/main/java/com/steerinfo/ems/trmcalpoint/controller/TRmCalpointController.java

@@ -519,6 +519,9 @@ public class TRmCalpointController extends BaseRESTfulController {
             }
             parmas.put("costid", costid);
         }
+        if("true".equals(parmas.get("correct").toString())){
+            parmas.put("CORRECTVALUE", "0");
+        }
         PageList<Map<String, Object>> list = tRmCalpointService.getDate312ForPage(parmas, pageNum, pageSize);
         return success(list);
     }

+ 3 - 0
src/main/java/com/steerinfo/ems/trmcalpoint/mapper/TRmCalpointMapper.xml

@@ -1375,6 +1375,9 @@
     <if test="itemtype != null and itemtype != ''">
       and ITEMTYPE = #{itemtype}
     </if>
+    <if test="CORRECTVALUE != null and CORRECTVALUE != ''">
+      and CORRECTVALUE != #{CORRECTVALUE}
+    </if>
     order by clock,t.itemid
   </select>