Merge branch 'version_report' of http://gitlab.ldxinyong.com/enterpriseManagement/lz_management into version_report
This commit is contained in:
commit
9cd27c4622
@ -40,6 +40,8 @@ public interface ResultRecordMapper extends BaseMapper<ResultRecord> {
|
|||||||
|
|
||||||
int deleteResultRecordById(@Param("id") Long id);
|
int deleteResultRecordById(@Param("id") Long id);
|
||||||
|
|
||||||
|
int deleteResultRecordById2(@Param("id") Long id);
|
||||||
|
|
||||||
|
|
||||||
List<ResultRecord> selectByCondition(@Param("page") IPage page, @Param("req") ResultRecordReq req);
|
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 deleteResultRecordById(Long id);
|
||||||
|
int deleteResultRecordById2(Long id);
|
||||||
|
|
||||||
R queryPage(ResultRecordReq params, SysUserEntity user);
|
R queryPage(ResultRecordReq params, SysUserEntity user);
|
||||||
|
|
||||||
|
|||||||
@ -150,6 +150,11 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
|||||||
return resultRecordMapper.deleteResultRecordById(id);
|
return resultRecordMapper.deleteResultRecordById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteResultRecordById2(Long id) {
|
||||||
|
return resultRecordMapper.deleteResultRecordById2(id);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public R queryPage(ResultRecordReq params, SysUserEntity user) {
|
public R queryPage(ResultRecordReq params, SysUserEntity user) {
|
||||||
List<String> departmentIds = new ArrayList<>();
|
List<String> departmentIds = new ArrayList<>();
|
||||||
@ -353,7 +358,7 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
|||||||
resultRecordOld.setFlowStaffIdRole(resultDetailService.initRole(resultRecordOld.getStaffId(), roleId));
|
resultRecordOld.setFlowStaffIdRole(resultDetailService.initRole(resultRecordOld.getStaffId(), roleId));
|
||||||
resultRecordService.insertResultRecord(resultRecordOld);
|
resultRecordService.insertResultRecord(resultRecordOld);
|
||||||
//删除月初目标
|
//删除月初目标
|
||||||
resultRecordService.deleteResultRecordById(oldResultRecordId);
|
resultRecordService.deleteResultRecordById2(oldResultRecordId);
|
||||||
List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordByResultRecordIdFlowId(oldResultRecordId);
|
List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordByResultRecordIdFlowId(oldResultRecordId);
|
||||||
for(FlowRecord flowRecord : flowRecords){
|
for(FlowRecord flowRecord : flowRecords){
|
||||||
flowRecord.setRecordId(resultRecordOld.getId());
|
flowRecord.setRecordId(resultRecordOld.getId());
|
||||||
|
|||||||
@ -135,6 +135,12 @@
|
|||||||
</update>
|
</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">
|
<select id="selectByCondition" resultType="com.lz.modules.sys.entity.app.ResultRecord">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user