Browse Source

修改营销管理查询

zangguocen 4 years ago
parent
commit
1a352229ba
1 changed files with 3 additions and 3 deletions
  1. 3 3
      yijia-market/target/classes/mapper/market/MarkertPlanMapper.xml

+ 3 - 3
yijia-market/target/classes/mapper/market/MarkertPlanMapper.xml

@@ -24,9 +24,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectMarkertPlanVo">
-        select id, grade, discount_term, discount_amt, gasoil_discount_amt, dieseloil_discount_amt, vip_discounty_plus, coupon_plus, discount_plan_type,
-         oil_name, station_id, station_name, status,create_by,create_time,update_by,update_time
-          from markert_plan
+       select p.id, p.grade, p.discount_term, p.discount_amt, p.gasoil_discount_amt, p.vip_discounty_plus, p.coupon_plus, p.discount_plan_type,
+         p.oil_name, p.station_id,d.dept_name as station_name, p.status,p.create_by,p.create_time,p.update_by,p.update_time
+          from markert_plan p join sys_dept d on p.station_id = d.dept_id
     </sql>
 
     <select id="selectMarkertPlanList" parameterType="MarkertPlan" resultMap="MarkertPlanResult">