md
This commit is contained in:
parent
1ae5f94a44
commit
fe02b114eb
@ -2,7 +2,7 @@
|
|||||||
* @Project: emis
|
* @Project: emis
|
||||||
* @Title: EmisProblemType.java
|
* @Title: EmisProblemType.java
|
||||||
* @author linfso
|
* @author linfso
|
||||||
* @date 2024-01-11 05:46:42
|
* @date 2024-01-11 07:58:44
|
||||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||||
* @version v1.0
|
* @version v1.0
|
||||||
* @Description: <p> 问题件类型 实体类 </p>
|
* @Description: <p> 问题件类型 实体类 </p>
|
||||||
@ -25,15 +25,17 @@ import lombok.Data;
|
|||||||
* @ClassName EmisProblemType
|
* @ClassName EmisProblemType
|
||||||
* @Description 问题件类型
|
* @Description 问题件类型
|
||||||
* @author linfso
|
* @author linfso
|
||||||
* @date 2024-01-11 05:46:42
|
* @date 2024-01-11 07:58:44
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class EmisProblemType extends BaseEntity
|
public class EmisProblemType extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/* 序号 */
|
/* 序号 */
|
||||||
private Long id;
|
private Long id;
|
||||||
|
/* 类型编号 */
|
||||||
|
private String typeCode;
|
||||||
/* 类型名称 */
|
/* 类型名称 */
|
||||||
private String typeName;
|
private String typeName;
|
||||||
/* 英文名称 */
|
/* 英文名称 */
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<!DOCTYPE mapper
|
<!DOCTYPE mapper
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.xdadan.erp.emis.mapper.EmisProblemTypeMapper">
|
<mapper namespace="com.xdadan.erp.emis.mapper.EmisProblemTypeMapper">
|
||||||
|
|
||||||
<resultMap type="EmisProblemType" id="EmisProblemTypeResult">
|
<resultMap type="EmisProblemType" id="EmisProblemTypeResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
|
<result property="typeCode" column="type_code" />
|
||||||
<result property="typeName" column="type_name" />
|
<result property="typeName" column="type_name" />
|
||||||
<result property="typeNameEn" column="type_name_en" />
|
<result property="typeNameEn" column="type_name_en" />
|
||||||
<result property="isSendSms" column="is_send_sms" />
|
<result property="isSendSms" column="is_send_sms" />
|
||||||
@ -22,13 +23,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectEmisProblemTypeVo">
|
<sql id="selectEmisProblemTypeVo">
|
||||||
select id, type_name, type_name_en, is_send_sms, object_type, delay_day, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_problem_type
|
select id, type_code, type_name, type_name_en, is_send_sms, object_type, delay_day, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_problem_type
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectEmisProblemTypeList" parameterType="EmisProblemType" resultMap="EmisProblemTypeResult">
|
<select id="selectEmisProblemTypeList" parameterType="EmisProblemType" resultMap="EmisProblemTypeResult">
|
||||||
<include refid="selectEmisProblemTypeVo"/>
|
<include refid="selectEmisProblemTypeVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="id != null "> and id = #{id}</if>
|
<if test="id != null "> and id = #{id}</if>
|
||||||
|
<if test="typeCode != null and typeCode != ''"> and type_code like concat('%', #{typeCode}, '%')</if>
|
||||||
<if test="typeName != null and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
|
<if test="typeName != null and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
|
||||||
<if test="typeNameEn != null and typeNameEn != ''"> and type_name_en like concat('%', #{typeNameEn}, '%')</if>
|
<if test="typeNameEn != null and typeNameEn != ''"> and type_name_en like concat('%', #{typeNameEn}, '%')</if>
|
||||||
<if test="isSendSms != null "> and is_send_sms = #{isSendSms}</if>
|
<if test="isSendSms != null "> and is_send_sms = #{isSendSms}</if>
|
||||||
@ -47,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectEmisProblemTypeById" parameterType="Long" resultMap="EmisProblemTypeResult">
|
<select id="selectEmisProblemTypeById" parameterType="Long" resultMap="EmisProblemTypeResult">
|
||||||
select id, type_name, type_name_en, is_send_sms, object_type, delay_day, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
select id, type_code, type_name, type_name_en, is_send_sms, object_type, delay_day, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||||
from emis_problem_type a
|
from emis_problem_type a
|
||||||
where a.id = #{id}
|
where a.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
@ -56,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
insert into emis_problem_type
|
insert into emis_problem_type
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">id,</if>
|
<if test="id != null">id,</if>
|
||||||
|
<if test="typeCode != null and typeCode != ''">type_code,</if>
|
||||||
<if test="typeName != null and typeName != ''">type_name,</if>
|
<if test="typeName != null and typeName != ''">type_name,</if>
|
||||||
<if test="typeNameEn != null and typeNameEn != ''">type_name_en,</if>
|
<if test="typeNameEn != null and typeNameEn != ''">type_name_en,</if>
|
||||||
<if test="isSendSms != null">is_send_sms,</if>
|
<if test="isSendSms != null">is_send_sms,</if>
|
||||||
@ -72,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">#{id},</if>
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="typeCode != null and typeCode != ''">#{typeCode},</if>
|
||||||
<if test="typeName != null and typeName != ''">#{typeName},</if>
|
<if test="typeName != null and typeName != ''">#{typeName},</if>
|
||||||
<if test="typeNameEn != null and typeNameEn != ''">#{typeNameEn},</if>
|
<if test="typeNameEn != null and typeNameEn != ''">#{typeNameEn},</if>
|
||||||
<if test="isSendSms != null">#{isSendSms},</if>
|
<if test="isSendSms != null">#{isSendSms},</if>
|
||||||
@ -91,6 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<update id="updateEmisProblemType" parameterType="EmisProblemType">
|
<update id="updateEmisProblemType" parameterType="EmisProblemType">
|
||||||
update emis_problem_type
|
update emis_problem_type
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="typeCode != null and typeCode != ''">type_code = #{typeCode},</if>
|
||||||
<if test="typeName != null and typeName != ''">type_name = #{typeName},</if>
|
<if test="typeName != null and typeName != ''">type_name = #{typeName},</if>
|
||||||
<if test="typeNameEn != null and typeNameEn != ''">type_name_en = #{typeNameEn},</if>
|
<if test="typeNameEn != null and typeNameEn != ''">type_name_en = #{typeNameEn},</if>
|
||||||
<if test="isSendSms != null">is_send_sms = #{isSendSms},</if>
|
<if test="isSendSms != null">is_send_sms = #{isSendSms},</if>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user