| @@ -64,7 +64,7 @@ public class WxCouponActionLogController extends BaseController { | |||||
| @SystemControllerLog(description = "注券记录-删除") | @SystemControllerLog(description = "注券记录-删除") | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| logger.debug("[" + getIpAddr() + "] WxCouponActionLogController::delete"); | logger.debug("[" + getIpAddr() + "] WxCouponActionLogController::delete"); | ||||
| wxCouponActionLogService.deleteById(id); | |||||
| wxCouponActionLogService.deleteById(id,getTenantInfo().getTenantId()); | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @@ -74,7 +74,7 @@ public class WxCouponActionLogController extends BaseController { | |||||
| @SystemControllerLog(description = "注券记录-查询") | @SystemControllerLog(description = "注券记录-查询") | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| logger.debug("[" + getIpAddr() + "] WxCouponActionLogController::findById"); | logger.debug("[" + getIpAddr() + "] WxCouponActionLogController::findById"); | ||||
| return new ResultData(Result.SUCCESS, "查询成功", wxCouponActionLogService.getById(id)); | |||||
| return new ResultData(Result.SUCCESS, "查询成功", wxCouponActionLogService.getById(id,getTenantInfo().getTenantId())); | |||||
| } | } | ||||
| @@ -12,6 +12,10 @@ import com.iformall.domain.po.WxCouponActionLog; | |||||
| public interface WxCouponActionLogMapper extends CommonMapper<WxCouponActionLog, String> { | public interface WxCouponActionLogMapper extends CommonMapper<WxCouponActionLog, String> { | ||||
| WxCouponActionLog selectById(@Param("id")Long id,@Param("tenantId")String tenantId); | |||||
| int deleteById(@Param("id")Long id,@Param("tenantId")String tenantId); | |||||
| List<WxCouponActionLog> findList(WxCouponActionLog wxCouponActionLog); | List<WxCouponActionLog> findList(WxCouponActionLog wxCouponActionLog); | ||||
| List<MarkingSceneDataReportVo> sceneDataMap(HashMap<String,Object> params); // will be deleted | List<MarkingSceneDataReportVo> sceneDataMap(HashMap<String,Object> params); // will be deleted | ||||
| @@ -25,7 +25,7 @@ public interface WxCouponActionLogService { | |||||
| * @param id | * @param id | ||||
| * @return | * @return | ||||
| */ | */ | ||||
| WxCouponActionLog getById(Long id); | |||||
| WxCouponActionLog getById(Long id,String tenantId); | |||||
| /** | /** | ||||
| * 保存或更新实体 | * 保存或更新实体 | ||||
| @@ -39,7 +39,7 @@ public interface WxCouponActionLogService { | |||||
| * | * | ||||
| * @param id | * @param id | ||||
| */ | */ | ||||
| void deleteById(Long id); | |||||
| void deleteById(Long id,String tenantId); | |||||
| void addOne(TenantEntity tenantEntity,Long couponId,Long coupon_order_id,int channelType,Long channelId); | void addOne(TenantEntity tenantEntity,Long couponId,Long coupon_order_id,int channelType,Long channelId); | ||||
| @@ -34,8 +34,8 @@ public class WxCouponActionLogServiceImpl implements WxCouponActionLogService { | |||||
| } | } | ||||
| @Override | @Override | ||||
| public WxCouponActionLog getById(Long id) { | |||||
| return wxCouponActionLogMapper.selectById(id); | |||||
| public WxCouponActionLog getById(Long id,String tenantId) { | |||||
| return wxCouponActionLogMapper.selectById(id,tenantId); | |||||
| } | } | ||||
| @Override | @Override | ||||
| @@ -51,8 +51,8 @@ public class WxCouponActionLogServiceImpl implements WxCouponActionLogService { | |||||
| } | } | ||||
| @Override | @Override | ||||
| public void deleteById(Long id) { | |||||
| wxCouponActionLogMapper.deleteById(id); | |||||
| public void deleteById(Long id,String tenantId) { | |||||
| wxCouponActionLogMapper.deleteById(id,tenantId); | |||||
| } | } | ||||
| @Override | @Override | ||||
| @@ -70,6 +70,14 @@ | |||||
| <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_coupon_action_log where id = #{id} and tenant_id = #{tenantId} | |||||
| </select> | |||||
| <delete id="deleteById" parameterType="java.util.HashMap"> | |||||
| delete from wx_coupon_action_log where id = #{id} and tenant_id = #{tenantId} | |||||
| </delete> | |||||
| <select id="findList" parameterType="com.iformall.domain.po.WxCouponActionLog" resultMap="BaseResultMap"> | <select id="findList" parameterType="com.iformall.domain.po.WxCouponActionLog" resultMap="BaseResultMap"> | ||||
| select | select | ||||
| <include refid="allColumns"/> | <include refid="allColumns"/> | ||||