Commit f15558f5 by 翁国栋

Merge remote-tracking branch 'origin/feature_20220222_huayi' into feature_20220222_huayi

parents 667b9522 12a71464
...@@ -86,6 +86,7 @@ public class DiskFilesController { ...@@ -86,6 +86,7 @@ public class DiskFilesController {
.eq("org_id", userBean.getOrgCode()) .eq("org_id", userBean.getOrgCode())
.eq("parent_id",0) .eq("parent_id",0)
.eq("delete_flag",0) .eq("delete_flag",0)
.eq("type",JxglEnumInterface.DiskCatalogueType.DISK_FILE.getType())
.eq("create_user_id",userBean.getEmpNum()).orderByDesc("create_time") .eq("create_user_id",userBean.getEmpNum()).orderByDesc("create_time")
); );
if(StringUtils.isEmpty(diskCatalogue)){ if(StringUtils.isEmpty(diskCatalogue)){
......
...@@ -1257,8 +1257,15 @@ public class SpmkController { ...@@ -1257,8 +1257,15 @@ public class SpmkController {
if (!listFlowChildren.get(currentIndex).getExecute().equals("1") && !listFlowChildren.get(currentIndex).getExecute().equals("0")) { if (!listFlowChildren.get(currentIndex).getExecute().equals("1") && !listFlowChildren.get(currentIndex).getExecute().equals("0")) {
//如果当前索引下的都要变更为0未执行 //如果当前索引下的都要变更为0未执行
FlowChildren flowChildren = listFlowChildren.get(spmkApproveDetailDto.getIndex()); FlowChildren flowChildren = listFlowChildren.get(spmkApproveDetailDto.getIndex());
User user = flowChildren.getRelation().get(0).getUsers().get(spmkApproveDetailDto.getUserIndex()); SpmkApproveExecuteRecord spmkApproveExecuteRecord=null;
SpmkApproveExecuteRecord spmkApproveExecuteRecord = spmkApproveExecuteRecordMapper.selectExecuteRecordById(Integer.parseInt(user.getId()), spmkApproveDetailSummary.getApproveSummaryId()); //如果有执行记录
if(spmkApproveDetailDto.getApproveExecuteRecordId()>0){
spmkApproveExecuteRecord=spmkApproveExecuteRecordMapper.selectById(spmkApproveDetailDto.getApproveExecuteRecordId());
}else{
User user = flowChildren.getRelation().get(0).getUsers().get(spmkApproveDetailDto.getUserIndex());
spmkApproveExecuteRecord = spmkApproveExecuteRecordMapper.selectExecuteRecordById(Integer.parseInt(user.getId()), spmkApproveDetailSummary.getApproveSummaryId());
}
//删除审批过的人记录 //删除审批过的人记录
if (spmkApproveExecuteRecord != null) { if (spmkApproveExecuteRecord != null) {
spmkApproveExecuteRecordMapper.delExecuteRecord(spmkApproveExecuteRecord.getId(), spmkApproveDetailSummary.getApproveSummaryId()); spmkApproveExecuteRecordMapper.delExecuteRecord(spmkApproveExecuteRecord.getId(), spmkApproveDetailSummary.getApproveSummaryId());
...@@ -1305,6 +1312,7 @@ public class SpmkController { ...@@ -1305,6 +1312,7 @@ public class SpmkController {
SpmkApproveDetailSummary.builder().id(spmkApproveDetailDto.getId()) SpmkApproveDetailSummary.builder().id(spmkApproveDetailDto.getId())
.flowChildren(JSONArray.fromObject(listFlowChildren).toString()).build().updateById(); .flowChildren(JSONArray.fromObject(listFlowChildren).toString()).build().updateById();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
return ResultUtil.error(e); return ResultUtil.error(e);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment