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 = "提交审批") @SysLog(title = "入场申请", businessType = OperaType.QUERY, logType = 0, module = "入场申请", details = "提交审批")
public AjaxResult submitMulApproval(@RequestBody AuditTask auditTask) { public AjaxResult submitMulApproval(@RequestBody AuditTask auditTask) {
String[] uuidArr = auditTask.getUuid().split(","); 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; AjaxResult code = null;
for (int i = 0; i < uuidArr.length; i++) { for (int i = 0; i < uuidArr.length; i++) {
auditTask.setUuid(uuidArr[i]); auditTask.setUuid(uuidArr[i]);
if (taskIdArr.length > 0) {
auditTask.setTaskId(taskIdArr[i]); auditTask.setTaskId(taskIdArr[i]);
}
code = businessService.submitApproval(auditTask); code = businessService.submitApproval(auditTask);
if (!StaticVariableUtils.REVIEW_SUBMITTED_SUCCESSFULLY.equals(code.get("msg"))) { if (!StaticVariableUtils.REVIEW_SUBMITTED_SUCCESSFULLY.equals(code.get("msg"))) {
if (StaticVariableUtils.THEAUDITFLOWNEEDSTOBECONFIGURED.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 status;
private String examType; private String examType;
private String sort; private String sort;
private Integer agree;
} }

View File

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

View File

@ -406,8 +406,11 @@
from (select pcc.user_id as userId, from (select pcc.user_id as userId,
pcc.comment as reason, pcc.comment as reason,
IFNULL(pcc.reject,'') as turnDownReason, IFNULL(pcc.reject,'') as turnDownReason,
pcc.create_time as time, case when pcc.agree = '1' then '审核通过'
'已审核' as status 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 from nxdt_ii.pt_check_comment pcc
where proc_inst_id = #{processInstanceId}) a 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 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( d.time, '' ) AS time,
IFNULL( c.examType, '' ) AS examType, IFNULL( c.examType, '' ) AS examType,
IFNULL( e.`name`, '' ) AS `name`, 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( f.dept_name, '' ) AS section,
IFNULL( c.sort, '' ) AS sort, IFNULL( c.sort, '' ) AS sort,
#{taskId} as taskId #{taskId} as taskId
@ -526,6 +534,7 @@
user_id, user_id,
`comment`, `comment`,
reject, reject,
b.agree,
create_time AS time create_time AS time
FROM FROM
( (

View File

@ -299,7 +299,7 @@ public class AdmissionRequestController extends BaseController {
try{ try{
int code = arService.judgeIsFileComplete(bean); int code = arService.judgeIsFileComplete(bean);
if (code > 0) { if (code > 0) {
return success("部分人员文件不存在,请先仔细核对,上传相关文件!"); return error("部分人员文件不存在,请先仔细核对,上传相关文件!");
}else{ }else{
return success(); 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.common.security.annotation.RequiresPermissions;
import com.bonus.project.domain.SupervisionUnit; import com.bonus.project.domain.SupervisionUnit;
import com.bonus.project.domain.SupervisionOfAdmission; import com.bonus.project.domain.SupervisionOfAdmission;
import com.bonus.project.domain.SupervisorPerson;
import com.bonus.project.service.SupervisionUnitService; import com.bonus.project.service.SupervisionUnitService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -216,6 +217,16 @@ public class SupervisionUnitController extends BaseController {
} }
return error("系统异常,请联系管理员"); 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 * @return
*/ */
int getUserMapper(Long id); 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.common.core.web.domain.AjaxResult;
import com.bonus.project.domain.SupervisionUnit; import com.bonus.project.domain.SupervisionUnit;
import com.bonus.project.domain.SupervisionOfAdmission; import com.bonus.project.domain.SupervisionOfAdmission;
import com.bonus.project.domain.SupervisorPerson;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import java.util.List; import java.util.List;
@ -85,4 +86,6 @@ public interface SupervisionUnitService {
* @return * @return
*/ */
AjaxResult delSupervisionUnitUser(Long[] addressId); 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) { public List<SupervisionUnit> listSupervisionUnit(SupervisionUnit bean) {
return suMapper.listSupervisionUnit(bean); return suMapper.listSupervisionUnit(bean);
} }
/** /**
* 获取监理单位列表 * 获取监理单位列表
* *
@ -66,6 +67,7 @@ public class SupervisionUnitServiceImpl implements SupervisionUnitService {
public List<SupervisionUnit> listSupervisionUnitUser(SupervisionUnit bean) { public List<SupervisionUnit> listSupervisionUnitUser(SupervisionUnit bean) {
return suMapper.listSupervisionUnitUser(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; return code;
} }
/** /**
* 监理入场申请 * 监理入场申请
*
* @param enterpriseQualificationFiles 企业资质文件 * @param enterpriseQualificationFiles 企业资质文件
* @param securityAgreementFiles 安全协议文件 * @param securityAgreementFiles 安全协议文件
* @param supervisionPlanningFiles 监理规划文件 * @param supervisionPlanningFiles 监理规划文件
@ -371,6 +373,7 @@ public class SupervisionUnitServiceImpl implements SupervisionUnitService {
/** /**
* 修改监理单位人员 * 修改监理单位人员
*
* @param bean * @param bean
* @return * @return
*/ */
@ -392,6 +395,7 @@ public class SupervisionUnitServiceImpl implements SupervisionUnitService {
/** /**
* 删除监理人员数据 * 删除监理人员数据
*
* @param addressId * @param addressId
* @return * @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, private int qualificationMaterialsFile(@NotNull String filePath, int proId,
long fileSize, String fromType, long fileSize, String fromType,
String informationType, String uuid) { String informationType, String uuid) {

View File

@ -100,6 +100,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{addressId} #{addressId}
</foreach> </foreach>
</delete> </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 id="listSupervisionUnit" resultType="com.bonus.project.domain.SupervisionUnit">
select (@rowNum := @rowNum + 1) as exportId, select (@rowNum := @rowNum + 1) as exportId,