Ver código fonte

阀控规则查询排序

oppadmin 4 anos atrás
pai
commit
99c58a02c6

+ 1 - 0
smart-city-platform/src/main/java/com/bz/smart_city/service/impl/pay/PayControlRuleServiceImpl.java

@@ -408,6 +408,7 @@ public class PayControlRuleServiceImpl implements PayControlRuleService {
      */
     @Override
     public Integer GetConditionReusl(Integer id,String accountId){
+        //["=", "≠", ">", "<", "≥", "≤"]
         List<PayControlRule> payControlRules = payControlRuleMapper.findList(id,null,null);
         if(payControlRules.size() ==1){
             String condition= payControlRules.get(0).getOperator();

+ 1 - 0
smart-city-platform/src/main/resources/mapper/pay/PayControlRecordMapper.xml

@@ -38,6 +38,7 @@
             <if test="payControlRecordDto.beginTime != null"> and pcr.update_Date >= #{payControlRecordDto.beginTime,jdbcType=TIMESTAMP}</if>
             <if test="payControlRecordDto.endTime != null"> and pcr.update_Date &lt;= #{payControlRecordDto.endTime,jdbcType=TIMESTAMP}</if>
         </where>
+        order by pcr.update_date desc
     </select>
 
     <insert id="add" useGeneratedKeys="true" keyColumn="id">

+ 1 - 0
smart-city-platform/src/main/resources/mapper/pay/PayControlRuleMapper.xml

@@ -68,6 +68,7 @@
             <if test="id != null"> and id = #{id}</if>
             <if test="name != null and name != ''"> and name = #{name}</if>
         </where>
+        order by update_date desc
     </select>
 
     <select id="ExitsData" resultType="com.bz.smart_city.entity.pay.PayControlRule">