导入劳务人员bug修复
This commit is contained in:
parent
eb4823bf5a
commit
5fd01c5bb5
@ -443,7 +443,6 @@ public class WorkerInfo implements Serializable {
|
|||||||
", emergentPerson='" + emergentPerson + '\'' +
|
", emergentPerson='" + emergentPerson + '\'' +
|
||||||
", emergentPhone='" + emergentPhone + '\'' +
|
", emergentPhone='" + emergentPhone + '\'' +
|
||||||
", longTerm=" + longTerm +
|
", longTerm=" + longTerm +
|
||||||
", inserviceType=" + inserviceType +
|
|
||||||
", personType=" + personType +
|
", personType=" + personType +
|
||||||
", teamId=" + teamId +
|
", teamId=" + teamId +
|
||||||
", departmentId=" + departmentId +
|
", departmentId=" + departmentId +
|
||||||
|
|||||||
@ -70,6 +70,8 @@ public interface WorkerInfoMapper extends BaseMapper<WorkerInfo> {
|
|||||||
*/
|
*/
|
||||||
WorkerInfo selectWorkWorkerInfoWithIdCard(@Param("idCard") String idCard, @Param("projectSn") String projectSn);
|
WorkerInfo selectWorkWorkerInfoWithIdCard(@Param("idCard") String idCard, @Param("projectSn") String projectSn);
|
||||||
|
|
||||||
|
WorkerInfo selectWorkWorkerInfoWithIdCardAll(@Param("idCard") String idCard, @Param("projectSn") String projectSn);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据项目sn和出勤卡号查询人员信息
|
* 根据项目sn和出勤卡号查询人员信息
|
||||||
*
|
*
|
||||||
|
|||||||
@ -305,6 +305,13 @@
|
|||||||
and inService_type = 1
|
and inService_type = 1
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
</select>
|
</select>
|
||||||
|
<select id="selectWorkWorkerInfoWithIdCardAll" resultType="com.zhgd.xmgl.modules.worker.entity.WorkerInfo">
|
||||||
|
select *
|
||||||
|
from worker_info
|
||||||
|
where project_sn = #{projectSn}
|
||||||
|
and id_card = #{idCard}
|
||||||
|
LIMIT 1
|
||||||
|
</select>
|
||||||
<select id="selectWorkWorkerInfoWithAttendanceNumber" resultType="com.zhgd.xmgl.modules.worker.entity.WorkerInfo">
|
<select id="selectWorkWorkerInfoWithAttendanceNumber" resultType="com.zhgd.xmgl.modules.worker.entity.WorkerInfo">
|
||||||
select *
|
select *
|
||||||
from worker_info
|
from worker_info
|
||||||
|
|||||||
@ -2061,12 +2061,11 @@ public class WorkerInfoServiceImpl extends ServiceImpl<WorkerInfoMapper, WorkerI
|
|||||||
workerInfo.setPoliticsStatus(4);
|
workerInfo.setPoliticsStatus(4);
|
||||||
}
|
}
|
||||||
workerInfo.setPayRollBankNumber(importInfo.get("银行卡号"));
|
workerInfo.setPayRollBankNumber(importInfo.get("银行卡号"));
|
||||||
workerInfo.setInserviceType(1);
|
|
||||||
workerInfo.setUfaceDevId(ufaceId);
|
workerInfo.setUfaceDevId(ufaceId);
|
||||||
boolean isVaild = IdCardUtils.strongVerifyIdNumber(workerInfo.getIdCard());
|
boolean isVaild = IdCardUtils.strongVerifyIdNumber(workerInfo.getIdCard());
|
||||||
if (isVaild) {
|
if (isVaild) {
|
||||||
hasSuc = true;
|
hasSuc = true;
|
||||||
WorkerInfo oldWorkerInfo = workerInfoMapper.selectWorkWorkerInfoWithIdCard(workerInfo.getIdCard(), workerInfo.getProjectSn());
|
WorkerInfo oldWorkerInfo = workerInfoMapper.selectWorkWorkerInfoWithIdCardAll(workerInfo.getIdCard(), workerInfo.getProjectSn());
|
||||||
if (oldWorkerInfo != null) {
|
if (oldWorkerInfo != null) {
|
||||||
if (oldWorkerInfo.toExistString().equals(workerInfo.toExistString())) {
|
if (oldWorkerInfo.toExistString().equals(workerInfo.toExistString())) {
|
||||||
existName.append(workerInfo.getWorkerName());
|
existName.append(workerInfo.getWorkerName());
|
||||||
@ -2079,6 +2078,7 @@ public class WorkerInfoServiceImpl extends ServiceImpl<WorkerInfoMapper, WorkerI
|
|||||||
workerInfoService.editWorkerForUploadExcel(workerInfo);
|
workerInfoService.editWorkerForUploadExcel(workerInfo);
|
||||||
} else {
|
} else {
|
||||||
String uuid = UUID.randomUUID().toString().replace("-", "").toUpperCase();
|
String uuid = UUID.randomUUID().toString().replace("-", "").toUpperCase();
|
||||||
|
workerInfo.setInserviceType(1);
|
||||||
workerInfo.setPersonSn(uuid);
|
workerInfo.setPersonSn(uuid);
|
||||||
workerInfo.setAddTime(new Date());
|
workerInfo.setAddTime(new Date());
|
||||||
workerInfo.setAttendanceNumber(workerInfo.getIdCard());
|
workerInfo.setAttendanceNumber(workerInfo.getIdCard());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user