花名册列定制模板查询20230112
parent
09d4dbddd5
commit
8750850dfa
@ -1,37 +1,67 @@
|
|||||||
package com.engine.organization.entity.hrmresource.po;
|
package com.engine.organization.entity.hrmresource.po;
|
||||||
|
|
||||||
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.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @TableName jcl_org_custom_template
|
||||||
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class JclOrgCustomTemplatePO {
|
@NoArgsConstructor
|
||||||
|
public class JclOrgCustomTemplatePO implements Serializable {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
private String basicFields;
|
private String basicFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
private String personalFields;
|
private String personalFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
private String workFields;
|
private String workFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
private Integer isused;
|
private Integer isused;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
private Integer creator;
|
private Integer creator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
}
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
@ -1,29 +0,0 @@
|
|||||||
<?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="resultMap" type="com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO">
|
|
||||||
<result column="id" property="id"/>
|
|
||||||
<result column="name" property="name"/>
|
|
||||||
<result column="isused" property="isused"/>
|
|
||||||
<result column="create_time" property="createTime"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="baseColumns">
|
|
||||||
t.id,
|
|
||||||
t.name,
|
|
||||||
t.basic_fields,
|
|
||||||
t.personal_fields,
|
|
||||||
t.work_fields text,
|
|
||||||
t.isused,
|
|
||||||
t.creator,
|
|
||||||
t.create_time,
|
|
||||||
t.update_time
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="listAll" resultType="com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO">
|
|
||||||
select
|
|
||||||
<include refid="baseColumns"/>
|
|
||||||
from jcl_org_custom_template t order by t.id
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -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