bug修改

This commit is contained in:
liang.chao 2025-02-13 16:36:47 +08:00
parent 72b53ce476
commit 8a1d193ac9
10 changed files with 112 additions and 52 deletions

View File

@ -48,11 +48,16 @@ public class BusinessController {
@SysLog(title = "入场申请", businessType = OperaType.QUERY, logType = 0, module = "入场申请", details = "提交审批")
public AjaxResult submitMulApproval(@RequestBody AuditTask auditTask) {
String[] uuidArr = auditTask.getUuid().split(",");
String[] taskIdArr = auditTask.getTaskId().split(",");
String[] taskIdArr = new String[0];
if (StringUtils.isNotBlank(auditTask.getTaskId())){
taskIdArr = auditTask.getTaskId().split(",");
}
AjaxResult code = null;
for (int i = 0; i < uuidArr.length; i++) {
auditTask.setUuid(uuidArr[i]);
if (taskIdArr.length > 0) {
auditTask.setTaskId(taskIdArr[i]);
}
code = businessService.submitApproval(auditTask);
if (!StaticVariableUtils.REVIEW_SUBMITTED_SUCCESSFULLY.equals(code.get("msg"))) {
if (StaticVariableUtils.THEAUDITFLOWNEEDSTOBECONFIGURED.equals(code.get("msg"))) {

View File

@ -22,5 +22,6 @@ public class CheckComment {
private String status;
private String examType;
private String sort;
private Integer agree;
}

View File

@ -911,7 +911,7 @@ public class FlowTaskUtils extends FlowServiceFactory {
tempList.add(checkComment);
sortList.add(checkComment.getSort());
}
checkComment.setStatus(StringUtils.isBlank(time) ? "未审核" : "已审核");
// checkComment.setStatus(StringUtils.isBlank(time) ? "未审核" : "已审核");
}
List<CheckComment> newList = new ArrayList<>();
sortList.forEach(sort -> {

View File

@ -406,8 +406,11 @@
from (select pcc.user_id as userId,
pcc.comment as reason,
IFNULL(pcc.reject,'') as turnDownReason,
pcc.create_time as time,
'已审核' as status
case when pcc.agree = '1' then '审核通过'
when pcc.agree = '2' then '审核驳回'
when pcc.agree = '3' then '终审通过'
when pcc.agree = '4' then '已撤回'
else '' end as status
from nxdt_ii.pt_check_comment pcc
where proc_inst_id = #{processInstanceId}) a
left join (select user_name as userName, nick_name as name, user_id as userId, dept_id as deptId
@ -509,6 +512,11 @@
IFNULL( d.time, '' ) AS time,
IFNULL( c.examType, '' ) AS examType,
IFNULL( e.`name`, '' ) AS `name`,
case when d.agree = '1' then '审核通过'
when d.agree = '2' then '审核驳回'
when d.agree = '3' then '终审通过'
when d.agree = '4' then '已撤回'
else '' end as status,
IFNULL( f.dept_name, '' ) AS section,
IFNULL( c.sort, '' ) AS sort,
#{taskId} as taskId
@ -526,6 +534,7 @@
user_id,
`comment`,
reject,
b.agree,
create_time AS time
FROM
(

View File

@ -299,7 +299,7 @@ public class AdmissionRequestController extends BaseController {
try{
int code = arService.judgeIsFileComplete(bean);
if (code > 0) {
return success("部分人员文件不存在,请先仔细核对,上传相关文件!");
return error("部分人员文件不存在,请先仔细核对,上传相关文件!");
}else{
return success();
}

View File

@ -9,6 +9,7 @@ import com.bonus.common.log.enums.OperaType;
import com.bonus.common.security.annotation.RequiresPermissions;
import com.bonus.project.domain.SupervisionUnit;
import com.bonus.project.domain.SupervisionOfAdmission;
import com.bonus.project.domain.SupervisorPerson;
import com.bonus.project.service.SupervisionUnitService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@ -216,6 +217,16 @@ public class SupervisionUnitController extends BaseController {
}
return error("系统异常,请联系管理员");
}
@PostMapping("/delSupervisoryPersonApply")
@SysLog(title = "监理管理", businessType = OperaType.INSERT,logType = 0,module = "监理管理->监理入场-监理人员删除",details = "监理入场-监理人员删除")
public AjaxResult delSupervisoryPersonApply(@RequestBody SupervisorPerson supervisorPerson) {
try{
return toAjax(suService.delSupervisoryPersonApply(supervisorPerson));
}catch (Exception e){
logger.error(e.toString(),e);
}
return error("系统异常,请联系管理员");
}
/**
* 监理入场申请

View File

@ -168,4 +168,8 @@ public interface SupervisionUnitMapper {
* @return
*/
int getUserMapper(Long id);
Integer delUser(SupervisorPerson supervisorPerson);
Integer delPtSupPerson(SupervisorPerson supervisorPerson);
}

View File

@ -3,6 +3,7 @@ package com.bonus.project.service;
import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.project.domain.SupervisionUnit;
import com.bonus.project.domain.SupervisionOfAdmission;
import com.bonus.project.domain.SupervisorPerson;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
@ -85,4 +86,6 @@ public interface SupervisionUnitService {
* @return
*/
AjaxResult delSupervisionUnitUser(Long[] addressId);
int delSupervisoryPersonApply(SupervisorPerson supervisorPerson);
}

View File

@ -56,6 +56,7 @@ public class SupervisionUnitServiceImpl implements SupervisionUnitService {
public List<SupervisionUnit> listSupervisionUnit(SupervisionUnit bean) {
return suMapper.listSupervisionUnit(bean);
}
/**
* 获取监理单位列表
*
@ -66,6 +67,7 @@ public class SupervisionUnitServiceImpl implements SupervisionUnitService {
public List<SupervisionUnit> listSupervisionUnitUser(SupervisionUnit bean) {
return suMapper.listSupervisionUnitUser(bean);
}
/**
* 修改监理单位管理
*
@ -112,8 +114,6 @@ public class SupervisionUnitServiceImpl implements SupervisionUnitService {
}
/**
* 获取监理入场列表
*
@ -263,8 +263,10 @@ public class SupervisionUnitServiceImpl implements SupervisionUnitService {
}
return code;
}
/**
* 监理入场申请
*
* @param enterpriseQualificationFiles 企业资质文件
* @param securityAgreementFiles 安全协议文件
* @param supervisionPlanningFiles 监理规划文件
@ -371,6 +373,7 @@ public class SupervisionUnitServiceImpl implements SupervisionUnitService {
/**
* 修改监理单位人员
*
* @param bean
* @return
*/
@ -392,6 +395,7 @@ public class SupervisionUnitServiceImpl implements SupervisionUnitService {
/**
* 删除监理人员数据
*
* @param addressId
* @return
*/
@ -413,6 +417,23 @@ public class SupervisionUnitServiceImpl implements SupervisionUnitService {
}
@Override
@Transactional(rollbackFor = Exception.class)
public int delSupervisoryPersonApply(SupervisorPerson supervisorPerson) {
// 删除监理人员信息(user表)
Integer i = suMapper.delUser(supervisorPerson);
if (i > 0) {
Integer i1 = suMapper.delPtSupPerson(supervisorPerson);
if (i1 > 0) {
return suMapper.delPtSupPerson(supervisorPerson);
} else {
throw new RuntimeException("删除失败");
}
} else {
throw new RuntimeException("删除失败");
}
}
private int qualificationMaterialsFile(@NotNull String filePath, int proId,
long fileSize, String fromType,
String informationType, String uuid) {

View File

@ -100,6 +100,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{addressId}
</foreach>
</delete>
<delete id="delUser">
delete from sys_user where id_card = #{idCard} and phonenumber = #{phone} and del_flag = '0'
</delete>
<delete id="delPtSupPerson">
delete from pt_sup_person where id_card = #{idCard} and phonen = #{phone} and is_active = '1'
</delete>
<select id="listSupervisionUnit" resultType="com.bonus.project.domain.SupervisionUnit">
select (@rowNum := @rowNum + 1) as exportId,