md
This commit is contained in:
parent
a01fb568fa
commit
1bfc1c4a75
@ -2,7 +2,7 @@
|
||||
* @Project: emis
|
||||
* @Title: EmisNotCalcAging.java
|
||||
* @author linfso
|
||||
* @date 2024-01-10 07:33:52
|
||||
* @date 2024-01-11 06:12:45
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 不计时效维护 实体类 </p>
|
||||
@ -25,7 +25,7 @@ import lombok.Data;
|
||||
* @ClassName EmisNotCalcAging
|
||||
* @Description 不计时效维护
|
||||
* @author linfso
|
||||
* @date 2024-01-10 07:33:52
|
||||
* @date 2024-01-11 06:12:45
|
||||
*/
|
||||
@Data
|
||||
public class EmisNotCalcAging extends BaseEntity
|
||||
@ -34,18 +34,11 @@ public class EmisNotCalcAging extends BaseEntity
|
||||
|
||||
/* 序号 */
|
||||
private Long id;
|
||||
/* 不计时效名称 */
|
||||
private String name;
|
||||
/* 英文名称 */
|
||||
private String nameEn;
|
||||
/* 所属国家,可能多个国家,逗号隔开 */
|
||||
private String country;
|
||||
/* 开始日期(含当日) */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date beginDate;
|
||||
/* 结束日期(含当日) */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date endDate;
|
||||
/* 不计时效日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date noCalcDay;
|
||||
/* 启用状态 0-启用 1-停用 */
|
||||
private Integer status;
|
||||
|
||||
|
||||
@ -6,11 +6,8 @@
|
||||
|
||||
<resultMap type="EmisNotCalcAging" id="EmisNotCalcAgingResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="nameEn" column="name_en" />
|
||||
<result property="country" column="country" />
|
||||
<result property="beginDate" column="begin_date" />
|
||||
<result property="endDate" column="end_date" />
|
||||
<result property="noCalcDay" column="no_calc_day" />
|
||||
<result property="status" column="status" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="tenantId" column="tenant_id" />
|
||||
@ -22,18 +19,15 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisNotCalcAgingVo">
|
||||
select id, name, name_en, country, begin_date, end_date, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_not_calc_aging
|
||||
select id, country, no_calc_day, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_not_calc_aging
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisNotCalcAgingList" parameterType="EmisNotCalcAging" resultMap="EmisNotCalcAgingResult">
|
||||
<include refid="selectEmisNotCalcAgingVo"/>
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="nameEn != null and nameEn != ''"> and name_en like concat('%', #{nameEn}, '%')</if>
|
||||
<if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if>
|
||||
<if test="beginDate != null "> and begin_date = #{beginDate}</if>
|
||||
<if test="endDate != null "> and end_date = #{endDate}</if>
|
||||
<if test="noCalcDay != null "> and no_calc_day = #{noCalcDay}</if>
|
||||
<if test="status != null "> and status = #{status}</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>
|
||||
@ -47,7 +41,7 @@
|
||||
</select>
|
||||
|
||||
<select id="selectEmisNotCalcAgingById" parameterType="Long" resultMap="EmisNotCalcAgingResult">
|
||||
select id, name, name_en, country, begin_date, end_date, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||
select id, country, no_calc_day, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||
from emis_not_calc_aging a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
@ -56,11 +50,8 @@
|
||||
insert into emis_not_calc_aging
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="nameEn != null and nameEn != ''">name_en,</if>
|
||||
<if test="country != null and country != ''">country,</if>
|
||||
<if test="beginDate != null">begin_date,</if>
|
||||
<if test="endDate != null">end_date,</if>
|
||||
<if test="noCalcDay != null">no_calc_day,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
|
||||
@ -72,11 +63,8 @@
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="nameEn != null and nameEn != ''">#{nameEn},</if>
|
||||
<if test="country != null and country != ''">#{country},</if>
|
||||
<if test="beginDate != null">#{beginDate},</if>
|
||||
<if test="endDate != null">#{endDate},</if>
|
||||
<if test="noCalcDay != null">#{noCalcDay},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
|
||||
@ -91,11 +79,8 @@
|
||||
<update id="updateEmisNotCalcAging" parameterType="EmisNotCalcAging">
|
||||
update emis_not_calc_aging
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="nameEn != null and nameEn != ''">name_en = #{nameEn},</if>
|
||||
<if test="country != null and country != ''">country = #{country},</if>
|
||||
<if test="beginDate != null">begin_date = #{beginDate},</if>
|
||||
<if test="endDate != null">end_date = #{endDate},</if>
|
||||
<if test="noCalcDay != null">no_calc_day = #{noCalcDay},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user