bug修改
This commit is contained in:
parent
c403f86bf9
commit
834a01b946
|
|
@ -496,13 +496,11 @@ public class New_SubCheckManageServiceImpl implements New_SubCheckManageService
|
||||||
}
|
}
|
||||||
checkPersonBean.setPersonFile(allBean);
|
checkPersonBean.setPersonFile(allBean);
|
||||||
//添加区分新人员与旧人员的功能
|
//添加区分新人员与旧人员的功能
|
||||||
if (isNewPerson && ("0".equals(checkPersonBean.getProcessStatus()) || "3".equals(checkPersonBean.getProcessStatus()))) {
|
if (("0".equals(checkPersonBean.getProcessStatus()) || "3".equals(checkPersonBean.getProcessStatus()))) {
|
||||||
checkPersonBean.setPersonIndex("new");
|
checkPersonBean.setPersonIndex("new");
|
||||||
isNewPerson = false;
|
|
||||||
} else {
|
} else {
|
||||||
if (isOldPerson && (!"0".equals(checkPersonBean.getProcessStatus()) && !"3".equals(checkPersonBean.getProcessStatus()))) {
|
if ((!"0".equals(checkPersonBean.getProcessStatus()) && !"3".equals(checkPersonBean.getProcessStatus()))) {
|
||||||
checkPersonBean.setPersonIndex("old");
|
checkPersonBean.setPersonIndex("old");
|
||||||
isOldPerson = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1278,6 +1276,8 @@ public class New_SubCheckManageServiceImpl implements New_SubCheckManageService
|
||||||
//写一个SQL 查询出下一级别审核人
|
//写一个SQL 查询出下一级别审核人
|
||||||
AmProcessType amProcessType = checkManageDao.getFixeNextAuditId(o);
|
AmProcessType amProcessType = checkManageDao.getFixeNextAuditId(o);
|
||||||
if (amProcessType == null || "null".equals(amProcessType.getPhone())) {
|
if (amProcessType == null || "null".equals(amProcessType.getPhone())) {
|
||||||
|
|
||||||
|
|
||||||
o.setIfFinal("1");
|
o.setIfFinal("1");
|
||||||
} else {
|
} else {
|
||||||
o.setNextAuditId(Objects.requireNonNull(amProcessType).getPhone());
|
o.setNextAuditId(Objects.requireNonNull(amProcessType).getPhone());
|
||||||
|
|
@ -1314,7 +1314,7 @@ public class New_SubCheckManageServiceImpl implements New_SubCheckManageService
|
||||||
o.setAuditProcessId(id);
|
o.setAuditProcessId(id);
|
||||||
checkManageDao.updateCheckStatus(o);
|
checkManageDao.updateCheckStatus(o);
|
||||||
//人员和工器具会有多个数据,删掉无用数据
|
//人员和工器具会有多个数据,删掉无用数据
|
||||||
checkManageDao.updateCheckDataActive(o);
|
// checkManageDao.updateCheckDataActive(o);
|
||||||
//如果是通过 将 1 改为 2, 0不改,终审也不改
|
//如果是通过 将 1 改为 2, 0不改,终审也不改
|
||||||
if ("1".equals(o.getIfFinal())) {
|
if ("1".equals(o.getIfFinal())) {
|
||||||
o.setNextAuditId("-1");
|
o.setNextAuditId("-1");
|
||||||
|
|
@ -1331,8 +1331,5 @@ public class New_SubCheckManageServiceImpl implements New_SubCheckManageService
|
||||||
} else if ("1".equals((o.getIfFinal()))) {//终审
|
} else if ("1".equals((o.getIfFinal()))) {//终审
|
||||||
o.setAuditState("2");
|
o.setAuditState("2");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<insert id="insertCheckMsg">
|
<insert id="insertCheckMsg">
|
||||||
insert into message_table(name_id,message_theme,create_time,status,dist_info,audit_id,project_id)
|
insert into message_table(name_id,message_theme,create_time,status,dist_info,audit_id,project_id)
|
||||||
values(#{id},#{msg},now(),"1",#{distInfo},#{msgId},#{proId})
|
values(#{id},#{msg},now(),'1',#{distInfo},#{msgId},#{proId})
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateCheckData">
|
<update id="updateCheckData">
|
||||||
|
|
@ -258,21 +258,19 @@
|
||||||
*
|
*
|
||||||
FROM
|
FROM
|
||||||
audit_processon
|
audit_processon
|
||||||
HAVING
|
|
||||||
1 = 1
|
|
||||||
ORDER BY
|
ORDER BY
|
||||||
create_time ASC
|
create_time
|
||||||
) table1
|
) table1
|
||||||
GROUP BY
|
GROUP BY
|
||||||
cons_id
|
cons_id
|
||||||
) r ON r.cons_id = ap.cons_id
|
) r ON r.cons_id = ap.cons_id
|
||||||
LEFT JOIN sys_user ss ON ss.PHONE = r.audit_name_id
|
LEFT JOIN sys_user ss ON ss.PHONE = r.audit_name_id
|
||||||
WHERE
|
WHERE
|
||||||
ap.audit_id = #{params.auditProcessId} and ap.cons_id =#{params.id} and ap.is_active = '1'
|
ap.audit_id = #{params.auditProcessId} and ap.is_active = '1'
|
||||||
GROUP BY
|
GROUP BY
|
||||||
ap.id
|
ap.id,ap.create_time
|
||||||
ORDER BY
|
ORDER BY
|
||||||
ap.create_time ASC
|
ap.create_time desc
|
||||||
)r
|
)r
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
@ -314,19 +312,17 @@
|
||||||
FROM
|
FROM
|
||||||
audit_processon
|
audit_processon
|
||||||
where audit_name_id is not null
|
where audit_name_id is not null
|
||||||
HAVING
|
|
||||||
1 = 1
|
|
||||||
ORDER BY
|
ORDER BY
|
||||||
create_time ASC
|
create_time
|
||||||
) table1
|
) table1
|
||||||
GROUP BY
|
GROUP BY
|
||||||
cons_id
|
cons_id
|
||||||
) r ON r.cons_id = ap.cons_id
|
) r ON r.cons_id = ap.cons_id
|
||||||
LEFT JOIN sys_user ss ON ss.PHONE = r.audit_name_id
|
LEFT JOIN sys_user ss ON ss.PHONE = r.audit_name_id
|
||||||
WHERE
|
WHERE
|
||||||
ap.audit_id = #{params.auditProcessId} and ap.cons_id =#{params.id} and ap.is_active = '1'
|
ap.audit_id = #{params.auditProcessId} and ap.is_active = '1'
|
||||||
GROUP BY
|
GROUP BY
|
||||||
ap.id
|
ap.id,ap.create_time
|
||||||
ORDER BY
|
ORDER BY
|
||||||
ap.create_time desc
|
ap.create_time desc
|
||||||
limit #{offset}, #{limit}
|
limit #{offset}, #{limit}
|
||||||
|
|
|
||||||
|
|
@ -413,15 +413,17 @@
|
||||||
<select id="getFixeNextAuditId" resultType="com.bonus.nxdt.energy.basic.entity.AmProcessType">
|
<select id="getFixeNextAuditId" resultType="com.bonus.nxdt.energy.basic.entity.AmProcessType">
|
||||||
SELECT
|
SELECT
|
||||||
phone,
|
phone,
|
||||||
countersign_type as countersignType
|
countersign_type AS countersignType
|
||||||
FROM
|
FROM
|
||||||
`am_process_type`
|
`am_process_type`
|
||||||
WHERE
|
WHERE
|
||||||
type = #{processType}
|
type = #{processType}
|
||||||
AND phone NOT IN ( SELECT next_audit_id FROM audit_processon WHERE audit_id = #{auditId})
|
AND phone NOT IN ( SELECT next_audit_id FROM audit_processon WHERE audit_id = #{auditId} and create_time >(
|
||||||
|
SELECT create_time from audit_processon WHERE audit_id = #{auditId} and audit_remark ='发起' ORDER BY id desc limit 1
|
||||||
|
))
|
||||||
ORDER BY
|
ORDER BY
|
||||||
sort ASC
|
sort ASC
|
||||||
LIMIT 0,1
|
LIMIT 0,1;
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getProcessType" resultType="java.lang.String">
|
<select id="getProcessType" resultType="java.lang.String">
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,7 @@ SELECT
|
||||||
WHERE
|
WHERE
|
||||||
cpq.contrator_id = #{contractorId}
|
cpq.contrator_id = #{contractorId}
|
||||||
and (cpq.appera_status != '2' OR cpq.appera_status is null)
|
and (cpq.appera_status != '2' OR cpq.appera_status is null)
|
||||||
and is_active ='1'
|
and cpq.is_active ='1' and cpq.check_process_status != '0'
|
||||||
ORDER BY
|
ORDER BY
|
||||||
CASE cpq.check_process_status
|
CASE cpq.check_process_status
|
||||||
WHEN '0' then 1
|
WHEN '0' then 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue