提交 7fdd239d authored 作者: 000516's avatar 000516 提交者: Coding

改bug:删除计划时,记录操作人员姓名

Merge Request: 改bug:删除计划时,记录操作人员姓名 Created By: @李秋林 Accepted By: @李秋林 URL: https://g-pkkp8204.coding.net/p/promotion/d/promotion-service/git/merge/314?initial=true
...@@ -167,7 +167,7 @@ public class PromPlanCoreController { ...@@ -167,7 +167,7 @@ public class PromPlanCoreController {
if (isAuth) { if (isAuth) {
employeeNo = ""; employeeNo = "";
} }
promPlanCoreService.deletePlan(activityPlanVo.getPlanIds(), employeeNo); promPlanCoreService.deletePlan(activityPlanVo.getPlanIds(), employeeNo,activityPlanVo.getEmployeeNo());
return R.success(); return R.success();
} }
......
...@@ -21,7 +21,7 @@ public interface ActivityPlanInfoDao { ...@@ -21,7 +21,7 @@ public interface ActivityPlanInfoDao {
ActivityPlanInfoDto selectPlan(String storeCode, Date date); ActivityPlanInfoDto selectPlan(String storeCode, Date date);
void deleteByPlanIds(List<Long> planIds, String employeeNo); void deleteByPlanIds(List<Long> planIds, String employeeNo,String operNo);
void updateList(JSONArray table, Long recordId); void updateList(JSONArray table, Long recordId);
......
...@@ -115,7 +115,7 @@ public class ActivityPlanInfoDaoImpl implements ActivityPlanInfoDao { ...@@ -115,7 +115,7 @@ public class ActivityPlanInfoDaoImpl implements ActivityPlanInfoDao {
} }
@Override @Override
public void deleteByPlanIds(List<Long> planIds, String employeeNo) { public void deleteByPlanIds(List<Long> planIds, String employeeNo,String operNo) {
// 判断ID中是否包含之前数据、非个人数据 // 判断ID中是否包含之前数据、非个人数据
Integer count = activityPlanInfoMapper.selectNotDelCount(planIds,employeeNo); Integer count = activityPlanInfoMapper.selectNotDelCount(planIds,employeeNo);
if (count > 0 ) { if (count > 0 ) {
...@@ -131,7 +131,7 @@ public class ActivityPlanInfoDaoImpl implements ActivityPlanInfoDao { ...@@ -131,7 +131,7 @@ public class ActivityPlanInfoDaoImpl implements ActivityPlanInfoDao {
throw new FlowException(RCode.ACTIVITY_PLAN_ID_NOT_DELETE.getCode(),String.format(RCode.ACTIVITY_PLAN_ID_NOT_DELETE.getMsg(),todayPlan.getId())); throw new FlowException(RCode.ACTIVITY_PLAN_ID_NOT_DELETE.getCode(),String.format(RCode.ACTIVITY_PLAN_ID_NOT_DELETE.getMsg(),todayPlan.getId()));
} }
} }
activityPlanInfoMapper.updateIsDelete(planIds); activityPlanInfoMapper.updateIsDelete(planIds,operNo);
} }
private LambdaQueryWrapper<ActivityPlanInfoDo> buildWrapper(ActivityPlanInfoWrapper wrapper) { private LambdaQueryWrapper<ActivityPlanInfoDo> buildWrapper(ActivityPlanInfoWrapper wrapper) {
LambdaQueryWrapper<ActivityPlanInfoDo> qw = new LambdaQueryWrapper<>(); LambdaQueryWrapper<ActivityPlanInfoDo> qw = new LambdaQueryWrapper<>();
......
...@@ -26,7 +26,7 @@ public interface ActivityPlanInfoMapper extends BaseMapper<ActivityPlanInfoDo> { ...@@ -26,7 +26,7 @@ public interface ActivityPlanInfoMapper extends BaseMapper<ActivityPlanInfoDo> {
ActivityPlanInfoDo selectPlan(String storeCode, Date date); ActivityPlanInfoDo selectPlan(String storeCode, Date date);
void updateIsDelete(List<Long> planIds); void updateIsDelete(@Param("planIds") List<Long> planIds,@Param("employeeNo") String employeeNo);
Integer selectNotDelCount(@Param("planIds") List<Long> planIds,@Param("employeeNo") String employeeNo); Integer selectNotDelCount(@Param("planIds") List<Long> planIds,@Param("employeeNo") String employeeNo);
......
...@@ -18,7 +18,7 @@ public interface PromPlanCoreService { ...@@ -18,7 +18,7 @@ public interface PromPlanCoreService {
void selfPlanAf(String planUuid); void selfPlanAf(String planUuid);
void deletePlan(List<Long> planIds,String employeeNo); void deletePlan(List<Long> planIds,String employeeNo,String operNo);
Map<String, Object> authPlanUp(ActivityPlanVo activityPlanVo, String filePath) throws DataException; Map<String, Object> authPlanUp(ActivityPlanVo activityPlanVo, String filePath) throws DataException;
......
...@@ -739,7 +739,7 @@ public class PromPlanCoreServiceImpl implements PromPlanCoreService { ...@@ -739,7 +739,7 @@ public class PromPlanCoreServiceImpl implements PromPlanCoreService {
} }
@Override @Override
public void deletePlan(List<Long> planIds,String employeeNo) { public void deletePlan(List<Long> planIds,String employeeNo,String operNo) {
activityPlanInfoDao.deleteByPlanIds(planIds, employeeNo); activityPlanInfoDao.deleteByPlanIds(planIds, employeeNo,operNo);
} }
} }
...@@ -99,7 +99,8 @@ ...@@ -99,7 +99,8 @@
<update id="updateIsDelete" parameterType="java.util.List"> <update id="updateIsDelete" parameterType="java.util.List">
update activity_plan_info update activity_plan_info
set is_delete = 0 set is_delete = 0,
modify_by = (select name from manage_employee_info mei where mei.employee_no = #{employeeNo})
where id in where id in
<foreach collection="planIds" item="item" index="index" open="(" close=")" separator=","> <foreach collection="planIds" item="item" index="index" open="(" close=")" separator=",">
#{item} #{item}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论