xiaoyong931011
2020-07-08 8bca020b02250d6372c56f681476fa8eb59e0352
src/main/resources/mapper/modules/MemberMapper.xml
@@ -79,7 +79,7 @@
         FROM
            member
         WHERE
            account_type = '1'
            account_type = '2'
         AND account_status = '1'
      )
   </select>
@@ -97,7 +97,7 @@
         FROM
            member
         WHERE
            account_type = '1'
            account_type = '2'
         AND account_status = '1'
      )
   </select>
@@ -116,7 +116,7 @@
         FROM
            member
         WHERE
            account_type = '1'
            account_type = '2'
         AND account_status = '1'
      )
   </select>
@@ -134,7 +134,7 @@
         FROM
            member
         WHERE
            account_type = '1'
            account_type = '2'
         AND account_status = '1'
      )
   </select>
@@ -153,7 +153,7 @@
         FROM
            member
         WHERE
            account_type = '1'
            account_type = '2'
         AND account_status = '1'
      )
   </select>
@@ -171,7 +171,7 @@
         FROM
            member
         WHERE
            account_type = '1'
            account_type = '2'
         AND account_status = '1'
      )
   </select>
@@ -189,35 +189,26 @@
         FROM
            member
         WHERE
            account_type = '1'
            account_type = '2'
         AND account_status = '1'
      )
   </select>
   <select id="selectRewardratioForBasicRealData" resultType="java.lang.String">
      SELECT
         IFNULL(SUM(a.reward_amount),'0')
         IFNULL(SUM(a.reward_amount), '0')
      FROM
         contract_order a
      WHERE
         a.closing_type IN (4, 5, 6, 7, 8, 9)
         and a.order_status = '1'
      AND a.order_status = '1'
      AND a.member_id NOT IN (
         SELECT
            id
         FROM
            member
         WHERE
            account_type = '1'
            account_type = '2'
         AND account_status = '1'
         AND a.member_id NOT IN (
            SELECT
               id
            FROM
               member
            WHERE
               account_type = '1'
            AND account_status = '1'
         )
      )
   </select>
   <select id="selectSFCCForBasicRealData" resultType="java.lang.String">
@@ -237,7 +228,7 @@
                  FROM
                     member
                  WHERE
                     account_type = '1'
                     account_type = '2'
                  AND account_status = '1'
               )
            GROUP BY
@@ -258,7 +249,7 @@
         FROM
            member
         WHERE
            account_type = '1'
            account_type = '2'
         AND account_status = '1'
      )
   </select>
@@ -276,7 +267,7 @@
         FROM
            member
         WHERE
            account_type = '1'
            account_type = '2'
         AND account_status = '1'
      )
   </select>
@@ -292,7 +283,7 @@
            FROM
               member
            WHERE
               account_type = '1'
               account_type = '2'
            AND account_status = '1'
         )
   </select>
@@ -309,7 +300,7 @@
         FROM
            member
         WHERE
            account_type = '1'
            account_type = '2'
         AND account_status = '1'
      )
   </select>
@@ -325,7 +316,7 @@
            FROM
               member
            WHERE
               account_type = '1'
               account_type = '2'
            AND account_status = '1'
         )
   </select>
@@ -341,7 +332,7 @@
            FROM
               member
            WHERE
               account_type = '1'
               account_type = '2'
            AND account_status = '1'
         )
   </select>