人员信息增加三个字段。质量导出模板bug修复

master
zhaoxiaolin 9 months ago
parent 102261ec2d
commit 752058a4ec

@ -1,15 +1,11 @@
package com.op.system.api.domain.quality; package com.op.system.api.domain.quality;
import com.op.common.core.web.domain.BaseEntity; import com.op.common.core.web.domain.BaseEntity;
import com.op.common.core.xss.Xss;
import com.op.system.api.domain.SysDept; import com.op.system.api.domain.SysDept;
import com.op.system.api.domain.SysRole; import com.op.system.api.domain.SysRole;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
@ -72,6 +68,25 @@ public class HRInfo extends BaseEntity {
private String poscd;//岗位编码 private String poscd;//岗位编码
private String ounam;//部门名称 private String ounam;//部门名称
private String oucod;//部门编码 private String oucod;//部门编码
private String wxId;
private String section;
private String peSnr;
public String getSection() {
return section;
}
public void setSection(String section) {
this.section = section;
}
public String getPeSnr() {
return peSnr;
}
public void setPeSnr(String peSnr) {
this.peSnr = peSnr;
}
public String getPeWorkID() { public String getPeWorkID() {
return peWorkID; return peWorkID;

@ -43,9 +43,11 @@ public class ExcelMapUtil {
Cell titleCell = sheetTitleRow.createCell(i*rangeVal+1);//创建第一行第一个单元格 Cell titleCell = sheetTitleRow.createCell(i*rangeVal+1);//创建第一行第一个单元格
titleCell.setCellValue(title1s[i]);//传值 titleCell.setCellValue(title1s[i]);//传值
titleCell.setCellStyle(getHeaderFont(sheet.getWorkbook()));//设置样式 titleCell.setCellStyle(getHeaderFont(sheet.getWorkbook()));//设置样式
//主标题行合并单元格 if((i*rangeVal+1)!=(i+1)*rangeVal){
CellRangeAddress cellAddresses = new CellRangeAddress(0, 0, i*rangeVal+1, (i+1)*rangeVal); //主标题行合并单元格
sheet.addMergedRegion(cellAddresses); CellRangeAddress cellAddresses = new CellRangeAddress(0, 0, i*rangeVal+1, (i+1)*rangeVal);
sheet.addMergedRegion(cellAddresses);
}
} }
//创建表头行(第二行) //创建表头行(第二行)

@ -189,12 +189,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
insert into sys_user insert into sys_user
(user_name,nick_name,post,dept_id, (user_name,nick_name,post,dept_id,
phonenumber,sex,status, phonenumber,sex,status,
create_by,create_time,del_flag) create_by,create_time,del_flag,
section,pe_snr)
VALUES VALUES
<foreach collection="list" index="index" item="item" separator=","> <foreach collection="list" index="index" item="item" separator=",">
(#{item.userName},#{item.nickName},#{item.post},#{item.deptId}, (#{item.userName},#{item.nickName},#{item.post},#{item.deptId},
#{item.phonenumber},#{item.sex},#{item.status}, #{item.phonenumber},#{item.sex},#{item.status},
#{item.createBy},#{item.createTime},'0') #{item.createBy},#{item.createTime},'0',#{item.section},#{item.peSnr})
</foreach> </foreach>
</insert> </insert>
@ -238,6 +239,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="item.deptId!=null">section = #{item.deptId},</if> <if test="item.deptId!=null">section = #{item.deptId},</if>
<if test="item.post!=null">post = #{item.post},</if> <if test="item.post!=null">post = #{item.post},</if>
<if test="item.phonenumber!=null">phonenumber = #{item.phonenumber},</if> <if test="item.phonenumber!=null">phonenumber = #{item.phonenumber},</if>
<if test="item.section!=null">section = #{item.section},</if>
<if test="item.peSnr!=null">pe_snr = #{item.peSnr},</if>
sex = #{item.sex}, sex = #{item.sex},
del_flag = #{item.delFlag}, del_flag = #{item.delFlag},
update_by = #{item.updateBy}, update_by = #{item.updateBy},

Loading…
Cancel
Save