Explorar el Código

fix 账号平台名称

zoujiajian hace 3 años
padre
commit
34de969757
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      netflix-dao/src/main/resources/mapper/AccountMapper.xml

+ 4 - 2
netflix-dao/src/main/resources/mapper/AccountMapper.xml

@@ -4,7 +4,7 @@
 
     <select id="getExpiredAccountView" resultType="com.cyksj.model.views.ExpiredAccountDataView">
         select gr.id as relationId,
-               a.title as platform,
+               gd.title as platform,
                a.account,
                a.password,
                a.us_account,
@@ -21,6 +21,7 @@
         from `account` a left join `groups_trips` gt on gt.account_id = a.id
         left join `groups_relation` gr on gr.groups_id = gt.id
         left join `goods_don_sku` gdk on gdk.id = gt.sku_id
+        left join `goods_don` gd on gd.id = a.goods_id
         left join `user` u on gr.user_id = u.id
         <where>
             <if test="goodsId != null">
@@ -78,7 +79,7 @@
 
     <select id="getExpiredAccountViewNoPage" resultType="com.cyksj.model.excel.ExcelAccountData">
         select gr.id as relationId,
-        a.title as platform,
+        gd.title as platform,
         a.account,
         a.password,
         a.us_account,
@@ -95,6 +96,7 @@
         from `account` a left join `groups_trips` gt on gt.account_id = a.id
         left join `groups_relation` gr on gr.groups_id = gt.id
         left join `goods_don_sku` gdk on gdk.id = gt.sku_id
+        left join `goods_don` gd on gd.id = a.goods_id
         left join `user` u on gr.user_id = u.id
         <where>
             <if test="goodsId != null">