Merge branch 'develop' of http://221.226.25.34:3000/liang.cheng/weaver-hrm-organization into feature/dxf
commit
b93a3d7b1c
@ -0,0 +1,67 @@
|
|||||||
|
package com.engine.organization.entity.hrmresource.po;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @TableName jcl_org_custom_template
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class JclOrgCustomTemplatePO implements Serializable {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String basicFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String personalFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String workFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private Integer isused;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private Integer creator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,47 @@
|
|||||||
|
package com.engine.organization.entity.hrmresource.vo;
|
||||||
|
|
||||||
|
import com.cloudstore.eccom.pc.table.WeaTableType;
|
||||||
|
import com.engine.organization.annotation.OrganizationTable;
|
||||||
|
import com.engine.organization.annotation.OrganizationTableColumn;
|
||||||
|
import com.engine.organization.annotation.OrganizationTableOperate;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:ml
|
||||||
|
* @createTime: 2023/01/06
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@OrganizationTable(pageId = "c0583f20-f10c-11ec-9947-00e04c680716",
|
||||||
|
fields = "t.id," +
|
||||||
|
"t.lastname," +
|
||||||
|
"t.departmentid," +
|
||||||
|
"t.subcompanyid1," +
|
||||||
|
"t.jobtitle," +
|
||||||
|
"t.mobile," +
|
||||||
|
"t.telephone," +
|
||||||
|
"t.managerid, " +
|
||||||
|
"t.dsporder ",
|
||||||
|
fromSql = "FROM hrmresource t ",
|
||||||
|
orderby = " dsporder ",
|
||||||
|
sortway = " asc",
|
||||||
|
primarykey = "id",
|
||||||
|
operates = {
|
||||||
|
@OrganizationTableOperate(text = "查看"),
|
||||||
|
@OrganizationTableOperate(index = "1", text = "另存为版本")
|
||||||
|
},
|
||||||
|
tableType = WeaTableType.CHECKBOX
|
||||||
|
)
|
||||||
|
public class HrmResourceJclVO {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@OrganizationTableColumn(column = "id", display = false)
|
||||||
|
private Long id;
|
||||||
|
}
|
@ -0,0 +1,67 @@
|
|||||||
|
package com.engine.organization.entity.hrmresource.vo;
|
||||||
|
|
||||||
|
import com.cloudstore.eccom.pc.table.WeaTableType;
|
||||||
|
import com.engine.organization.annotation.OrganizationTable;
|
||||||
|
import com.engine.organization.annotation.OrganizationTableColumn;
|
||||||
|
import com.engine.organization.annotation.OrganizationTableOperate;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@OrganizationTable(pageId = "8df45b09-0cda-4f57-a93a-ca9f96a4c111",
|
||||||
|
fields = "t.id," +
|
||||||
|
"t.name," +
|
||||||
|
"t.basic_fields," +
|
||||||
|
"t.personal_fields," +
|
||||||
|
"t.work_fields," +
|
||||||
|
"t.isused," +
|
||||||
|
"t.creator," +
|
||||||
|
"t.create_time," +
|
||||||
|
"t.update_time",
|
||||||
|
fromSql = "FROM jcl_org_custom_template t ",
|
||||||
|
orderby = "id",
|
||||||
|
sortway = "asc",
|
||||||
|
primarykey = "id",
|
||||||
|
operates = {
|
||||||
|
@OrganizationTableOperate(index = "0", text = "编辑"),
|
||||||
|
@OrganizationTableOperate(index = "1", text = "另存为"),
|
||||||
|
@OrganizationTableOperate(index = "2", text = "删除")
|
||||||
|
},
|
||||||
|
tableType = WeaTableType.CHECKBOX
|
||||||
|
)
|
||||||
|
public class JclOrgCustomTemplateVO {
|
||||||
|
|
||||||
|
@OrganizationTableColumn(column = "id", display = false)
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
@OrganizationTableColumn(text = "模板名称", width = "30%", column = "name")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@OrganizationTableColumn(column = "basic_fields", display = false)
|
||||||
|
private String basicFields;
|
||||||
|
|
||||||
|
@OrganizationTableColumn(column = "personal_fields", display = false)
|
||||||
|
private String personalFields;
|
||||||
|
|
||||||
|
@OrganizationTableColumn(column = "work_fields", display = false)
|
||||||
|
private String workFields;
|
||||||
|
|
||||||
|
@OrganizationTableColumn(column = "isused", display = false)
|
||||||
|
private Integer isUsed;
|
||||||
|
|
||||||
|
@OrganizationTableColumn(column = "creator", display = false)
|
||||||
|
private Integer creator;
|
||||||
|
|
||||||
|
@OrganizationTableColumn(text = "创建时间",column = "create_time", width = "30%")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
@OrganizationTableColumn(text = "更新时间",column = "update_time", display = false)
|
||||||
|
private Date updateTime;
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.engine.organization.mapper.resource;
|
||||||
|
|
||||||
|
import com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Mlin
|
||||||
|
* @description 针对表【jcl_org_custom_template】的数据库操作Mapper
|
||||||
|
* @createDate 2023-01-12 10:28:52
|
||||||
|
* @Entity com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplate
|
||||||
|
*/
|
||||||
|
public interface JclOrgCustomTemplateMapper {
|
||||||
|
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int insert(JclOrgCustomTemplatePO record);
|
||||||
|
|
||||||
|
int insertSelective(JclOrgCustomTemplatePO record);
|
||||||
|
|
||||||
|
JclOrgCustomTemplatePO selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(JclOrgCustomTemplatePO record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(JclOrgCustomTemplatePO record);
|
||||||
|
|
||||||
|
List<JclOrgCustomTemplatePO> listAll();
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.engine.organization.mapper.resource.JclOrgCustomTemplateMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO">
|
||||||
|
<id property="id" column="id" jdbcType="INTEGER"/>
|
||||||
|
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="basicFields" column="basic_fields" jdbcType="VARCHAR"/>
|
||||||
|
<result property="personalFields" column="personal_fields" jdbcType="VARCHAR"/>
|
||||||
|
<result property="workFields" column="work_fields" jdbcType="VARCHAR"/>
|
||||||
|
<result property="isused" column="isused" jdbcType="INTEGER"/>
|
||||||
|
<result property="creator" column="creator" jdbcType="INTEGER"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="DATE"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="DATE"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,name,basic_fields,
|
||||||
|
personal_fields,work_fields,isused,
|
||||||
|
creator,create_time,update_time
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from jcl_org_custom_template
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</select>
|
||||||
|
<select id="listAll" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from jcl_org_custom_template order by id
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
delete from jcl_org_custom_template
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO" useGeneratedKeys="true">
|
||||||
|
insert into jcl_org_custom_template
|
||||||
|
( id,name,basic_fields
|
||||||
|
,personal_fields,work_fields,isused
|
||||||
|
,creator,create_time,update_time
|
||||||
|
)
|
||||||
|
values (#{id,jdbcType=INTEGER},#{name,jdbcType=VARCHAR},#{basicFields,jdbcType=VARCHAR}
|
||||||
|
,#{personalFields,jdbcType=VARCHAR},#{workFields,jdbcType=VARCHAR},#{isused,jdbcType=INTEGER}
|
||||||
|
,#{creator,jdbcType=INTEGER},#{createTime,jdbcType=DATE},#{updateTime,jdbcType=DATE}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO" useGeneratedKeys="true">
|
||||||
|
insert into jcl_org_custom_template
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="name != null">name,</if>
|
||||||
|
<if test="basicFields != null">basic_fields,</if>
|
||||||
|
<if test="personalFields != null">personal_fields,</if>
|
||||||
|
<if test="workFields != null">work_fields,</if>
|
||||||
|
<if test="isused != null">isused,</if>
|
||||||
|
<if test="creator != null">creator,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id,jdbcType=INTEGER},</if>
|
||||||
|
<if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="basicFields != null">#{basicFields,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="personalFields != null">#{personalFields,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="workFields != null">#{workFields,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="isused != null">#{isused,jdbcType=INTEGER},</if>
|
||||||
|
<if test="creator != null">#{creator,jdbcType=INTEGER},</if>
|
||||||
|
<if test="createTime != null">#{createTime,jdbcType=DATE},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime,jdbcType=DATE},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO">
|
||||||
|
update jcl_org_custom_template
|
||||||
|
<set>
|
||||||
|
<if test="name != null">
|
||||||
|
name = #{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="basicFields != null">
|
||||||
|
basic_fields = #{basicFields,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="personalFields != null">
|
||||||
|
personal_fields = #{personalFields,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="workFields != null">
|
||||||
|
work_fields = #{workFields,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="isused != null">
|
||||||
|
isused = #{isused,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="creator != null">
|
||||||
|
creator = #{creator,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=DATE},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=DATE},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO">
|
||||||
|
update jcl_org_custom_template
|
||||||
|
set
|
||||||
|
name = #{name,jdbcType=VARCHAR},
|
||||||
|
basic_fields = #{basicFields,jdbcType=VARCHAR},
|
||||||
|
personal_fields = #{personalFields,jdbcType=VARCHAR},
|
||||||
|
work_fields = #{workFields,jdbcType=VARCHAR},
|
||||||
|
isused = #{isused,jdbcType=INTEGER},
|
||||||
|
creator = #{creator,jdbcType=INTEGER},
|
||||||
|
create_time = #{createTime,jdbcType=DATE},
|
||||||
|
update_time = #{updateTime,jdbcType=DATE}
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue