Преглед изворни кода

保单清单查询分权限查询不同数据

cuixinpeng пре 2 година
родитељ
комит
d022c613a1
1 измењених фајлова са 16 додато и 16 уклоњено
  1. 16 16
      src/main/resources/mapper/modules/order/InsOrdersMapper.xml

+ 16 - 16
src/main/resources/mapper/modules/order/InsOrdersMapper.xml

@@ -411,10 +411,10 @@
         SELECT a.`inscompany` AS insCompany,
         (SELECT agreement_name FROM ptl_agreement t WHERE t.`id`= a.`agreement_id`) AS agreementName,
         a.`jqpolicyno` AS policyNo,
-        <if test="policyReqVo.queryFlag='queryPayDate'">
+        <if test="policyReqVo.queryFlag=='queryPayDate'.toString()">
             a.pay_date  AS quoteDate,
         </if>
-        <if test="policyReqVo.queryFlag='queryPayTime'">
+        <if test="policyReqVo.queryFlag=='queryPayTime'.toString()">
             a.inside_pay_time  AS quoteDate,
         </if>
         a.`jq_start_date` AS policyStartDate,
@@ -459,10 +459,10 @@
             and a.operatorid = #{policyReqVo.operatorId}
         </if>
         <if test="policyReqVo.quoteStartDate != null and policyReqVo.quoteEndDate != null">
-            <if test="policyReqVo.queryFlag='queryPayDate'">
+            <if test="policyReqVo.queryFlag=='queryPayDate'.toString()">
                 and a.pay_date between #{policyReqVo.quoteStartDate} AND #{policyReqVo.quoteEndDate}
             </if>
-            <if test="policyReqVo.queryFlag='queryPayTime'">
+            <if test="policyReqVo.queryFlag=='queryPayTime'.toString()">
                 and a.inside_pay_time  between #{policyReqVo.quoteStartDate} AND #{policyReqVo.quoteEndDate}
             </if>
         </if>
@@ -474,10 +474,10 @@
         SELECT  a.`inscompany` AS insCompany,
         (SELECT agreement_name FROM ptl_agreement t WHERE t.`id`= a.`agreement_id`) AS agreementName,
         a.`sypolicyno` AS policyNo,
-        <if test="policyReqVo.queryFlag='queryPayDate'">
+        <if test="policyReqVo.queryFlag=='queryPayDate'.toString()">
             a.pay_date  AS quoteDate,
         </if>
-        <if test="policyReqVo.queryFlag='queryPayTime'">
+        <if test="policyReqVo.queryFlag=='queryPayTime'.toString()">
             a.inside_pay_time  AS quoteDate,
         </if>
         a.`sy_start_date` AS policyStartDate,
@@ -522,10 +522,10 @@
             and a.operatorid = #{policyReqVo.operatorId}
         </if>
         <if test="policyReqVo.quoteStartDate != null and policyReqVo.quoteEndDate != null">
-            <if test="policyReqVo.queryFlag='queryPayDate'">
+            <if test="policyReqVo.queryFlag=='queryPayDate'.toString()">
                 and a.pay_date between #{policyReqVo.quoteStartDate} AND #{policyReqVo.quoteEndDate}
             </if>
-            <if test="policyReqVo.queryFlag='queryPayTime'">
+            <if test="policyReqVo.queryFlag=='queryPayTime'.toString()">
                 and a.inside_pay_time  between #{policyReqVo.quoteStartDate} AND #{policyReqVo.quoteEndDate}
             </if>
         </if>
@@ -541,10 +541,10 @@
         SELECT a.`inscompany` AS insCompany,
         (SELECT agreement_name FROM ptl_agreement t WHERE t.`id`= a.`agreement_id`) AS agreementName,
         a.`jqpolicyno` AS policyNo,
-        <if test="policyReqVo.queryFlag='queryPayDate'">
+        <if test="policyReqVo.queryFlag=='queryPayDate'.toString()">
             a.pay_date  AS quoteDate,
         </if>
-        <if test="policyReqVo.queryFlag='queryPayTime'">
+        <if test="policyReqVo.queryFlag=='queryPayTime'.toString()">
             a.inside_pay_time  AS quoteDate,
         </if>
         a.`jq_start_date` AS policyStartDate,
@@ -589,10 +589,10 @@
             and a.operatorid = #{policyReqVo.operatorId}
         </if>
         <if test="policyReqVo.quoteStartDate != null and policyReqVo.quoteEndDate != null">
-            <if test="policyReqVo.queryFlag='queryPayDate'">
+            <if test="policyReqVo.queryFlag=='queryPayDate'.toString()">
                 and a.pay_date between #{policyReqVo.quoteStartDate} AND #{policyReqVo.quoteEndDate}
             </if>
-            <if test="policyReqVo.queryFlag='queryPayTime'">
+            <if test="policyReqVo.queryFlag=='queryPayTime'.toString()">
                 and a.inside_pay_time  between #{policyReqVo.quoteStartDate} AND #{policyReqVo.quoteEndDate}
             </if>
         </if>
@@ -604,10 +604,10 @@
         SELECT  a.`inscompany` AS insCompany,
         (SELECT agreement_name FROM ptl_agreement t WHERE t.`id`= a.`agreement_id`) AS agreementName,
         a.`sypolicyno` AS policyNo,
-        <if test="policyReqVo.queryFlag='queryPayDate'">
+        <if test="policyReqVo.queryFlag=='queryPayDate'.toString()">
             a.pay_date  AS quoteDate,
         </if>
-        <if test="policyReqVo.queryFlag='queryPayTime'">
+        <if test="policyReqVo.queryFlag=='queryPayTime'.toString()">
             a.inside_pay_time  AS quoteDate,
         </if>
         a.`sy_start_date` AS policyStartDate,
@@ -652,10 +652,10 @@
             and a.operatorid = #{policyReqVo.operatorId}
         </if>
         <if test="policyReqVo.quoteStartDate != null and policyReqVo.quoteEndDate != null">
-            <if test="policyReqVo.queryFlag='queryPayDate'">
+            <if test="policyReqVo.queryFlag=='queryPayDate'.toString()">
                 and a.pay_date between #{policyReqVo.quoteStartDate} AND #{policyReqVo.quoteEndDate}
             </if>
-            <if test="policyReqVo.queryFlag='queryPayTime'">
+            <if test="policyReqVo.queryFlag=='queryPayTime'.toString()">
                 and a.inside_pay_time  between #{policyReqVo.quoteStartDate} AND #{policyReqVo.quoteEndDate}
             </if>
         </if>