Commit d3155218 authored by fangxinjiang's avatar fangxinjiang

Merge remote-tracking branch 'origin/MVP1.7.14' into MVP1.7.14

parents f302e36c 7f7c9dfb
...@@ -30,6 +30,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute; ...@@ -30,6 +30,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import org.hibernate.validator.constraints.Length; import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.Date; import java.util.Date;
/** /**
...@@ -577,4 +578,7 @@ public class TGzEmpInfo extends BaseEntity { ...@@ -577,4 +578,7 @@ public class TGzEmpInfo extends BaseEntity {
@Schema(description = "档案状态(0:已提交,1:暂存)") @Schema(description = "档案状态(0:已提交,1:暂存)")
private String empStatus; private String empStatus;
@Schema(description = "档案提交时间")
private LocalDateTime submitTime;
} }
...@@ -589,7 +589,7 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi ...@@ -589,7 +589,7 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi
} }
employeeRegistrationPre.setInsurancePreList(newList); employeeRegistrationPre.setInsurancePreList(newList);
} }
} else { } else if (employeeRegistrationPre.getInsuranceIsBuy().equals(CommonConstants.ONE_STRING)) {
if (employeeRegistrationPre.getInsurancePreList() == null if (employeeRegistrationPre.getInsurancePreList() == null
|| employeeRegistrationPre.getInsurancePreList().isEmpty()) { || employeeRegistrationPre.getInsurancePreList().isEmpty()) {
return R.failed("含商险服务,商险配置不可为空"); return R.failed("含商险服务,商险配置不可为空");
......
...@@ -3209,14 +3209,14 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -3209,14 +3209,14 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
if(Common.isNotNull(basicInfo.getEmpIdCard())){ if(Common.isNotNull(basicInfo.getEmpIdCard())){
// 赋值紧急联系人信息 // 赋值紧急联系人信息
if(Common.isNotNull(contactMap.get(basicInfo.getEmpIdCard()))){ if(Common.isNotNull(contactMap) && Common.isNotNull(contactMap.get(basicInfo.getEmpIdCard()))){
TEmpContactInfo contactInfo = contactMap.get(basicInfo.getEmpIdCard()); TEmpContactInfo contactInfo = contactMap.get(basicInfo.getEmpIdCard());
basicInfo.setEmergencyContactName(contactInfo.getEmpName()); basicInfo.setEmergencyContactName(contactInfo.getEmpName());
basicInfo.setEmergencyContactRelation(contactInfo.getRelationType()); basicInfo.setEmergencyContactRelation(contactInfo.getRelationType());
basicInfo.setEmergencyContactPhone(contactInfo.getTel()); basicInfo.setEmergencyContactPhone(contactInfo.getTel());
} }
// 赋值社保户 // 赋值社保户
if(Common.isNotNull(socialFundMap.get(basicInfo.getEmpIdCard()))){ if(Common.isNotNull(socialFundMap) && Common.isNotNull(socialFundMap.get(basicInfo.getEmpIdCard()))){
basicInfo.setSocialHouseholdName(socialFundMap.get(basicInfo.getEmpIdCard())); basicInfo.setSocialHouseholdName(socialFundMap.get(basicInfo.getEmpIdCard()));
} }
} }
......
...@@ -263,8 +263,8 @@ public class TEmployeePreLogServiceImpl extends ServiceImpl<TEmployeePreLogMappe ...@@ -263,8 +263,8 @@ public class TEmployeePreLogServiceImpl extends ServiceImpl<TEmployeePreLogMappe
detailList.add(detailInsuranceLog); detailList.add(detailInsuranceLog);
} }
//如果服务类型包含商险处理商险明细数据 //如果服务类型包含商险处理商险明细数据
if (Common.isNotNull(newInfo.getServerItem()) && newInfo.getServerItem().contains("商险")) {
newInfo.setId(empPreId); newInfo.setId(empPreId);
if (Common.isNotNull(newInfo.getServerItem()) && newInfo.getServerItem().contains("商险")) {
if (!newInfo.getExitInsuranceInfoList().isEmpty()) { if (!newInfo.getExitInsuranceInfoList().isEmpty()) {
newInfo.getExitInsuranceInfoList().forEach(insurancePreVo -> insurancePreVo.setRegisterId(empPreId)); newInfo.getExitInsuranceInfoList().forEach(insurancePreVo -> insurancePreVo.setRegisterId(empPreId));
} }
...@@ -272,6 +272,13 @@ public class TEmployeePreLogServiceImpl extends ServiceImpl<TEmployeePreLogMappe ...@@ -272,6 +272,13 @@ public class TEmployeePreLogServiceImpl extends ServiceImpl<TEmployeePreLogMappe
, "/temployeeinsurancepre/inner/updateInfoSaveInsurancePreInfo" , "/temployeeinsurancepre/inner/updateInfoSaveInsurancePreInfo"
, newInfo, Boolean.class, SecurityConstants.FROM_IN); , newInfo, Boolean.class, SecurityConstants.FROM_IN);
} }
//如果服务类型不包含商险删除商险明细数据
if (Common.isNotNull(newInfo.getServerItem()) && !newInfo.getServerItem().contains("商险")) {
HttpDaprUtil.invokeMethodPost(daprInsurancesProperties.getAppUrl(), daprInsurancesProperties.getAppId()
, "/temployeeinsurancepre/inner/deleteInsurancePreInfo"
, newInfo, Boolean.class, SecurityConstants.FROM_IN);
}
if (newList != null && !newList.isEmpty()) { if (newList != null && !newList.isEmpty()) {
for (TEmployeeInsurancePre newInsurance : newList) { for (TEmployeeInsurancePre newInsurance : newList) {
differenceInsuranceKey = null; differenceInsuranceKey = null;
...@@ -334,6 +341,13 @@ public class TEmployeePreLogServiceImpl extends ServiceImpl<TEmployeePreLogMappe ...@@ -334,6 +341,13 @@ public class TEmployeePreLogServiceImpl extends ServiceImpl<TEmployeePreLogMappe
diffTitle = "商险信息"; diffTitle = "商险信息";
} }
} }
} else {
// 没有变更
if (Common.isNotNull(diffTitle)) {
diffTitle += "、商险信息";
} else {
diffTitle = "商险信息";
}
} }
String differenceContractKey = null; String differenceContractKey = null;
......
...@@ -543,18 +543,19 @@ public class TGzEmpInfoServiceImpl extends ServiceImpl<TGzEmpInfoMapper, TGzEmpI ...@@ -543,18 +543,19 @@ public class TGzEmpInfoServiceImpl extends ServiceImpl<TGzEmpInfoMapper, TGzEmpI
if (Common.isEmpty(gzEmpId)) { if (Common.isEmpty(gzEmpId)) {
tGzEmpInfo.setCreateBy(user.getId()); tGzEmpInfo.setCreateBy(user.getId());
tGzEmpInfo.setCreateName(user.getNickname()); tGzEmpInfo.setCreateName(user.getNickname());
// 1.7.14: 档案状态是提交,才存 创建时间(提交时间) tGzEmpInfo.setSubmitTime(null);
// 1.7.14: 档案状态是提交,才存 提交时间
if(CommonConstants.ZERO_STRING.equals(tGzEmpInfoVo.getEmpStatus())){ if(CommonConstants.ZERO_STRING.equals(tGzEmpInfoVo.getEmpStatus())){
tGzEmpInfo.setCreateTime(LocalDateTime.now()); tGzEmpInfo.setSubmitTime(LocalDateTime.now());
} }
this.save(tGzEmpInfo); this.save(tGzEmpInfo);
gzEmpId = tGzEmpInfo.getId(); gzEmpId = tGzEmpInfo.getId();
} else { } else {
tGzEmpInfo.setUpdateBy(user.getId()); tGzEmpInfo.setUpdateBy(user.getId());
tGzEmpInfo.setUpdateTime(LocalDateTime.now()); tGzEmpInfo.setUpdateTime(LocalDateTime.now());
// 1.7.14: 档案状态是暂存,清除 创建时间(提交时间) // 1.7.14: 档案状态是提交,更新 提交时间
if(CommonConstants.ONE_STRING.equals(tGzEmpInfoVo.getEmpStatus())){ if(CommonConstants.ZERO_STRING.equals(tGzEmpInfoVo.getEmpStatus())){
tGzEmpInfo.setCreateTime(null); tGzEmpInfo.setSubmitTime(LocalDateTime.now());
} }
this.updateById(tGzEmpInfo); this.updateById(tGzEmpInfo);
} }
...@@ -861,16 +862,16 @@ public class TGzEmpInfoServiceImpl extends ServiceImpl<TGzEmpInfoMapper, TGzEmpI ...@@ -861,16 +862,16 @@ public class TGzEmpInfoServiceImpl extends ServiceImpl<TGzEmpInfoMapper, TGzEmpI
// 41(瓜子申明签名)42(瓜子确认签名)NID_A(证件正面) NID_B(证件反面) // 41(瓜子申明签名)42(瓜子确认签名)NID_A(证件正面) NID_B(证件反面)
// 附件类型转化:声明签字:21;确认签字:22; 9身份证;24 身份证国徽 // 附件类型转化:声明签字:21;确认签字:22; 9身份证;24 身份证国徽
if("41".equals(atta.getRelationType())){ if("41".equals(atta.getRelationType())){
atta.setRelationType("21"); attaEmp.setRelationType("21");
} }
if("42".equals(atta.getRelationType())){ if("42".equals(atta.getRelationType())){
atta.setRelationType("22"); attaEmp.setRelationType("22");
} }
if("NID_A".equals(atta.getRelationType())){ if("NID_A".equals(atta.getRelationType())){
atta.setRelationType("9"); attaEmp.setRelationType("9");
} }
if("NID_B".equals(atta.getRelationType())){ if("NID_B".equals(atta.getRelationType())){
atta.setRelationType("24"); attaEmp.setRelationType("24");
} }
attaEmp.setDomainId(empId); attaEmp.setDomainId(empId);
......
...@@ -103,6 +103,7 @@ ...@@ -103,6 +103,7 @@
<result property="accountProvinceAreaId" column="account_province_area_id"/> <result property="accountProvinceAreaId" column="account_province_area_id"/>
<result property="accountCityAreaId" column="account_city_area_id"/> <result property="accountCityAreaId" column="account_city_area_id"/>
<result property="empStatus" column="emp_status"/> <result property="empStatus" column="emp_status"/>
<result property="submitTime" column="submit_time"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
a.id, a.id,
...@@ -183,7 +184,8 @@ ...@@ -183,7 +184,8 @@
a.hukou_county_area_id, a.hukou_county_area_id,
a.account_province_area_id, a.account_province_area_id,
a.account_city_area_id, a.account_city_area_id,
a.emp_status a.emp_status,
a.submit_time
</sql> </sql>
<sql id="tGzEmpInfo_where"> <sql id="tGzEmpInfo_where">
<if test="tGzEmpInfo != null"> <if test="tGzEmpInfo != null">
...@@ -216,10 +218,10 @@ ...@@ -216,10 +218,10 @@
</if> </if>
<!--查询提交档案时间--> <!--查询提交档案时间-->
<if test="tGzEmpInfo.createTimeStart != null "> <if test="tGzEmpInfo.createTimeStart != null ">
AND a.create_time &gt;= #{tGzEmpInfo.createTimeStart} AND a.submit_time &gt;= #{tGzEmpInfo.createTimeStart}
</if> </if>
<if test="tGzEmpInfo.createTimeEnd != null "> <if test="tGzEmpInfo.createTimeEnd != null ">
AND a.create_time &lt;= #{tGzEmpInfo.createTimeEnd} AND a.submit_time &lt;= #{tGzEmpInfo.createTimeEnd}
</if> </if>
<if test="tGzEmpInfo.createBy != null and tGzEmpInfo.createBy.trim() != ''"> <if test="tGzEmpInfo.createBy != null and tGzEmpInfo.createBy.trim() != ''">
AND a.create_by = #{tGzEmpInfo.createBy} AND a.create_by = #{tGzEmpInfo.createBy}
...@@ -416,7 +418,7 @@ ...@@ -416,7 +418,7 @@
a.del_flag = '0' a.del_flag = '0'
<include refid="tGzEmpInfo_where"/> <include refid="tGzEmpInfo_where"/>
</where> </where>
ORDER by a.emp_status,a.create_time desc,a.id desc ORDER by a.emp_status,a.submit_time desc,a.id desc
</select> </select>
<!--count--> <!--count-->
...@@ -440,7 +442,7 @@ ...@@ -440,7 +442,7 @@
a.emp_push_status, a.emp_push_status,
a.contract_push_status, a.contract_push_status,
a.contract_atta_push_status, a.contract_atta_push_status,
date_format(a.create_time, '%Y-%m-%d %H:%i:%s') create_time, date_format(a.submit_time, '%Y-%m-%d %H:%i:%s') create_time,
a.create_by, a.create_by,
a.create_name, a.create_name,
a.update_by, a.update_by,
...@@ -523,7 +525,7 @@ ...@@ -523,7 +525,7 @@
<include refid="tGzEmpInfo_where"/> <include refid="tGzEmpInfo_where"/>
</where> </where>
group by a.id group by a.id
ORDER by a.emp_status,a.create_time desc,a.id desc ORDER by a.emp_status,a.submit_time desc,a.id desc
<if test="tGzEmpInfo.limitStart != null"> <if test="tGzEmpInfo.limitStart != null">
limit #{tGzEmpInfo.limitStart},#{tGzEmpInfo.limitEnd} limit #{tGzEmpInfo.limitStart},#{tGzEmpInfo.limitEnd}
</if> </if>
......
...@@ -200,6 +200,18 @@ public class TEmployeeInsurancePreController { ...@@ -200,6 +200,18 @@ public class TEmployeeInsurancePreController {
return tEmployeeInsurancePreService.updateInfoSaveInsurancePreInfo(pre); return tEmployeeInsurancePreService.updateInfoSaveInsurancePreInfo(pre);
} }
/**
* 信息修改入口删除商险已购买明细
* @author huych
* @date 2025-08-14 11:46:16
**/
@Operation(description = "信息修改入口删除商险已购买明细")
@Inner
@PostMapping("/inner/deleteInsurancePreInfo")
public Boolean deleteInsurancePreInfo(@RequestBody EmployeeRegistrationPre pre) {
return tEmployeeInsurancePreService.deleteInsurancePreInfo(pre);
}
/** /**
* 商险状态是否正常判断 * 商险状态是否正常判断
* @author huych * @author huych
......
...@@ -76,6 +76,8 @@ public interface TEmployeeInsurancePreService extends IService<TEmployeeInsuranc ...@@ -76,6 +76,8 @@ public interface TEmployeeInsurancePreService extends IService<TEmployeeInsuranc
*/ */
Boolean updateInfoSaveInsurancePreInfo(EmployeeRegistrationPre pre); Boolean updateInfoSaveInsurancePreInfo(EmployeeRegistrationPre pre);
Boolean deleteInsurancePreInfo(EmployeeRegistrationPre pre);
Boolean checkExitInsuanceIsProcess(EmployeeRegistrationPreVo preVo); Boolean checkExitInsuanceIsProcess(EmployeeRegistrationPreVo preVo);
TEmployeeInsuranceSelectVo selectInsurancePreInfoList(TEmployeeInsurancePreVo preVo); TEmployeeInsuranceSelectVo selectInsurancePreInfoList(TEmployeeInsurancePreVo preVo);
......
...@@ -574,8 +574,7 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur ...@@ -574,8 +574,7 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
try { try {
//删除已存在的入职确认信息对应的商险明细 //删除已存在的入职确认信息对应的商险明细
preDetailService.remove(Wrappers.<TInsurancePreDetail>lambdaQuery() preDetailService.remove(Wrappers.<TInsurancePreDetail>lambdaQuery()
.eq(TInsurancePreDetail::getRegisterId, registrationPreVo.getExitInsuranceInfoList() .eq(TInsurancePreDetail::getRegisterId, employeeInsurancePreVos.get(0).getRegisterId()));
.get(0).getRegisterId()));
for (TEmployeeInsurancePreVo preVo : employeeInsurancePreVos) { for (TEmployeeInsurancePreVo preVo : employeeInsurancePreVos) {
//判断是否存在商险待购买信息 //判断是否存在商险待购买信息
preExit = baseMapper.selectOne(Wrappers.<TEmployeeInsurancePre>query().lambda() preExit = baseMapper.selectOne(Wrappers.<TEmployeeInsurancePre>query().lambda()
...@@ -645,6 +644,14 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur ...@@ -645,6 +644,14 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
return true; return true;
} }
@Override
public Boolean deleteInsurancePreInfo(EmployeeRegistrationPre registrationPre) {
//删除已存在的入职确认信息对应的商险明细
preDetailService.remove(Wrappers.<TInsurancePreDetail>lambdaQuery()
.eq(TInsurancePreDetail::getRegisterId, registrationPre.getId()));
return true;
}
@Override @Override
public Boolean checkExitInsuanceIsProcess(EmployeeRegistrationPreVo preVo) { public Boolean checkExitInsuanceIsProcess(EmployeeRegistrationPreVo preVo) {
//如果状态有变动就会拦截 //如果状态有变动就会拦截
......
...@@ -3882,7 +3882,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -3882,7 +3882,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
} }
//本次派单人员系统已有参保明细 如果是二次派单则无需校验 //本次派单人员系统已有参保明细 如果是二次派单则无需校验
if (Common.isEmpty(param.getIsExit())) { if (Common.isEmpty(param.getIsExit())) {
List<TInsurancePreDetail> listInsured = baseMapper.getOnProcessInsuredList(param.getEmpIdcardNo()); List<TInsurancePreDetail> listInsured = baseMapper.getOnProcessInsuredList(param.getReplaceEmpIdcardNo());
if (Common.isNotNull(listInsured) && !listInsured.isEmpty()) { if (Common.isNotNull(listInsured) && !listInsured.isEmpty()) {
param.setIsExit(CommonConstants.ONE_STRING); param.setIsExit(CommonConstants.ONE_STRING);
param.setErrorMessage(InsurancesConstants.DIS_PERSON_DATA_IS_EXIST); param.setErrorMessage(InsurancesConstants.DIS_PERSON_DATA_IS_EXIST);
......
...@@ -529,10 +529,10 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -529,10 +529,10 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
//if (Common.isEmpty(employee.getIssueStatus()) || employee.getIssueStatus().equals(CommonConstants.ZERO_INT)) { //if (Common.isEmpty(employee.getIssueStatus()) || employee.getIssueStatus().equals(CommonConstants.ZERO_INT)) {
oldEmp = updateEmpBankMap.get(employee.getEmpIdcard()); oldEmp = updateEmpBankMap.get(employee.getEmpIdcard());
if (oldEmp != null) { if (oldEmp != null) {
if (Common.isNotNull(employee.getBankProvince())) { if (Common.isNotNull(employee.getBankProvince()) && regNumber(employee.getBankProvince())) {
areaProvince = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + employee.getBankProvince().trim()); areaProvince = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + employee.getBankProvince().trim());
if (Common.isNotNull(areaProvince)) { if (Common.isNotNull(areaProvince)) {
if (Common.isNotNull(employee.getBankCity())) { if (Common.isNotNull(employee.getBankCity()) && regNumber(employee.getBankCity())) {
areaCity = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + employee.getBankCity().trim() areaCity = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + employee.getBankCity().trim()
+ CommonConstants.DOWN_LINE_STRING + employee.getBankProvince().trim()); + CommonConstants.DOWN_LINE_STRING + employee.getBankProvince().trim());
if (Common.isNotNull(areaCity)) { if (Common.isNotNull(areaCity)) {
...@@ -884,8 +884,6 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -884,8 +884,6 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
empMap.put(e.getEmpIdcard(), e); empMap.put(e.getEmpIdcard(), e);
} }
TSalaryEmployee emp; TSalaryEmployee emp;
// 开户行省市的区域暂存 // 开户行省市的区域暂存
String areaStr; String areaStr;
...@@ -1184,11 +1182,11 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -1184,11 +1182,11 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
for (TSalaryEmployee e : empList) { for (TSalaryEmployee e : empList) {
empMap.put(e.getEmpIdcard(), e); empMap.put(e.getEmpIdcard(), e);
} }
List<TSalaryEmployee> empPhoneList = baseMapper.getListByPhone(phoneList);
// 人员手机号Map
Map<String, List<String>> empPhoneMap = new HashMap<>(); Map<String, List<String>> empPhoneMap = new HashMap<>();
// 人员手机号Map
List<String> phoneIdCardList; List<String> phoneIdCardList;
if (!phoneList.isEmpty()) {
List<TSalaryEmployee> empPhoneList = baseMapper.getListByPhone(phoneList);
for (TSalaryEmployee e : empPhoneList) { for (TSalaryEmployee e : empPhoneList) {
phoneIdCardList = empPhoneMap.get(e.getEmpPhone()); phoneIdCardList = empPhoneMap.get(e.getEmpPhone());
if (phoneIdCardList == null) { if (phoneIdCardList == null) {
...@@ -1197,6 +1195,7 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -1197,6 +1195,7 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
phoneIdCardList.add(e.getEmpIdcard()); phoneIdCardList.add(e.getEmpIdcard());
empPhoneMap.put(e.getEmpPhone(), phoneIdCardList); empPhoneMap.put(e.getEmpPhone(), phoneIdCardList);
} }
}
TSalaryEmployee emp; TSalaryEmployee emp;
// 开户行省市的区域暂存 // 开户行省市的区域暂存
String areaProvince; String areaProvince;
......
...@@ -869,6 +869,10 @@ public class SalaryAccountUtil implements Serializable { ...@@ -869,6 +869,10 @@ public class SalaryAccountUtil implements Serializable {
// 2025-8-5 17:29:33 以本表为准,且写了是新员工,新增手机号也用表里的 倩倩与荣珍同意 // 2025-8-5 17:29:33 以本表为准,且写了是新员工,新增手机号也用表里的 倩倩与荣珍同意
if (Common.isNotNull(entity.getEmpPhone())){ if (Common.isNotNull(entity.getEmpPhone())){
emp.setEmpPhone(entity.getEmpPhone()); emp.setEmpPhone(entity.getEmpPhone());
} else {
error = "第" + i + SalaryConstants.LINE_EMP + emp.getEmpIdcard() + "-新员工以本次导入为准,手机号不可为空,请在工资模板正确填写!";
errorList.add(new ErrorMessage(i, error));
return true;
} }
updateEmpBankList.add(emp); updateEmpBankList.add(emp);
} else if (salaryGiveTimeFlag) { } else if (salaryGiveTimeFlag) {
...@@ -897,6 +901,11 @@ public class SalaryAccountUtil implements Serializable { ...@@ -897,6 +901,11 @@ public class SalaryAccountUtil implements Serializable {
errorList.add(new ErrorMessage(i, error)); errorList.add(new ErrorMessage(i, error));
return true; return true;
} }
if (Common.isEmpty(emp.getEmpPhone())) {
error = "第" + i + SalaryConstants.LINE_EMP + emp.getEmpIdcard() + "-发放方式为银行发放,但是-手机号-为空,请去薪酬人员查询处更新!";
errorList.add(new ErrorMessage(i, error));
return true;
}
entity.setBankName(emp.getBankName()); entity.setBankName(emp.getBankName());
entity.setBankNo(emp.getBankNo()); entity.setBankNo(emp.getBankNo());
entity.setBankProvince(String.valueOf(emp.getBankProvince())); entity.setBankProvince(String.valueOf(emp.getBankProvince()));
...@@ -1260,12 +1269,20 @@ public class SalaryAccountUtil implements Serializable { ...@@ -1260,12 +1269,20 @@ public class SalaryAccountUtil implements Serializable {
areaStr = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + entity.getBankProvince().trim()); areaStr = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + entity.getBankProvince().trim());
if (Common.isNotNull(areaStr)) { if (Common.isNotNull(areaStr)) {
newEmp.setBankProvince(areaStr); newEmp.setBankProvince(areaStr);
} else {
error = "第" + i + "行:" + newEmpStr + "-开户行省错误:" + entity.getBankProvince();
errorList.add(new ErrorMessage(i, error));
return false;
} }
if (Common.isNotNull(entity.getBankCity())) { if (Common.isNotNull(entity.getBankCity())) {
areaStr = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + entity.getBankCity().trim() areaStr = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + entity.getBankCity().trim()
+ CommonConstants.DOWN_LINE_STRING + entity.getBankProvince().trim()); + CommonConstants.DOWN_LINE_STRING + entity.getBankProvince().trim());
if (Common.isNotNull(areaStr)) { if (Common.isNotNull(areaStr)) {
newEmp.setBankCity(areaStr); newEmp.setBankCity(areaStr);
} else {
error = "第" + i + "行:" + newEmpStr + "-开户行市错误:" + entity.getBankCity();
errorList.add(new ErrorMessage(i, error));
return false;
} }
} }
} }
......
...@@ -4606,8 +4606,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -4606,8 +4606,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
} }
//社保公积金派减办理成功 //社保公积金派减办理成功
if ((CommonConstants.ONE_STRING.equals(dis.getType()) && CommonConstants.ZERO_INT == flag if ((CommonConstants.ONE_STRING.equals(dis.getType()) && CommonConstants.ZERO_INT == flag
&& CommonConstants.EIGHT_STRING.equals(sf.getSocialStatus()) && (CommonConstants.EIGHT_STRING.equals(sf.getSocialStatus()) || CommonConstants.FIVE_STRING.equals(sf.getSocialStatus()))
&& (CommonConstants.SEVEN_STRING.equals(sf.getFundStatus()) && (CommonConstants.SEVEN_STRING.equals(sf.getFundStatus())
|| CommonConstants.FOUR_STRING.equals(sf.getFundStatus())
|| Common.isEmpty(sf.getFundStatus()))) || || Common.isEmpty(sf.getFundStatus()))) ||
(CommonConstants.ZERO_STRING.equals(dis.getType()) && CommonConstants.ONE_INT == flag && (CommonConstants.ZERO_STRING.equals(dis.getType()) && CommonConstants.ONE_INT == flag &&
CommonConstants.EIGHT_STRING.equals(sf.getSocialStatus()) CommonConstants.EIGHT_STRING.equals(sf.getSocialStatus())
......
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