Просмотр исходного кода

wx_coupon_action_log添加分表

release_toaliyun_real
xiaohanzi 5 лет назад
Родитель
Сommit
770cea60bc
5 измененных файлов: 20 добавлений и 8 удалений
  1. +2
    -2
      mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponActionLogController.java
  2. +4
    -0
      mallinkService/src/main/java/com/iformall/mapper/WxCouponActionLogMapper.java
  3. +2
    -2
      mallinkService/src/main/java/com/iformall/service/WxCouponActionLogService.java
  4. +4
    -4
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java
  5. +8
    -0
      mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml

+ 2
- 2
mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponActionLogController.java Просмотреть файл

@@ -64,7 +64,7 @@ public class WxCouponActionLogController extends BaseController {
@SystemControllerLog(description = "注券记录-删除")
public ResultData delete(Long id) {
logger.debug("[" + getIpAddr() + "] WxCouponActionLogController::delete");
wxCouponActionLogService.deleteById(id);
wxCouponActionLogService.deleteById(id,getTenantInfo().getTenantId());
return new ResultData(Result.SUCCESS, "删除成功", null);
}

@@ -74,7 +74,7 @@ public class WxCouponActionLogController extends BaseController {
@SystemControllerLog(description = "注券记录-查询")
public ResultData findById(Long id) {
logger.debug("[" + getIpAddr() + "] WxCouponActionLogController::findById");
return new ResultData(Result.SUCCESS, "查询成功", wxCouponActionLogService.getById(id));
return new ResultData(Result.SUCCESS, "查询成功", wxCouponActionLogService.getById(id,getTenantInfo().getTenantId()));
}




+ 4
- 0
mallinkService/src/main/java/com/iformall/mapper/WxCouponActionLogMapper.java Просмотреть файл

@@ -12,6 +12,10 @@ import com.iformall.domain.po.WxCouponActionLog;

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<MarkingSceneDataReportVo> sceneDataMap(HashMap<String,Object> params); // will be deleted


+ 2
- 2
mallinkService/src/main/java/com/iformall/service/WxCouponActionLogService.java Просмотреть файл

@@ -25,7 +25,7 @@ public interface WxCouponActionLogService {
* @param id
* @return
*/
WxCouponActionLog getById(Long id);
WxCouponActionLog getById(Long id,String tenantId);
/**
* 保存或更新实体
@@ -39,7 +39,7 @@ public interface WxCouponActionLogService {
*
* @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);


+ 4
- 4
mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java Просмотреть файл

@@ -34,8 +34,8 @@ public class WxCouponActionLogServiceImpl implements WxCouponActionLogService {
}

@Override
public WxCouponActionLog getById(Long id) {
return wxCouponActionLogMapper.selectById(id);
public WxCouponActionLog getById(Long id,String tenantId) {
return wxCouponActionLogMapper.selectById(id,tenantId);
}

@Override
@@ -51,8 +51,8 @@ public class WxCouponActionLogServiceImpl implements WxCouponActionLogService {
}

@Override
public void deleteById(Long id) {
wxCouponActionLogMapper.deleteById(id);
public void deleteById(Long id,String tenantId) {
wxCouponActionLogMapper.deleteById(id,tenantId);
}

@Override


+ 8
- 0
mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml Просмотреть файл

@@ -70,6 +70,14 @@
<if test=" null != sortColumns"> order by ${sortColumns} </if>
</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
<include refid="allColumns"/>


Загрузка…
Отмена
Сохранить