Commit 6c1be802 authored by hongguangwu's avatar hongguangwu

MVP1.4

parent b398e021
...@@ -220,9 +220,13 @@ implements TBusinessEmployeeExtendInfoService { ...@@ -220,9 +220,13 @@ implements TBusinessEmployeeExtendInfoService {
List<TBusinessEmployeeExtendInfo> employeeExtendInfoList = TBusinessEmployeeExtendInfo.covertDtoListToList(list); List<TBusinessEmployeeExtendInfo> employeeExtendInfoList = TBusinessEmployeeExtendInfo.covertDtoListToList(list);
// 导入数据校验 // 导入数据校验
errorMessageList.addAll(beforeErrorMessageList); errorMessageList.addAll(beforeErrorMessageList);
if (!beforeErrorMessageList.isEmpty()) {
return R.failed(errorMessageList);
}
// 数据导入 // 数据导入
boolean isSave;
for (int i = 0; i < employeeExtendInfoList.size(); i++) { for (int i = 0; i < employeeExtendInfoList.size(); i++) {
boolean isSave = true; isSave = true;
int line = i + 2; int line = i + 2;
TBusinessEmployeeExtendInfo v = employeeExtendInfoList.get(i); TBusinessEmployeeExtendInfo v = employeeExtendInfoList.get(i);
TBusinessEmployeeExtendInfo entity = this.baseMapper.getDataByEmpIdcard(v.getEmpIdcard()); TBusinessEmployeeExtendInfo entity = this.baseMapper.getDataByEmpIdcard(v.getEmpIdcard());
......
...@@ -1542,18 +1542,13 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap ...@@ -1542,18 +1542,13 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
.eq(TEmployeeContractInfo::getIsObsolete,CommonConstants.ZERO_STRING) .eq(TEmployeeContractInfo::getIsObsolete,CommonConstants.ZERO_STRING)
.ne(TEmployeeContractInfo::getSituation, EmployeeConstants.SITUATION_SIX) .ne(TEmployeeContractInfo::getSituation, EmployeeConstants.SITUATION_SIX)
.ne(TEmployeeContractInfo::getSituation, EmployeeConstants.SITUATION_SEVEN) .ne(TEmployeeContractInfo::getSituation, EmployeeConstants.SITUATION_SEVEN)
.eq(TEmployeeContractInfo::getSettleDomain, settleDomain) .eq(TEmployeeContractInfo::getDeleteFlag, CommonConstants.ZERO_INT)
.orderByDesc(TEmployeeContractInfo::getContractStart)); .isNotNull(TEmployeeContractInfo::getAuditTimeLast)
// 获取合同数据(全部2023-1-16 11:32:12 倩倩要求:B端人员里要看到作废中止的合同(原话:显示没有问题))
List<TEmployeeContractInfo> allContractInfoList = contractInfoMapper.selectList(Wrappers.<TEmployeeContractInfo>query().lambda()
.eq(TEmployeeContractInfo::getEmpIdcard,employeeInfo.getEmpIdcard())
.eq(TEmployeeContractInfo::getIsObsolete,CommonConstants.ZERO_STRING)
.eq(TEmployeeContractInfo::getSettleDomain, settleDomain) .eq(TEmployeeContractInfo::getSettleDomain, settleDomain)
.orderByDesc(TEmployeeContractInfo::getContractStart)); .orderByDesc(TEmployeeContractInfo::getContractStart));
// 处理详情对应的合同信息 // 处理详情对应的合同信息
if (Common.isNotNull(contractInfoList)){ if (Common.isNotNull(contractInfoList)) {
initEmpBusinessContractInfo(businessDetailVo, contractInfoList, allContractInfoList); initEmpBusinessContractInfo(businessDetailVo, contractInfoList);
} }
// 获取最高学历 // 获取最高学历
List<TEmpEducation> educations = empEducationMapper.selectList(Wrappers.<TEmpEducation>query().lambda() List<TEmpEducation> educations = empEducationMapper.selectList(Wrappers.<TEmpEducation>query().lambda()
...@@ -1598,14 +1593,14 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap ...@@ -1598,14 +1593,14 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
} }
private void initEmpBusinessContractInfo(EmployeeBusinessDetailVo businessDetailVo private void initEmpBusinessContractInfo(EmployeeBusinessDetailVo businessDetailVo
, List<TEmployeeContractInfo> contractInfoList, List<TEmployeeContractInfo> allContractInfoList) { , List<TEmployeeContractInfo> contractInfoList) {
businessDetailVo.setSituationCount(contractInfoList.size()); businessDetailVo.setSituationCount(contractInfoList.size());
if (businessDetailVo.getSituationCount() > CommonConstants.ONE_INT){ if (businessDetailVo.getSituationCount() > CommonConstants.ONE_INT){
businessDetailVo.setSituation(EmpBusinessConstants.empContractSituationRenew); businessDetailVo.setSituation(EmpBusinessConstants.empContractSituationRenew);
}else { }else {
businessDetailVo.setSituation(EmpBusinessConstants.empContractSituationNew); businessDetailVo.setSituation(EmpBusinessConstants.empContractSituationNew);
} }
businessDetailVo.setContractInfoList(allContractInfoList); businessDetailVo.setContractInfoList(contractInfoList);
TEmployeeContractInfo contractInfo = contractInfoList.get(CommonConstants.ZERO_INT); TEmployeeContractInfo contractInfo = contractInfoList.get(CommonConstants.ZERO_INT);
if (null != contractInfo.getContractEnd()){ if (null != contractInfo.getContractEnd()){
businessDetailVo.setContractEndDate(DateUtil.formatDate(contractInfo.getContractEnd())); businessDetailVo.setContractEndDate(DateUtil.formatDate(contractInfo.getContractEnd()));
......
...@@ -898,7 +898,7 @@ ...@@ -898,7 +898,7 @@
FROM t_employee_project a FROM t_employee_project a
left join t_business_employee_extend_info b on a.EMP_IDCARD = b.EMP_IDCARD left join t_business_employee_extend_info b on a.EMP_IDCARD = b.EMP_IDCARD
left join t_settle_domain c on a.DEPT_ID = c.ID left join t_settle_domain c on a.DEPT_ID = c.ID
where a.DELETE_FLAG = '0' and c.DELETE_FLAG = '0' where a.DELETE_FLAG = '0' and c.DELETE_FLAG = '0' and a.PROJECT_STATUS = '0'
<include refid="BusinessQuery"/> <include refid="BusinessQuery"/>
order by a.ENJOIN_DATE DESC order by a.ENJOIN_DATE DESC
</select> </select>
...@@ -925,22 +925,14 @@ ...@@ -925,22 +925,14 @@
<if test="query.businessTelecomNumber != null and query.businessTelecomNumber.trim() != ''"> <if test="query.businessTelecomNumber != null and query.businessTelecomNumber.trim() != ''">
AND b.BUSINESS_TELECOM_NUMBER like CONCAT('%',#{query.businessTelecomNumber} ,'%') AND b.BUSINESS_TELECOM_NUMBER like CONCAT('%',#{query.businessTelecomNumber} ,'%')
</if> </if>
<if test="query.businessWorkingStatus == null">
<!--AND if(b.BUSINESS_WORKING_STATUS is not null, b.BUSINESS_WORKING_STATUS is not null, a.WORK_FLAG = '0') 2022-01-19 fxj 调整-->
AND a.PROJECT_STATUS = '0'
</if>
<!-- businessWorkingStatus: 0 在职 1 离职 --> <!-- businessWorkingStatus: 0 在职 1 离职 -->
<if test="query.businessWorkingStatus != null and query.businessWorkingStatus.trim() != ''"> <if test="query.businessWorkingStatus != null and query.businessWorkingStatus.trim() != ''">
<!-- 0查询在职 --> <!-- 0查询在职 -->
<if test="query.businessWorkingStatus == '0'.toString()"> <if test="query.businessWorkingStatus == '0'.toString()">
<!-- 在职状态为 0在职 3临时 不等于1为在职 --> (b.BUSINESS_WORKING_STATUS is null or b.BUSINESS_WORKING_STATUS = '0')
<!-- AND if(b.BUSINESS_WORKING_STATUS is not null, b.BUSINESS_WORKING_STATUS <![CDATA[<>]]> '1', a.WORK_FLAG = '0') 2022-01-19 fxj 调整-->
AND a.PROJECT_STATUS = '0'
</if> </if>
<!-- 1查询离职 --> <!-- 1查询离职 -->
<if test="query.businessWorkingStatus == '1'.toString()"> <if test="query.businessWorkingStatus == '1'.toString()">
<!-- 离职 1 -->
AND a.PROJECT_STATUS = '0'
AND b.BUSINESS_WORKING_STATUS = '1' AND b.BUSINESS_WORKING_STATUS = '1'
</if> </if>
</if> </if>
...@@ -990,7 +982,7 @@ ...@@ -990,7 +982,7 @@
FROM t_employee_project a FROM t_employee_project a
left join t_business_employee_extend_info b on a.EMP_IDCARD = b.EMP_IDCARD left join t_business_employee_extend_info b on a.EMP_IDCARD = b.EMP_IDCARD
left join t_settle_domain c on a.DEPT_ID = c.ID left join t_settle_domain c on a.DEPT_ID = c.ID
where a.DELETE_FLAG = '0' and c.DELETE_FLAG = '0' where a.DELETE_FLAG = '0' and c.DELETE_FLAG = '0' and a.PROJECT_STATUS = '0'
<include refid="BusinessQuery"/> <include refid="BusinessQuery"/>
order by a.ENJOIN_DATE DESC order by a.ENJOIN_DATE DESC
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment