| | |
| | | <result property="remark" column="remark" /> |
| | | <result property="orderType" column="order_type" /> |
| | | <result property="projPercentage" column="proj_percentage" /> |
| | | <result property="achieveMoney" column="achieveMoney" /> |
| | | <result property="t1" column="t1" /> |
| | | <result property="t2" column="t2" /> |
| | | <result property="t3" column="t3" /> |
| | |
| | | a.consume, |
| | | a.his_consume, |
| | | a.free_consume, |
| | | a.achieveMoney, |
| | | f.su_name meiliao, |
| | | g.su_name guwen, |
| | | a.proj_percentage, |
| | |
| | | <result property="remark" column="remark" /> |
| | | <result property="orderType" column="order_type" /> |
| | | <result property="projPercentage" column="proj_percentage" /> |
| | | <result property="achieveMoney" column="achieveMoney" /> |
| | | <result property="t1" column="t1" /> |
| | | <result property="t2" column="t2" /> |
| | | <result property="t3" column="t3" /> |
| | |
| | | remark, |
| | | order_type, |
| | | proj_percentage, |
| | | achieveMoney, |
| | | t1, |
| | | t2, |
| | | t3, |
| | |
| | | #{item.remark}, |
| | | #{item.orderType}, |
| | | #{item.projPercentage}, |
| | | #{item.achieveMoney}, |
| | | #{item.t1}, |
| | | #{item.t2}, |
| | | #{item.t3}, |
| | |
| | | <if test="_parameter.containsKey('projPercentage')"> |
| | | proj_percentage = #{projPercentage}, |
| | | </if> |
| | | <if test="_parameter.containsKey('achieveMoney')"> |
| | | achieveMoney = #{achieveMoney}, |
| | | </if> |
| | | <if test="_parameter.containsKey('t1')"> |
| | | t1 = #{t1}, |
| | | </if> |
| | |
| | | </if> |
| | | <if test="record.projPercentage != null "> |
| | | proj_percentage = #{record.projPercentage}, |
| | | </if> |
| | | <if test="record.achieveMoney != null "> |
| | | achieveMoney = #{record.achieveMoney}, |
| | | </if> |
| | | <if test="record.t1 != null and record.t1 != '' "> |
| | | t1 = #{record.t1}, |
| | |
| | | b.SHOP_IMAG photo, |
| | | sum(IFNULL(a.free_consume,0) + IFNULL(a.his_consume,0)) amount |
| | | from achieve_new a |
| | | left join sys_shop_info b on a.shop_id=b.ID |
| | | left join sys_shop_info b on a.shop_id=b.ID and b.shop_type!=1 |
| | | <where> |
| | | <if test="record.companyId != null"> |
| | | and a.company_id=#{record.companyId} |
| | |
| | | b.SHOP_IMAG photo, |
| | | sum(IFNULL(a.consume,0) + IFNULL(a.card_cash,0)) amount |
| | | from achieve_new a |
| | | left join sys_shop_info b on a.shop_id=b.ID |
| | | left join sys_shop_info b on a.shop_id=b.ID and shop_type!=1 |
| | | <where> |
| | | <if test="record.companyId != null"> |
| | | and a.company_id=#{record.companyId} |