fix(bug修复): 信息录入模块录入基本信息时的入职类型默认设置成新入职
3个文件已修改
12 ■■■■■ 已修改文件
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/controller/EmpBaseInfoController.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpBaseInfo.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/mapper/EmpBaseInfoMapper.xml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/controller/EmpBaseInfoController.java
@@ -22,6 +22,7 @@
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -103,6 +104,7 @@
           throw new FebsException("已存在此身份证号:" + empBaseinfo.getCertificateNumb());
       }
        try {
            empBaseinfo.setEntryType("20");
            this.empBaseInfoService.createEmpBaseInfo(empBaseinfo);
        } catch (Exception e) {
            String message = "新增员工基本信息失败";
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpBaseInfo.java
@@ -252,9 +252,9 @@
    @TableField("InsuranceType")
    private String insuranceType = "";
    @FieldInfo(name = "insuranceTypeName", type = "varchar", explain = "保险类型")
    @FieldInfo(name = "insuranceTypeName", type = "varchar", explain = "社保档位")
    @TableField(exist = false)
    @ExcelField(value = "保险类型")
    @ExcelField(value = "社保档位")
    private String insuranceTypeName = "";
    @FieldInfo(name = "socialNumb", type = "varchar", explain = "社保电脑号")
@@ -313,7 +313,7 @@
    @FieldInfo(name = "entryType", type = "varchar", explain = "入职类型")
    @TableField("entryType")
    private String entryType = "";
    private String entryType = "20";
    @FieldInfo(name = "entryTypeName", type = "varchar", explain = "入职类型")
    @TableField(exist = false)
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/mapper/EmpBaseInfoMapper.xml
@@ -185,7 +185,7 @@
    <select id="countDqhtBaseInfoList" resultType="java.lang.Integer">
        SELECT
        count(IF(t2.contractStatus = 1, 1, NULL)) dqht
        count(IF(t2.contractStatus in('1','2'), 1, NULL)) dqht
        FROM
        t_emp_baseinfo t INNER JOIN t_emp_contractinfo t2 on t.empId=t2.empId inner  join t_dept t1 on t.deptId=t1.DEPT_ID  ${ew.customSqlSegment} and t.delFlag=0 and t2.delFlag=0
        <choose>
@@ -785,7 +785,7 @@
        and t2.DEPT_ID in
        <foreach item="item" index="index" collection="list" open="(" separator="," close=")">
            #{item}
        </foreach> and t.delFlag=0 and t1.delFlag=0 and t1.contractStatus = '4' and t1.empStatus=0
        </foreach> and t.delFlag=0 and t1.delFlag=0 and t1.contractStatus in( '1','2')  and t1.empStatus=0
        <if test="name!= 'undefined' and name!=null and name!=''">
            and (t.empNumb like CONCAT('%',#{name},'%') or t.empName like CONCAT('%',#{name},'%') or
            t.certificateNumb like CONCAT('%',#{name},'%') or t2.DEPT_NAME like CONCAT('%',#{name},'%'))