935090232@qq.com
2021-07-29 aecf1e6808cd9eca68f5ec87340bd6c92f8c464c
zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml
@@ -104,6 +104,9 @@
               test="(record.shopId!=null and record.shopId!='') or  (record.shopId!='' and record.shopId==0)  ">
               and a.shop_id = #{record.shopId}
            </if>
            <if test="record.achieveRuleId != null  ">
               and e.achieve_rule_id = #{record.achieveRuleId}
            </if>
            <if test="record.year != null and record.year !='' ">
               and YEAR (a.datatime) = #{record.year}
            </if>
@@ -1047,7 +1050,7 @@
         b.code goodsNo,
         b.name goodsName,
         c.su_name meiliao,
         d.count*d.zk_price zk_total
         TRUNCATE(d.count*d.zk_price,2) 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
@@ -1195,4 +1198,17 @@
         update achieve_new set number_of_people=#{num} where id=#{item.id}
      </foreach>
   </update>
   <update id="setPayMethod">
      update  achieve_new
      set pay_method=#{paymethod}
      where id in
      <foreach collection="list" index="index" item="item" open="("
             separator="," close=")">
         #{item}
      </foreach>
   </update>
</mapper>