系统bug修改
This commit is contained in:
parent
8e21bb3a13
commit
6cb78673f9
|
|
@ -834,7 +834,7 @@ public class AppServiceImpl implements AppService {
|
||||||
AjaxResult ajaxResult = AjaxResult.success();
|
AjaxResult ajaxResult = AjaxResult.success();
|
||||||
//查询监理人员详细信息
|
//查询监理人员详细信息
|
||||||
SupervisorPerson bean = appMapper.listSupervisorPersonById(supervisorPerson);
|
SupervisorPerson bean = appMapper.listSupervisorPersonById(supervisorPerson);
|
||||||
setOtherData2(bean);
|
// setOtherData2(bean);
|
||||||
//人脸照片
|
//人脸照片
|
||||||
SysFileInfo fileInfo = new SysFileInfo();
|
SysFileInfo fileInfo = new SysFileInfo();
|
||||||
fileInfo.setFileName("人脸照片.png");
|
fileInfo.setFileName("人脸照片.png");
|
||||||
|
|
@ -844,7 +844,6 @@ public class AppServiceImpl implements AppService {
|
||||||
fileInfo.setCreateTime(bean.getCreateTime());
|
fileInfo.setCreateTime(bean.getCreateTime());
|
||||||
fileInfo.setFileSize("0");
|
fileInfo.setFileSize("0");
|
||||||
bean.setFacePhoto(Collections.singletonList(fileInfo));
|
bean.setFacePhoto(Collections.singletonList(fileInfo));
|
||||||
|
|
||||||
//查询体检文件
|
//查询体检文件
|
||||||
fileInfo = getPersonFileInfo(StaticVariableUtils.FIVE,StaticVariableUtils.THREE,StaticVariableUtils.ONE,
|
fileInfo = getPersonFileInfo(StaticVariableUtils.FIVE,StaticVariableUtils.THREE,StaticVariableUtils.ONE,
|
||||||
supervisorPerson.getUuid());
|
supervisorPerson.getUuid());
|
||||||
|
|
@ -870,10 +869,10 @@ public class AppServiceImpl implements AppService {
|
||||||
@Override
|
@Override
|
||||||
public List<SupervisorPerson> listSupervisorPerson(SupervisorPerson bean) {
|
public List<SupervisorPerson> listSupervisorPerson(SupervisorPerson bean) {
|
||||||
List<SupervisorPerson> list= appMapper.listSupervisorPerson(bean);
|
List<SupervisorPerson> list= appMapper.listSupervisorPerson(bean);
|
||||||
for (SupervisorPerson vo:list){
|
// for (SupervisorPerson vo:list){
|
||||||
setOtherData(vo);
|
// setOtherData(vo);
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -467,6 +467,14 @@ public class BusinessServiceImpl implements BusinessService {
|
||||||
userList.addAll(jlList);
|
userList.addAll(jlList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if("03".equals(auditTask.getUserType())){
|
||||||
|
if(StringUtils.isNotEmpty(contUserId)){
|
||||||
|
userList.add(contUserId);
|
||||||
|
}
|
||||||
|
if(StringUtils.isNotEmpty(supUserId)){
|
||||||
|
userList.add(supUserId);
|
||||||
|
}
|
||||||
|
}
|
||||||
auditTask.setExamineId(newExamineId);
|
auditTask.setExamineId(newExamineId);
|
||||||
auditTask.setExamineType(examineType);
|
auditTask.setExamineType(examineType);
|
||||||
if("01".equals(auditTask.getUserType())){
|
if("01".equals(auditTask.getUserType())){
|
||||||
|
|
|
||||||
|
|
@ -240,15 +240,14 @@ public class AdmissionRequestServiceImpl implements AdmissionRequestService {
|
||||||
AdmissionRequest proUser = arMapper.getUserInToPro(bean);
|
AdmissionRequest proUser = arMapper.getUserInToPro(bean);
|
||||||
if(proUser!=null){
|
if(proUser!=null){
|
||||||
if(!"3".equals(proUser.getOutStatus())){
|
if(!"3".equals(proUser.getOutStatus())){
|
||||||
return new AjaxResult(201,"该人员已在其他工程入场,清先出场后再入场");
|
return new AjaxResult(201,"该人员已在其他工程入场,请先出场后再入场");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ("".equals(bean.getConsUserId())) {
|
if ("".equals(bean.getConsUserId())) {
|
||||||
|
|
||||||
AdmissionRequest admissionRequest = arMapper.checkUserNameUnique(bean);
|
AdmissionRequest admissionRequest = arMapper.checkUserNameUnique(bean);
|
||||||
if (admissionRequest != null) {
|
if (admissionRequest != null && StringUtils.isNotEmpty(admissionRequest.getOutStatus()) ) {
|
||||||
//已出场的 人员再次入场
|
//已出场的 人员再次入场
|
||||||
if("3".equals(admissionRequest.getOutStatus())){
|
if( "3".equals(admissionRequest.getOutStatus())){
|
||||||
arMapper.delFileById(admissionRequest);
|
arMapper.delFileById(admissionRequest);
|
||||||
id = String.valueOf(admissionRequest.getId());
|
id = String.valueOf(admissionRequest.getId());
|
||||||
uuid = admissionRequest.getUuid();
|
uuid = admissionRequest.getUuid();
|
||||||
|
|
@ -360,7 +359,7 @@ public class AdmissionRequestServiceImpl implements AdmissionRequestService {
|
||||||
AjaxResult ajaxResult = AjaxResult.success();
|
AjaxResult ajaxResult = AjaxResult.success();
|
||||||
//查询监理人员详细信息
|
//查询监理人员详细信息
|
||||||
AdmissionRequest admissionRequest = arMapper.getData(bean);
|
AdmissionRequest admissionRequest = arMapper.getData(bean);
|
||||||
setOtherData3(admissionRequest);
|
// setOtherData3(admissionRequest);
|
||||||
SysFileInfo fileInfo = new SysFileInfo();
|
SysFileInfo fileInfo = new SysFileInfo();
|
||||||
if (StringUtils.isNotEmpty(admissionRequest.getFacePath())) {
|
if (StringUtils.isNotEmpty(admissionRequest.getFacePath())) {
|
||||||
fileInfo.setName("人脸照片.png");
|
fileInfo.setName("人脸照片.png");
|
||||||
|
|
|
||||||
|
|
@ -65,9 +65,9 @@ public class OutsourcingProServiceImpl implements OutsourcingProService {
|
||||||
@Override
|
@Override
|
||||||
public List<SupervisorPerson> listSupervisorPerson(SupervisorPerson bean) {
|
public List<SupervisorPerson> listSupervisorPerson(SupervisorPerson bean) {
|
||||||
List<SupervisorPerson> list= mapper.listSupervisorPerson(bean);
|
List<SupervisorPerson> list= mapper.listSupervisorPerson(bean);
|
||||||
for (SupervisorPerson vo:list){
|
// for (SupervisorPerson vo:list){
|
||||||
setOtherData(vo);
|
// setOtherData(vo);
|
||||||
}
|
// }
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
public void setOtherData(SupervisorPerson vo){
|
public void setOtherData(SupervisorPerson vo){
|
||||||
|
|
@ -75,8 +75,9 @@ public class OutsourcingProServiceImpl implements OutsourcingProService {
|
||||||
String idCard=mapper.getIdCardByPhone(vo.getPhone());
|
String idCard=mapper.getIdCardByPhone(vo.getPhone());
|
||||||
if(!StringHelper.isNullOrEmptyString(idCard)){
|
if(!StringHelper.isNullOrEmptyString(idCard)){
|
||||||
vo.setIdCard(idCard);
|
vo.setIdCard(idCard);
|
||||||
|
|
||||||
|
if(StringHelper.isNullOrEmptyString(vo.getSex())){
|
||||||
String sex=getSexByIdCar(idCard);
|
String sex=getSexByIdCar(idCard);
|
||||||
if(!StringHelper.isNullOrEmptyString(sex)){
|
|
||||||
vo.setSex(sex);
|
vo.setSex(sex);
|
||||||
}
|
}
|
||||||
Integer age= IdcardUtil.getAgeByIdCard(idCard);
|
Integer age= IdcardUtil.getAgeByIdCard(idCard);
|
||||||
|
|
@ -94,7 +95,7 @@ public class OutsourcingProServiceImpl implements OutsourcingProService {
|
||||||
vo.setIdCard(idCard);
|
vo.setIdCard(idCard);
|
||||||
String sex=getSexByIdCar1(idCard);
|
String sex=getSexByIdCar1(idCard);
|
||||||
if(!StringHelper.isNullOrEmptyString(sex)){
|
if(!StringHelper.isNullOrEmptyString(sex)){
|
||||||
vo.setSex(sex);
|
// vo.setSex(sex);
|
||||||
}
|
}
|
||||||
Integer age= IdcardUtil.getAgeByIdCard(idCard);
|
Integer age= IdcardUtil.getAgeByIdCard(idCard);
|
||||||
vo.setAge(age);
|
vo.setAge(age);
|
||||||
|
|
@ -141,7 +142,7 @@ public class OutsourcingProServiceImpl implements OutsourcingProService {
|
||||||
AjaxResult ajaxResult = AjaxResult.success();
|
AjaxResult ajaxResult = AjaxResult.success();
|
||||||
//查询监理人员详细信息
|
//查询监理人员详细信息
|
||||||
SupervisorPerson bean = mapper.listSupervisorPersonById(supervisorPerson);
|
SupervisorPerson bean = mapper.listSupervisorPersonById(supervisorPerson);
|
||||||
setOtherData3(bean);
|
// setOtherData3(bean);
|
||||||
//人脸照片
|
//人脸照片
|
||||||
SysFileInfo fileInfo = new SysFileInfo();
|
SysFileInfo fileInfo = new SysFileInfo();
|
||||||
if(!StringUtils.isEmpty(bean.getFaceUrl())){
|
if(!StringUtils.isEmpty(bean.getFaceUrl())){
|
||||||
|
|
@ -362,9 +363,9 @@ public class OutsourcingProServiceImpl implements OutsourcingProService {
|
||||||
subPerson.setUserId(userId);
|
subPerson.setUserId(userId);
|
||||||
subPerson.setType("1");
|
subPerson.setType("1");
|
||||||
List<SubPerson> getConsPersonList = mapper.getSubPersonList(subPerson);
|
List<SubPerson> getConsPersonList = mapper.getSubPersonList(subPerson);
|
||||||
for (SubPerson vo:getConsPersonList){
|
// for (SubPerson vo:getConsPersonList){
|
||||||
setOtherData2(vo);
|
// setOtherData2(vo);
|
||||||
}
|
// }
|
||||||
List<String> list = mapper.getAnnotationsByTaskIdAndUserId(subPerson);
|
List<String> list = mapper.getAnnotationsByTaskIdAndUserId(subPerson);
|
||||||
// 使用哈希表存储注释列表,提高查找效率
|
// 使用哈希表存储注释列表,提高查找效率
|
||||||
Set<String> annotationSet = new HashSet<>(list);
|
Set<String> annotationSet = new HashSet<>(list);
|
||||||
|
|
|
||||||
|
|
@ -715,7 +715,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<update id="updatePersonStatus">
|
<update id="updatePersonStatus">
|
||||||
update lk_cont_person
|
update lk_cont_person
|
||||||
set into_status = '0',
|
set into_status = '0',
|
||||||
cons_name=#{consName},
|
|
||||||
out_status = '0',
|
out_status = '0',
|
||||||
admission_date = null,
|
admission_date = null,
|
||||||
departure_date = null,
|
departure_date = null,
|
||||||
|
|
|
||||||
|
|
@ -201,10 +201,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
and lps.status = #{status}
|
and lps.status = #{status}
|
||||||
</if>
|
</if>
|
||||||
<if test="proName != null and proName != ''">
|
<if test="proName != null and proName != ''">
|
||||||
AND ppi.pro_name = #{proName}
|
AND ppi.pro_name like concat('%',#{proName},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="supName != null and supName != ''">
|
<if test="supName != null and supName != ''">
|
||||||
AND psi.sup_name = #{supName}
|
AND ppi.sup_name like concat('%',#{supName},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="proId != null and proId != ''">
|
<if test="proId != null and proId != ''">
|
||||||
AND ppi.pro_id = #{proId}
|
AND ppi.pro_id = #{proId}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue