| @@ -1,12 +1,17 @@ | |||||
| package com.iformall.mapper; | package com.iformall.mapper; | ||||
| import java.util.*; | import java.util.*; | ||||
| import org.apache.ibatis.annotations.Param; | |||||
| import com.iformall.common.CommonMapper; | import com.iformall.common.CommonMapper; | ||||
| import com.iformall.domain.po.WxMerchantSubsidy; | import com.iformall.domain.po.WxMerchantSubsidy; | ||||
| import com.iformall.domain.vo.WxMerchantSubsidyVo; | import com.iformall.domain.vo.WxMerchantSubsidyVo; | ||||
| public interface WxMerchantSubsidyMapper extends CommonMapper<WxMerchantSubsidy, Long> { | public interface WxMerchantSubsidyMapper extends CommonMapper<WxMerchantSubsidy, Long> { | ||||
| WxMerchantSubsidy selectById(@Param("id")Long id,@Param("tenantId")String tenantId); | |||||
| List<WxMerchantSubsidy> findList(WxMerchantSubsidy wxMerchantSubsidy); | List<WxMerchantSubsidy> findList(WxMerchantSubsidy wxMerchantSubsidy); | ||||
| int updateByCond(WxMerchantSubsidy wxMerchantSubsidy); | int updateByCond(WxMerchantSubsidy wxMerchantSubsidy); | ||||
| @@ -15,4 +20,6 @@ public interface WxMerchantSubsidyMapper extends CommonMapper<WxMerchantSubsidy, | |||||
| List<Map<String, Object>> sumVoList(WxMerchantSubsidy wxMerchantSubsidy); | List<Map<String, Object>> sumVoList(WxMerchantSubsidy wxMerchantSubsidy); | ||||
| int deleteById(@Param("id")Long id,@Param("tenantId")String tenantId); | |||||
| } | } | ||||
| @@ -35,7 +35,7 @@ public interface WxMerchantSubsidyService { | |||||
| * @param id | * @param id | ||||
| * @return | * @return | ||||
| */ | */ | ||||
| WxMerchantSubsidy getById(Long id); | |||||
| WxMerchantSubsidy getById(Long id,String tenantId); | |||||
| /** | /** | ||||
| * 保存或更新实体 | * 保存或更新实体 | ||||
| @@ -56,7 +56,7 @@ public interface WxMerchantSubsidyService { | |||||
| * | * | ||||
| * @param id | * @param id | ||||
| */ | */ | ||||
| void deleteById(Long id); | |||||
| void deleteById(Long id,String tenantId); | |||||
| /** | /** | ||||
| * 补贴流水导出 | * 补贴流水导出 | ||||
| @@ -44,8 +44,8 @@ public class WxMerchantSubsidyServiceImpl implements WxMerchantSubsidyService { | |||||
| } | } | ||||
| @Override | @Override | ||||
| public WxMerchantSubsidy getById(Long id) { | |||||
| return wxMerchantSubsidyMapper.selectById(id); | |||||
| public WxMerchantSubsidy getById(Long id,String tenantId) { | |||||
| return wxMerchantSubsidyMapper.selectById(id,tenantId); | |||||
| } | } | ||||
| @Override | @Override | ||||
| @@ -72,8 +72,8 @@ public class WxMerchantSubsidyServiceImpl implements WxMerchantSubsidyService { | |||||
| } | } | ||||
| @Override | @Override | ||||
| public void deleteById(Long id) { | |||||
| wxMerchantSubsidyMapper.deleteById(id); | |||||
| public void deleteById(Long id,String tenantId) { | |||||
| wxMerchantSubsidyMapper.deleteById(id,tenantId); | |||||
| } | } | ||||
| @Override | @Override | ||||
| @@ -103,6 +103,14 @@ | |||||
| </if> | </if> | ||||
| <if test=" null != sortColumns"> order by ${sortColumns} </if> | <if test=" null != sortColumns"> order by ${sortColumns} </if> | ||||
| </sql> | </sql> | ||||
| <select id="selectById" parameterType="java.util.HashMap" resultMap="BaseResultMap"> | |||||
| select <include refid="allColumns" /> from wx_merchant_subsidy where id = #{id} and tenant_id = #{tenantId} | |||||
| </select> | |||||
| <delete id="deleteById" parameterType="java.util.HashMap"> | |||||
| delete from wx_merchant_subsidy where id = #{id} and tenant_id = #{tenantId} | |||||
| </delete> | |||||
| <select id="findList" parameterType="com.iformall.domain.po.WxMerchantSubsidy" resultMap="BaseResultMap"> | <select id="findList" parameterType="com.iformall.domain.po.WxMerchantSubsidy" resultMap="BaseResultMap"> | ||||
| select <include refid="allColumns" /> from wx_merchant_subsidy | select <include refid="allColumns" /> from wx_merchant_subsidy | ||||