修改导入 校验
This commit is contained in:
parent
ba2a8c025b
commit
d36b5b44ef
|
|
@ -297,10 +297,11 @@ public class AdmissionRequestController extends BaseController {
|
||||||
"判断入场人员文件是否全部存在")
|
"判断入场人员文件是否全部存在")
|
||||||
public AjaxResult judgeIsFileComplete(@Validated @RequestBody SupervisoryUnit bean) {
|
public AjaxResult judgeIsFileComplete(@Validated @RequestBody SupervisoryUnit bean) {
|
||||||
try{
|
try{
|
||||||
int code = arService.judgeIsFileComplete(bean);
|
List<String> code = arService.judgeIsFileComplete(bean);
|
||||||
if (code > 0) {
|
if(code!=null && !code.isEmpty()){
|
||||||
return error("部分人员文件不存在,请先仔细核对,上传相关文件!");
|
String users=String.join(",",code);
|
||||||
}else{
|
return error(users+"等人员文件不存在,请上传相关文件!");
|
||||||
|
} else{
|
||||||
return success();
|
return success();
|
||||||
}
|
}
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
|
|
|
||||||
|
|
@ -256,7 +256,7 @@ public interface AdmissionRequestMapper {
|
||||||
* @param bean 实体类
|
* @param bean 实体类
|
||||||
* @return 是否存在
|
* @return 是否存在
|
||||||
*/
|
*/
|
||||||
int judgeIsFileComplete(SupervisoryUnit bean);
|
List<String> judgeIsFileComplete(SupervisoryUnit bean);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除人员相关文件
|
* 删除人员相关文件
|
||||||
|
|
|
||||||
|
|
@ -148,5 +148,5 @@ public interface AdmissionRequestService {
|
||||||
* @param bean 实体类
|
* @param bean 实体类
|
||||||
* @return 是否存在
|
* @return 是否存在
|
||||||
*/
|
*/
|
||||||
int judgeIsFileComplete(SupervisoryUnit bean);
|
List<String> judgeIsFileComplete(SupervisoryUnit bean);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -856,7 +856,7 @@ public class AdmissionRequestServiceImpl implements AdmissionRequestService {
|
||||||
* @return 是否存在
|
* @return 是否存在
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int judgeIsFileComplete(SupervisoryUnit bean) {
|
public List<String> judgeIsFileComplete(SupervisoryUnit bean) {
|
||||||
return arMapper.judgeIsFileComplete(bean);
|
return arMapper.judgeIsFileComplete(bean);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -553,17 +553,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<select id="getVersionByexamineId" resultType="string">
|
<select id="getVersionByexamineId" resultType="string">
|
||||||
select version from pt_flow_process where examine_id = #{examineId}
|
select version from pt_flow_process where examine_id = #{examineId}
|
||||||
</select>
|
</select>
|
||||||
<select id="judgeIsFileComplete" resultType="java.lang.Integer">
|
<select id="judgeIsFileComplete" resultType="java.lang.String">
|
||||||
<if test="userType == '01'">
|
<if test="userType == '01'">
|
||||||
select
|
select
|
||||||
count(1)
|
concat( psp.sup_name,'-',phone) user
|
||||||
from lk_sup_person lsp
|
from lk_sup_person lsp
|
||||||
left join pt_sup_person psp on lsp.sup_persion_id = psp.sup_user_id
|
left join pt_sup_person psp on lsp.sup_persion_id = psp.sup_user_id
|
||||||
where pro_id = #{proId} and sup_uuid = #{supUuid} and is_exist_file = '0' and psp.is_active = '1'
|
where pro_id = #{proId} and sup_uuid = #{supUuid} and is_exist_file = '0' and psp.is_active = '1'
|
||||||
</if>
|
</if>
|
||||||
<if test="userType == '02' or userType == '03'">
|
<if test="userType == '02' or userType == '03'">
|
||||||
select
|
select
|
||||||
count(1)
|
concat(pcp.cons_name,'-',phone) user
|
||||||
from lk_cont_person lcp
|
from lk_cont_person lcp
|
||||||
left join pt_cons_person pcp on lcp.cons_persion_id = pcp.cons_user_id
|
left join pt_cons_person pcp on lcp.cons_persion_id = pcp.cons_user_id
|
||||||
where pro_id = #{proId} and cont_uuid = #{consUuid} and is_exist_file = '0' and pcp.is_active = '1'
|
where pro_id = #{proId} and cont_uuid = #{consUuid} and is_exist_file = '0' and pcp.is_active = '1'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue