Przeglądaj źródła

wx_coupon_action_log添加分表

release_toaliyun_real
xiaohanzi 5 lat temu
rodzic
commit
770cea60bc
5 zmienionych plików z 20 dodań i 8 usunięć
  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 Wyświetl plik

@@ -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()));
} }






+ 4
- 0
mallinkService/src/main/java/com/iformall/mapper/WxCouponActionLogMapper.java Wyświetl plik

@@ -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


+ 2
- 2
mallinkService/src/main/java/com/iformall/service/WxCouponActionLogService.java Wyświetl plik

@@ -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);


+ 4
- 4
mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java Wyświetl plik

@@ -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


+ 8
- 0
mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml Wyświetl plik

@@ -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"/>


Ładowanie…
Anuluj
Zapisz