提交 246225c9 authored 作者: 吕本才's avatar 吕本才

refactor(promotion-service): 统一temporaryId字段类型为Long

上级 16622ec8
...@@ -75,7 +75,7 @@ public class TemporaryActivityClockQueryController { ...@@ -75,7 +75,7 @@ public class TemporaryActivityClockQueryController {
* 根据促销员id查询上次打卡信息 * 根据促销员id查询上次打卡信息
*/ */
@GetMapping("/latest") @GetMapping("/latest")
public R findLatestClockInfo(Integer temporaryId){ public R findLatestClockInfo( Long temporaryId){
if (Objects.isNull(temporaryId)){ if (Objects.isNull(temporaryId)){
return R.success(); return R.success();
} }
......
...@@ -115,7 +115,7 @@ public class TemporaryActivityCoreController { ...@@ -115,7 +115,7 @@ public class TemporaryActivityCoreController {
* 当促销员取消保存活动记录时,数据进行删除 * 当促销员取消保存活动记录时,数据进行删除
*/ */
@DeleteMapping("/today/reported/market_cell/del") @DeleteMapping("/today/reported/market_cell/del")
public R todayDeleteMarketCellReported(Integer temporaryId) { public R todayDeleteMarketCellReported( Long temporaryId) {
tempActivityCoreService.todayActivityDeleteMarketCellReported(temporaryId); tempActivityCoreService.todayActivityDeleteMarketCellReported(temporaryId);
return R.success(); return R.success();
} }
......
...@@ -61,7 +61,7 @@ public class TemporaryActivityQueryController { ...@@ -61,7 +61,7 @@ public class TemporaryActivityQueryController {
* 数据暂存到redis中,当调用保存接口时再添加到数据库中 * 数据暂存到redis中,当调用保存接口时再添加到数据库中
*/ */
@GetMapping("/today/reported/market_cell") @GetMapping("/today/reported/market_cell")
public R todayActivityMarketCell(Integer temporaryId) { public R todayActivityMarketCell( Long temporaryId) {
return R.success(temporaryActivityQueryService.findActivityMarketCell(temporaryId)); return R.success(temporaryActivityQueryService.findActivityMarketCell(temporaryId));
} }
......
...@@ -40,7 +40,7 @@ public interface TemporaryActivityClockDao { ...@@ -40,7 +40,7 @@ public interface TemporaryActivityClockDao {
*/ */
void employeePage(String employeeQcId, PageInfo pageInfo,TemporaryClockWrapper tcw); void employeePage(String employeeQcId, PageInfo pageInfo,TemporaryClockWrapper tcw);
TemporaryClockDto findLatestClockByTemporaryId(Integer temporaryId); TemporaryClockDto findLatestClockByTemporaryId( Long temporaryId);
TemporaryClockDto findClockInfo(TemporaryClockWrapper wr); TemporaryClockDto findClockInfo(TemporaryClockWrapper wr);
} }
...@@ -85,7 +85,7 @@ public class PromotionStoreDaoImpl implements PromotionStoreDao { ...@@ -85,7 +85,7 @@ public class PromotionStoreDaoImpl implements PromotionStoreDao {
.setArea(jo.getString("store_mss_area")) .setArea(jo.getString("store_mss_area"))
.setStreet(jo.getString("store_mss_street")) .setStreet(jo.getString("store_mss_street"))
.setAddress(jo.getString("store_addr")) .setAddress(jo.getString("store_addr"))
.setTemporaryId(0) .setTemporaryId(0L)
.setTemporaryName("系统同步") .setTemporaryName("系统同步")
.setStoreManager(jo.getString("store_manager")) .setStoreManager(jo.getString("store_manager"))
.setStoreManagerWaiqin365Id(jo.getString("store_manager_waiqin365_id")); .setStoreManagerWaiqin365Id(jo.getString("store_manager_waiqin365_id"));
......
...@@ -95,7 +95,7 @@ public class TemporaryActivityClockDaoImpl implements TemporaryActivityClockDao ...@@ -95,7 +95,7 @@ public class TemporaryActivityClockDaoImpl implements TemporaryActivityClockDao
} }
@Override @Override
public TemporaryClockDto findLatestClockByTemporaryId(Integer temporaryId) { public TemporaryClockDto findLatestClockByTemporaryId( Long temporaryId) {
TemporaryActivityClockDO clockDO = temporaryActivityClockMapper.findLatestClockByTemporaryId(temporaryId); TemporaryActivityClockDO clockDO = temporaryActivityClockMapper.findLatestClockByTemporaryId(temporaryId);
return transitionDto(clockDO); return transitionDto(clockDO);
} }
......
...@@ -58,6 +58,8 @@ public class TemporaryActivityTaskClockDaoImpl implements TemporaryActivityTaskC ...@@ -58,6 +58,8 @@ public class TemporaryActivityTaskClockDaoImpl implements TemporaryActivityTaskC
TemporaryActivityTaskClockDO temporaryActivityTaskClockDO = temporaryActivityTaskClockMapper.selectOne( TemporaryActivityTaskClockDO temporaryActivityTaskClockDO = temporaryActivityTaskClockMapper.selectOne(
new LambdaQueryWrapper<TemporaryActivityTaskClockDO>() new LambdaQueryWrapper<TemporaryActivityTaskClockDO>()
.eq(ObjectUtil.isNotEmpty(wrapper.getTemporaryId()),TemporaryActivityTaskClockDO::getTemporaryId, wrapper.getTemporaryId()) .eq(ObjectUtil.isNotEmpty(wrapper.getTemporaryId()),TemporaryActivityTaskClockDO::getTemporaryId, wrapper.getTemporaryId())
.eq(ObjectUtil.isNotEmpty(wrapper.getClockId()),TemporaryActivityTaskClockDO::getClockId, wrapper.getClockId())
.eq(ObjectUtil.isNotEmpty(wrapper.getReportId()),TemporaryActivityTaskClockDO::getReportedId, wrapper.getReportId())
.eq(ObjectUtil.isNotEmpty(wrapper.getTaskType()),TemporaryActivityTaskClockDO::getTaskType, wrapper.getTaskType()) .eq(ObjectUtil.isNotEmpty(wrapper.getTaskType()),TemporaryActivityTaskClockDO::getTaskType, wrapper.getTaskType())
.eq(ObjectUtil.isNotEmpty(wrapper.getIsDelete()),TemporaryActivityTaskClockDO::getIsDelete, wrapper.getIsDelete()) .eq(ObjectUtil.isNotEmpty(wrapper.getIsDelete()),TemporaryActivityTaskClockDO::getIsDelete, wrapper.getIsDelete())
// 当天的数据 // 当天的数据
......
...@@ -23,7 +23,7 @@ public interface TemporaryActivityClockMapper extends BaseMapper<TemporaryActivi ...@@ -23,7 +23,7 @@ public interface TemporaryActivityClockMapper extends BaseMapper<TemporaryActivi
Integer employeePageCount(@Param("employeeQcId") String employeeQcId, @Param("pageSize") int pageSize); Integer employeePageCount(@Param("employeeQcId") String employeeQcId, @Param("pageSize") int pageSize);
TemporaryActivityClockDO findLatestClockByTemporaryId(Integer temporaryId); TemporaryActivityClockDO findLatestClockByTemporaryId( Long temporaryId);
} }
......
...@@ -81,7 +81,7 @@ public class PromotionStoreDO implements Serializable { ...@@ -81,7 +81,7 @@ public class PromotionStoreDO implements Serializable {
/** /**
* 门店提交人id * 门店提交人id
*/ */
private Integer temporaryId; private Long temporaryId;
/** /**
* 门店提交人 * 门店提交人
......
...@@ -24,7 +24,7 @@ public class TemporaryActivityClockDO implements Serializable { ...@@ -24,7 +24,7 @@ public class TemporaryActivityClockDO implements Serializable {
/** /**
* temporary_info表id * temporary_info表id
*/ */
private Integer temporaryId; private Long temporaryId;
/** /**
* temporary_info表name * temporary_info表name
......
...@@ -24,7 +24,7 @@ public class TemporaryActivityMarketCellDO implements Serializable { ...@@ -24,7 +24,7 @@ public class TemporaryActivityMarketCellDO implements Serializable {
/** /**
* 关联—temporary_info表id * 关联—temporary_info表id
*/ */
private Integer temporaryId; private Long temporaryId;
private Long activityReportedId; private Long activityReportedId;
......
...@@ -25,7 +25,7 @@ public class TemporaryActivityReportedDO implements Serializable { ...@@ -25,7 +25,7 @@ public class TemporaryActivityReportedDO implements Serializable {
/** /**
* 关联—temporary_info表id * 关联—temporary_info表id
*/ */
private Integer temporaryId; private Long temporaryId;
/** /**
* 关联—temporary_info表name * 关联—temporary_info表name
......
...@@ -22,6 +22,6 @@ public class TemporaryMarketCellWrapper { ...@@ -22,6 +22,6 @@ public class TemporaryMarketCellWrapper {
private List<Long> activityIds; private List<Long> activityIds;
private Integer temporaryId; private Long temporaryId;
} }
...@@ -23,7 +23,7 @@ public class ClockVo { ...@@ -23,7 +23,7 @@ public class ClockVo {
/** /**
* temporaryId * temporaryId
*/ */
Integer temporaryId; Long temporaryId;
// 活动模式Id // 活动模式Id
Integer activityPatternId; Integer activityPatternId;
......
...@@ -78,7 +78,7 @@ public class PromotionStoreDto implements Serializable { ...@@ -78,7 +78,7 @@ public class PromotionStoreDto implements Serializable {
/** /**
* 门店提交人id * 门店提交人id
*/ */
private Integer temporaryId; private Long temporaryId;
/** /**
* 门店提交人 * 门店提交人
......
...@@ -20,7 +20,7 @@ public class TemporaryActivityMarketCellDto { ...@@ -20,7 +20,7 @@ public class TemporaryActivityMarketCellDto {
/** /**
* 关联—temporary_info表id * 关联—temporary_info表id
*/ */
private Integer temporaryId; private Long temporaryId;
private Long activityReportedId; private Long activityReportedId;
......
...@@ -27,7 +27,7 @@ public class TemporaryActivityTaskClockRes { ...@@ -27,7 +27,7 @@ public class TemporaryActivityTaskClockRes {
*/ */
private Long clockId; private Long clockId;
private Integer temporaryId; private Long temporaryId;
/** /**
* temporary_info表name * temporary_info表name
......
...@@ -22,12 +22,12 @@ public class TemporaryActivityDataVo { ...@@ -22,12 +22,12 @@ public class TemporaryActivityDataVo {
* 促销员活动上报id * 促销员活动上报id
* 关联ID:temporary_activity_reported表id * 关联ID:temporary_activity_reported表id
*/ */
Long activityReportedId; private Long activityReportedId;
/** /**
* 促销员id * 促销员id
* temporaryInfo表id * temporaryInfo表id
*/ */
private Integer temporaryId; private Long temporaryId;
/** /**
* 促销员姓名 * 促销员姓名
......
...@@ -24,7 +24,7 @@ public class TemporaryActivityMarketCellVo { ...@@ -24,7 +24,7 @@ public class TemporaryActivityMarketCellVo {
* 促销员id * 促销员id
* temporaryInfo表id * temporaryInfo表id
*/ */
private Integer temporaryId; private Long temporaryId;
/** /**
* market_cell 表id * market_cell 表id
......
...@@ -31,7 +31,7 @@ public class TemporaryActivityTaskClockReq { ...@@ -31,7 +31,7 @@ public class TemporaryActivityTaskClockReq {
private Long clockId; private Long clockId;
@NotNull(message = "促销员id不能为空") @NotNull(message = "促销员id不能为空")
private Integer temporaryId; private Long temporaryId;
/** /**
* temporary_info表name * temporary_info表name
......
...@@ -16,7 +16,7 @@ public interface TemporaryActivityClockQueryService { ...@@ -16,7 +16,7 @@ public interface TemporaryActivityClockQueryService {
TemporaryClockDto findById(Long id); TemporaryClockDto findById(Long id);
TemporaryClockDto selectOne(TemporaryClockWrapper tcw); TemporaryClockDto selectOne(TemporaryClockWrapper tcw);
TemporaryClockDto findLatestClockByTemporaryId(Integer temporaryId); TemporaryClockDto findLatestClockByTemporaryId( Long temporaryId);
TemporaryClockDto findClockInfo(TemporaryClockWrapper wr); TemporaryClockDto findClockInfo(TemporaryClockWrapper wr);
......
...@@ -34,7 +34,7 @@ public interface TemporaryActivityCoreService { ...@@ -34,7 +34,7 @@ public interface TemporaryActivityCoreService {
/** /**
* 删除销售上报-出售单元 - 缓存 * 删除销售上报-出售单元 - 缓存
*/ */
void todayActivityDeleteMarketCellReported(Integer temporaryId); void todayActivityDeleteMarketCellReported( Long temporaryId);
/** /**
* 修改/删除 单一出售单元 * 修改/删除 单一出售单元
......
...@@ -26,7 +26,7 @@ public interface TemporaryActivityQueryService { ...@@ -26,7 +26,7 @@ public interface TemporaryActivityQueryService {
TemporaryActivityReportedDto findTemporaryActivityById(Long activityId); TemporaryActivityReportedDto findTemporaryActivityById(Long activityId);
JSONArray findActivityMarketCell(Integer temporaryId); JSONArray findActivityMarketCell( Long temporaryId);
List<TemporaryActivityMarketCellDto> findActivityMarketCellByDb(Long activityId); List<TemporaryActivityMarketCellDto> findActivityMarketCellByDb(Long activityId);
......
...@@ -79,7 +79,7 @@ public class TemporaryActivityClockQueryServiceImpl implements TemporaryActivity ...@@ -79,7 +79,7 @@ public class TemporaryActivityClockQueryServiceImpl implements TemporaryActivity
} }
@Override @Override
public TemporaryClockDto findLatestClockByTemporaryId(Integer temporaryId) { public TemporaryClockDto findLatestClockByTemporaryId( Long temporaryId) {
return temporaryActivityClockDao.findLatestClockByTemporaryId(temporaryId); return temporaryActivityClockDao.findLatestClockByTemporaryId(temporaryId);
} }
......
...@@ -162,7 +162,7 @@ public class TemporaryActivityCoreServiceImpl implements TemporaryActivityCoreSe ...@@ -162,7 +162,7 @@ public class TemporaryActivityCoreServiceImpl implements TemporaryActivityCoreSe
} }
@Override @Override
public void todayActivityDeleteMarketCellReported(Integer temporaryId) { public void todayActivityDeleteMarketCellReported( Long temporaryId) {
String key = temMarketCellRedisKey(temporaryId); String key = temMarketCellRedisKey(temporaryId);
redisCache.removeKey(key); redisCache.removeKey(key);
} }
...@@ -232,7 +232,7 @@ public class TemporaryActivityCoreServiceImpl implements TemporaryActivityCoreSe ...@@ -232,7 +232,7 @@ public class TemporaryActivityCoreServiceImpl implements TemporaryActivityCoreSe
} }
} }
private String temMarketCellRedisKey(Integer temporaryId) { private String temMarketCellRedisKey( Long temporaryId) {
return RedisKeys.TemporaryKeys.TEMPORARY_ACTIVITY_MARKET_CELL.getKey() + temporaryId + "_" + DateUtil.today(); return RedisKeys.TemporaryKeys.TEMPORARY_ACTIVITY_MARKET_CELL.getKey() + temporaryId + "_" + DateUtil.today();
} }
...@@ -271,7 +271,7 @@ public class TemporaryActivityCoreServiceImpl implements TemporaryActivityCoreSe ...@@ -271,7 +271,7 @@ public class TemporaryActivityCoreServiceImpl implements TemporaryActivityCoreSe
} }
// private void saveActivityPhoto(TemporaryActivityReportedDto temActDto) { // private void saveActivityPhoto(TemporaryActivityReportedDto temActDto) {
// Integer temporaryId = temActDto.getTemporaryId(); // Long temporaryId = temActDto.getTemporaryId();
// Long reportedId = temActDto.getId(); // Long reportedId = temActDto.getId();
// // 推广试吃照片 // // 推广试吃照片
// if (!CollectionUtils.isEmpty(temActDto.getTgscPhotoUrls())) { // if (!CollectionUtils.isEmpty(temActDto.getTgscPhotoUrls())) {
......
...@@ -73,7 +73,7 @@ public class TemporaryActivityQueryServiceImpl implements TemporaryActivityQuery ...@@ -73,7 +73,7 @@ public class TemporaryActivityQueryServiceImpl implements TemporaryActivityQuery
} }
@Override @Override
public JSONArray findActivityMarketCell(Integer temporaryId) { public JSONArray findActivityMarketCell( Long temporaryId) {
/** /**
* 将数据保存到redis中Generators * 将数据保存到redis中Generators
*/ */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论