xiaoyong931011
2021-04-07 482847fc97748b67fd8ab93b5b589ab3824f6d02
zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml
@@ -44,12 +44,13 @@
      <result property="guwen" column="guwen" />
      <result property="meiliao" column="meiliao" />
      <result property="zkTotal" column="zk_total" />
      <result property="payMethod" column="pay_method" />
      <result property="arriveCnt" column="arrive_cnt" />
      <result property="goodsNo" column="goodsNo" />
      <result property="goodsName" column="goodsName" />
      <result property="payMethod" column="pay_method" />
      <result property="cateName" column="cateName" />
   </resultMap>
@@ -64,7 +65,7 @@
      d.level_name,
      c.vip_name,
      e.name as pro_name,
      (IFNULL(a.goods_cash,0)) as zk_total,
      b.ZK_TOTAL as zk_total,
      a.goods_cash,
      a.his_consume,
      a.free_consume,
@@ -74,9 +75,11 @@
      a.number_of_people,
      a.proj_num,
      a.proj_time,
      i.name as module_subName,
      h.SHOP_NAME shop_name,
      a.order_type
      i.name as cateName,
      h.shop_short_name shop_name,
      a.order_type,
      a.achieveType,
      j.pay_method
      from
      achieve_new a
      left join sys_order b on a.order_id=b.id
@@ -88,6 +91,7 @@
      LEFT JOIN sys_shop_info h ON a.SHOP_ID = h.ID
      LEFT JOIN shopping_goods_category i ON e.cate_id = i.id
      left join sys_proj_services l on a.service_order_id=l.id
      left join sys_order_item j on a.order_item_id=j.ID
      <where>
         <if test="record!=null">
            <if
@@ -283,7 +287,7 @@
      <result property="remark" column="remark" />
      <result property="orderType" column="order_type" />
      <result property="projPercentage" column="proj_percentage" />
      <result property="payMethod" column="pay_method" />
      <result property="t1" column="t1" />
      <result property="t2" column="t2" />
      <result property="achieveType" column="achieveType" />
@@ -326,7 +330,8 @@
      t6,
      t8,
      t9,
      company_id
      company_id,
pay_method
   </sql>
   <!-- 属性sql -->
@@ -360,7 +365,8 @@
      #{item.t6},
      #{item.t8},
      #{item.t9},
      #{item.companyId}
      #{item.companyId},
      #{item.payMethod}
   </sql>
   <!-- where sql -->
@@ -608,6 +614,9 @@
         <if test="_parameter.containsKey('t9')">
            t9 = #{t9},
         </if>
         <if test="_parameter.containsKey('payMethod')">
            pay_method = #{payMethod},
         </if>
      </set>
      WHERE id=#{id}
   </update>
@@ -720,6 +729,9 @@
         </if>
         <if test="record.t9 != null and record.t9 != '' ">
            t9 = #{record.t9},
         </if>
         <if test="record.payMethod != null and record.payMethod != '' ">
            pay_method = #{record.payMethod},
         </if>
      </set>
      WHERE id=#{record.id}
@@ -998,8 +1010,7 @@
         b.code goodsNo,
         b.name goodsName,
         c.su_name meiliao,
         d.count*d.zk_price zk_total,
          d.pay_method
         d.count*d.zk_price zk_total
      from achieve_new a
      left join shopping_goods b on a.shopping_goods_id=b.id
      left join sys_users c on a.beault_id=c.su_id