提交修改
This commit is contained in:
parent
43e65443a0
commit
8c1b7d5186
@ -39,6 +39,8 @@ public interface ResultRecordMapper extends BaseMapper<ResultRecord> {
|
||||
|
||||
int deleteResultRecordById(@Param("id") Long id);
|
||||
|
||||
int deleteResultRecordById2(@Param("id") Long id);
|
||||
|
||||
|
||||
List<ResultRecord> selectByCondition(@Param("page") IPage page, @Param("req") ResultRecordReq req);
|
||||
|
||||
|
||||
@ -45,6 +45,7 @@ public interface ResultRecordService extends IService<ResultRecord> {
|
||||
|
||||
|
||||
int deleteResultRecordById(Long id);
|
||||
int deleteResultRecordById2(Long id);
|
||||
|
||||
R queryPage(ResultRecordReq params, SysUserEntity user);
|
||||
|
||||
|
||||
@ -150,6 +150,11 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
return resultRecordMapper.deleteResultRecordById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteResultRecordById2(Long id) {
|
||||
return resultRecordMapper.deleteResultRecordById2(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public R queryPage(ResultRecordReq params, SysUserEntity user) {
|
||||
List<String> departmentIds = new ArrayList<>();
|
||||
@ -353,7 +358,7 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
resultRecordOld.setFlowStaffIdRole(resultDetailService.initRole(resultRecordOld.getStaffId(), roleId));
|
||||
resultRecordService.insertResultRecord(resultRecordOld);
|
||||
//删除月初目标
|
||||
resultRecordService.deleteResultRecordById(oldResultRecordId);
|
||||
resultRecordService.deleteResultRecordById2(oldResultRecordId);
|
||||
List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordByResultRecordIdFlowId(oldResultRecordId);
|
||||
for(FlowRecord flowRecord : flowRecords){
|
||||
flowRecord.setRecordId(resultRecordOld.getId());
|
||||
|
||||
@ -135,6 +135,12 @@
|
||||
</update>
|
||||
|
||||
|
||||
<update id="deleteResultRecordById2" parameterType="java.lang.Long">
|
||||
update lz_result_record set is_delete = 2 where id=#{id} limit 1
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="selectByCondition" resultType="com.lz.modules.sys.entity.app.ResultRecord">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user