Commit 3c85015e authored by fangxinjiang's avatar fangxinjiang

派单我司到款单位+户大专及以上学校必填+派单导出-fxj

parent 013f2475
package com.yifu.cloud.plus.v1.yifu.archives.vo; package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelIgnore; import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
...@@ -101,6 +104,14 @@ public class ProjectSetInfoVo implements Serializable { ...@@ -101,6 +104,14 @@ public class ProjectSetInfoVo implements Serializable {
@Schema(description="封面抬头-商险") @Schema(description="封面抬头-商险")
private String invoiceTitleInsurance; private String invoiceTitleInsurance;
/**
* 我司到款单位
*/
@ExcelAttribute(name = "我司到款单位", maxLength = 100)
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("我司到款单位")
private String unitOfOurCompany;
/** /**
* EKP的 是否BPO: 是 否 * EKP的 是否BPO: 是 否
*/ */
......
...@@ -520,6 +520,7 @@ ...@@ -520,6 +520,7 @@
a.STOP_FLAG, a.STOP_FLAG,
a.INVOICE_TITLE_SALARY, a.INVOICE_TITLE_SALARY,
a.INVOICE_TITLE_INSURANCE, a.INVOICE_TITLE_INSURANCE,
a.UNIT_OF_OUR_COMPANY,
a.BPO_FLAG, a.BPO_FLAG,
a.BPO_ENABLE, a.BPO_ENABLE,
a.SERVER_ITEM a.SERVER_ITEM
......
...@@ -438,13 +438,22 @@ public class SysHouseHoldInfo extends BaseEntity { ...@@ -438,13 +438,22 @@ public class SysHouseHoldInfo extends BaseEntity {
private String isSingleYsdPush; private String isSingleYsdPush;
/** /**
* 推送时,医保完成后才推送社保,默认0否 * 推送时,医保完成后才推送社保,默认0否
*/ */
@ExcelAttribute(name = "根据医保结果办理养工失" ) @ExcelAttribute(name = "根据医保结果办理养工失" )
@Schema(description ="根据医保结果办理养工失") @Schema(description ="根据医保结果办理养工失")
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("根据医保结果办理养工失") @ExcelProperty("根据医保结果办理养工失")
private String isYsdOkPushYgs; private String isYsdOkPushYgs;
/**
* 大专及以上学校必填 0否1是(默认是)
*/
@ExcelAttribute(name = "大专及以上学校必填" )
@Schema(description ="大专及以上学校必填")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("大专及以上学校必填")
private String collegeDegreeRequired;
/** /**
......
...@@ -82,6 +82,15 @@ public class TDispatchInfoExportVo { ...@@ -82,6 +82,15 @@ public class TDispatchInfoExportVo {
@ExcelProperty("项目名称") @ExcelProperty("项目名称")
private String settleDomainName; private String settleDomainName;
/**
* 项目编码
*/
@ExcelAttribute(name = "项目编码", maxLength = 50)
@Schema(description = "项目编码" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("项目编码" )
private String settleDomainCode;
@ExcelAttribute(name = "员工类型", isDataId = true, dataType = ExcelAttributeConstants.EMP_NATRUE) @ExcelAttribute(name = "员工类型", isDataId = true, dataType = ExcelAttributeConstants.EMP_NATRUE)
@Schema(description = "员工类型") @Schema(description = "员工类型")
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
......
...@@ -288,4 +288,13 @@ public class TSocialHouseholdInsertVo extends RowIndex implements Serializable { ...@@ -288,4 +288,13 @@ public class TSocialHouseholdInsertVo extends RowIndex implements Serializable {
@ExcelProperty("医保推送税友接口通道") @ExcelProperty("医保推送税友接口通道")
private String isSingleYsdPush; private String isSingleYsdPush;
/**
* 大专及以上学校必填 0否1是(默认是)
*/
@ExcelAttribute(name = "大专及以上学校必填", maxLength = 1, errorInfo = "大专及以上学校必填不能为空")
@Schema(description ="大专及以上学校必填")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("大专及以上学校必填")
private String collegeDegreeRequired;
} }
...@@ -288,4 +288,13 @@ public class TSocialHouseholdUpdateVo extends RowIndex implements Serializable { ...@@ -288,4 +288,13 @@ public class TSocialHouseholdUpdateVo extends RowIndex implements Serializable {
@ExcelProperty("医保推送税友接口通道") @ExcelProperty("医保推送税友接口通道")
private String isSingleYsdPush; private String isSingleYsdPush;
/**
* 大专及以上学校必填 0否1是(默认是)
*/
@ExcelAttribute(name = "大专及以上学校必填", maxLength = 1, errorInfo = "社保户时,大专及以上学校必填不能为空")
@Schema(description ="大专及以上学校必填")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("大专及以上学校必填")
private String collegeDegreeRequired;
} }
...@@ -1086,6 +1086,18 @@ public class SysHouseHoldInfoServiceImpl extends ServiceImpl<SysHouseHoldInfoMap ...@@ -1086,6 +1086,18 @@ public class SysHouseHoldInfoServiceImpl extends ServiceImpl<SysHouseHoldInfoMap
} }
household.setOrganId(dicMap.get(household.getOrganName())); household.setOrganId(dicMap.get(household.getOrganName()));
// 设置大专及以上学校必填字段,默认为1(是)
// 导入新增只支持社保户,所以该字段必填
if (Common.isEmpty(excel.getCollegeDegreeRequired())) {
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "'大专及以上学校必填'不能为空",excel));
continue;
}
if (!CommonConstants.IS_TRUE.equals(excel.getCollegeDegreeRequired())
&& !CommonConstants.IS_FALSE.equals(excel.getCollegeDegreeRequired())){
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "'大专及以上学校必填'应为是或否",excel));
continue;
}
household.setCollegeDegreeRequired(excel.getCollegeDegreeRequired().equals(CommonConstants.IS_TRUE) ? "1" : "0");
baseMapper.insert(household); baseMapper.insert(household);
// 同步审核权限、办理权限 // 同步审核权限、办理权限
this.saveAuditUserOrHandleUser(household, CommonConstants.ZERO_STRING); this.saveAuditUserOrHandleUser(household, CommonConstants.ZERO_STRING);
...@@ -1358,6 +1370,17 @@ public class SysHouseHoldInfoServiceImpl extends ServiceImpl<SysHouseHoldInfoMap ...@@ -1358,6 +1370,17 @@ public class SysHouseHoldInfoServiceImpl extends ServiceImpl<SysHouseHoldInfoMap
continue; continue;
} }
} }
//大专及以上学校必填 值校验
// 只有账户性质为社保户(0)时才必填
if (Common.isEmpty(excel.getCollegeDegreeRequired())) {
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "社保户时,'大专及以上学校必填'不能为空",excel));
continue;
}
if (!CommonConstants.IS_TRUE.equals(excel.getCollegeDegreeRequired())
&& !CommonConstants.IS_FALSE.equals(excel.getCollegeDegreeRequired())){
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "'大专及以上学校必填'应为是或否",excel));
continue;
}
// 新老数据审核人办理人不同,先删除,再添加 // 新老数据审核人办理人不同,先删除,再添加
if (Common.isNotNull(excel.getAuditUserName()) && !excel.getAuditUserName().equals(info.getAuditUserName())) { if (Common.isNotNull(excel.getAuditUserName()) && !excel.getAuditUserName().equals(info.getAuditUserName())) {
tSocialfundHouseResService.deleteAuditUser(info); tSocialfundHouseResService.deleteAuditUser(info);
...@@ -1518,6 +1541,10 @@ public class SysHouseHoldInfoServiceImpl extends ServiceImpl<SysHouseHoldInfoMap ...@@ -1518,6 +1541,10 @@ public class SysHouseHoldInfoServiceImpl extends ServiceImpl<SysHouseHoldInfoMap
if (Common.isNotNull(excel.getMediclPassword())) { if (Common.isNotNull(excel.getMediclPassword())) {
info.setMediclPassword(excel.getMediclPassword()); info.setMediclPassword(excel.getMediclPassword());
} }
// 设置大专及以上学校必填字段
if (Common.isNotNull(excel.getCollegeDegreeRequired())) {
info.setCollegeDegreeRequired(excel.getCollegeDegreeRequired().equals(CommonConstants.IS_TRUE) ? "1" : "0");
}
if (Common.isNotNull(excel.getAuditUserName())) { if (Common.isNotNull(excel.getAuditUserName())) {
SysUser auditUser = userMap.get(excel.getAuditUserName()); SysUser auditUser = userMap.get(excel.getAuditUserName());
info.setAuditUser(auditUser.getUserId()); info.setAuditUser(auditUser.getUserId());
......
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
<result property="isSingleYsdPush" column="IS_SINGLE_YSD_PUSH"/> <result property="isSingleYsdPush" column="IS_SINGLE_YSD_PUSH"/>
<!--MVP1.7.19 2026-01-20是否办理医保完成后才允许推送社保--> <!--MVP1.7.19 2026-01-20是否办理医保完成后才允许推送社保-->
<result property="isYsdOkPushYgs" column="IS_YSD_OK_PUSH_YGS"/> <result property="isYsdOkPushYgs" column="IS_YSD_OK_PUSH_YGS"/>
<result property="collegeDegreeRequired" column="COLLEGE_DEGREE_REQUIRED"/>
</resultMap> </resultMap>
<resultMap id="sysHouseHoldSingleInfoMap" type="com.yifu.cloud.plus.v1.yifu.social.entity.SysHouseHoldInfo"> <resultMap id="sysHouseHoldSingleInfoMap" type="com.yifu.cloud.plus.v1.yifu.social.entity.SysHouseHoldInfo">
...@@ -133,10 +134,14 @@ ...@@ -133,10 +134,14 @@
,a.IS_SINGLE_YGS_PUSH ,a.IS_SINGLE_YGS_PUSH
,a.IS_SINGLE_YSD_PUSH ,a.IS_SINGLE_YSD_PUSH
,a.IS_YSD_OK_PUSH_YGS ,a.IS_YSD_OK_PUSH_YGS
,a.COLLEGE_DEGREE_REQUIRED
</sql> </sql>
<sql id="sysHouseHoldInfo_where"> <sql id="sysHouseHoldInfo_where">
<if test="sysHouseHoldInfo != null"> <if test="sysHouseHoldInfo != null">
<if test="sysHouseHoldInfo.collegeDegreeRequired != null and sysHouseHoldInfo.collegeDegreeRequired.trim() != ''">
AND a.COLLEGE_DEGREE_REQUIRED = #{sysHouseHoldInfo.collegeDegreeRequired}
</if>
<if test="sysHouseHoldInfo.id != null and sysHouseHoldInfo.id.trim() != ''"> <if test="sysHouseHoldInfo.id != null and sysHouseHoldInfo.id.trim() != ''">
AND a.ID = #{sysHouseHoldInfo.id} AND a.ID = #{sysHouseHoldInfo.id}
</if> </if>
......
...@@ -131,6 +131,7 @@ ...@@ -131,6 +131,7 @@
<result property="empType" column="EMP_TYPE"/> <result property="empType" column="EMP_TYPE"/>
<result property="belongUnitName" column="BELONG_UNIT_NAME"/> <result property="belongUnitName" column="BELONG_UNIT_NAME"/>
<result property="settleDomainName" column="SETTLE_DOMAIN_NAME"/> <result property="settleDomainName" column="SETTLE_DOMAIN_NAME"/>
<result property="settleDomainCode" column="SETTLE_DOMAIN_CODE"/>
<result property="type" column="TYPE"/> <result property="type" column="TYPE"/>
<result property="socialHouseholdName" column="SOCIAL_HOUSEHOLD_NAME"/> <result property="socialHouseholdName" column="SOCIAL_HOUSEHOLD_NAME"/>
<result property="providentHouseholdName" column="PROVIDENT_HOUSEHOLD_NAME"/> <result property="providentHouseholdName" column="PROVIDENT_HOUSEHOLD_NAME"/>
...@@ -825,6 +826,7 @@ ...@@ -825,6 +826,7 @@
a.EMP_TYPE, a.EMP_TYPE,
a.BELONG_UNIT_NAME, a.BELONG_UNIT_NAME,
a.SETTLE_DOMAIN_NAME, a.SETTLE_DOMAIN_NAME,
a.SETTLE_DOMAIN_CODE,
case when a.TYPE = 0 then "派增" case when a.TYPE = 0 then "派增"
when a.TYPE = 1 then "派减" when a.TYPE = 1 then "派减"
else null end as "TYPE" , else null end as "TYPE" ,
......
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