md
This commit is contained in:
parent
4814862ee2
commit
35c44d45e6
@ -2,7 +2,7 @@
|
||||
* @Project: emis
|
||||
* @Title: EmisProblemType.java
|
||||
* @author linfso
|
||||
* @date 2024-01-11 07:58:44
|
||||
* @date 2024-05-22 21:59:29
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 问题件类型 实体类 </p>
|
||||
@ -17,6 +17,7 @@ import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
@ -25,7 +26,7 @@ import lombok.Data;
|
||||
* @ClassName EmisProblemType
|
||||
* @Description 问题件类型
|
||||
* @author linfso
|
||||
* @date 2024-01-11 07:58:44
|
||||
* @date 2024-05-22 21:59:29
|
||||
*/
|
||||
@Data
|
||||
public class EmisProblemType extends BaseEntity
|
||||
@ -48,5 +49,7 @@ public class EmisProblemType extends BaseEntity
|
||||
private Integer delayDay;
|
||||
/* 启用状态 0-启用 1-停用 */
|
||||
private Integer status;
|
||||
/* 显示顺序 */
|
||||
private Integer orderNum;
|
||||
|
||||
}
|
||||
|
||||
@ -13,6 +13,7 @@
|
||||
<result property="objectType" column="object_type" />
|
||||
<result property="delayDay" column="delay_day" />
|
||||
<result property="status" column="status" />
|
||||
<result property="orderNum" column="order_num" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="tenantId" column="tenant_id" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
@ -23,12 +24,13 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisProblemTypeVo">
|
||||
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
|
||||
select id, type_code, type_name, type_name_en, is_send_sms, object_type, delay_day, status, order_num, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_problem_type
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisProblemTypeList" parameterType="EmisProblemType" resultMap="EmisProblemTypeResult">
|
||||
<include refid="selectEmisProblemTypeVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<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>
|
||||
@ -37,6 +39,7 @@
|
||||
<if test="objectType != null and objectType != ''"> and object_type like concat('%', #{objectType}, '%')</if>
|
||||
<if test="delayDay != null "> and delay_day = #{delayDay}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
@ -48,13 +51,35 @@
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="checkUnique" parameterType="EmisProblemType" resultType="int">
|
||||
select count(1) from emis_problem_type
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and type_code = #{typeCode}
|
||||
and type_name = #{typeName}
|
||||
and type_name_en = #{typeNameEn}
|
||||
and is_send_sms = #{isSendSms}
|
||||
and object_type = #{objectType}
|
||||
and delay_day = #{delayDay}
|
||||
and status = #{status}
|
||||
and order_num = #{orderNum}
|
||||
and remark = #{remark}
|
||||
and tenant_id = #{tenantId}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisProblemTypeById" parameterType="Long" resultMap="EmisProblemTypeResult">
|
||||
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
|
||||
select id, type_code, type_name, type_name_en, is_send_sms, object_type, delay_day, status, order_num, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||
from emis_problem_type a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisProblemType" parameterType="EmisProblemType">
|
||||
<insert id="insertEmisProblemType" parameterType="EmisProblemType" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_problem_type
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
@ -65,6 +90,7 @@
|
||||
<if test="objectType != null and objectType != ''">object_type,</if>
|
||||
<if test="delayDay != null">delay_day,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="orderNum != null">order_num,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
@ -82,6 +108,7 @@
|
||||
<if test="objectType != null and objectType != ''">#{objectType},</if>
|
||||
<if test="delayDay != null">#{delayDay},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="orderNum != null">#{orderNum},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
@ -102,6 +129,7 @@
|
||||
<if test="objectType != null and objectType != ''">object_type = #{objectType},</if>
|
||||
<if test="delayDay != null">delay_day = #{delayDay},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="orderNum != null">order_num = #{orderNum},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user