This commit is contained in:
linfso 2024-03-20 16:33:49 +08:00
parent 0ce1c608b5
commit 99e5377ada
2 changed files with 12 additions and 5 deletions

View File

@ -2,7 +2,7 @@
* @Project: emis
* @Title: EmisCountry.java
* @author linfso
* @date 2024-03-19 12:52:52
* @date 2024-03-20 08:33:37
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 国家 实体类 </p>
@ -26,7 +26,7 @@ import lombok.Data;
* @ClassName EmisCountry
* @Description 国家
* @author linfso
* @date 2024-03-19 12:52:52
* @date 2024-03-20 08:33:37
*/
@Data
public class EmisCountry extends BaseEntity
@ -41,6 +41,8 @@ public class EmisCountry extends BaseEntity
private String nameEn;
/* 国家代码 */
private String code;
/* 电话区号代码 */
private String telAreaCode;
/* 所属洲id */
private Integer continentId;
/* 显示顺序 */

View File

@ -9,6 +9,7 @@
<result property="name" column="name" />
<result property="nameEn" column="name_en" />
<result property="code" column="code" />
<result property="telAreaCode" column="tel_area_code" />
<result property="continentId" column="continent_id" />
<result property="orderNum" column="order_num" />
<result property="twoCode" column="two_code" />
@ -23,7 +24,7 @@
</resultMap>
<sql id="selectEmisCountryVo">
select id, name, name_en, code, continent_id, order_num, two_code, three_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_country
select id, name, name_en, code, tel_area_code, continent_id, order_num, two_code, three_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_country
</sql>
<select id="selectEmisCountryList" parameterType="EmisCountry" resultMap="EmisCountryResult">
@ -33,6 +34,7 @@
<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="code != null and code != ''"> and code like concat('%', #{code}, '%')</if>
<if test="telAreaCode != null and telAreaCode != ''"> and tel_area_code like concat('%', #{telAreaCode}, '%')</if>
<if test="continentId != null "> and continent_id = #{continentId}</if>
<if test="orderNum != null "> and order_num = #{orderNum}</if>
<if test="twoCode != null and twoCode != ''"> and two_code like concat('%', #{twoCode}, '%')</if>
@ -45,11 +47,11 @@
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
</where>
order by order_num desc
order by create_time desc
</select>
<select id="selectEmisCountryById" parameterType="Integer" resultMap="EmisCountryResult">
select id, name, name_en, code, continent_id, order_num, two_code, three_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
select id, name, name_en, code, tel_area_code, continent_id, order_num, two_code, three_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
from emis_country a
where a.id = #{id}
</select>
@ -61,6 +63,7 @@
<if test="name != null and name != ''">name,</if>
<if test="nameEn != null and nameEn != ''">name_en,</if>
<if test="code != null and code != ''">code,</if>
<if test="telAreaCode != null and telAreaCode != ''">tel_area_code,</if>
<if test="continentId != null">continent_id,</if>
<if test="orderNum != null">order_num,</if>
<if test="twoCode != null and twoCode != ''">two_code,</if>
@ -78,6 +81,7 @@
<if test="name != null and name != ''">#{name},</if>
<if test="nameEn != null and nameEn != ''">#{nameEn},</if>
<if test="code != null and code != ''">#{code},</if>
<if test="telAreaCode != null and telAreaCode != ''">#{telAreaCode},</if>
<if test="continentId != null">#{continentId},</if>
<if test="orderNum != null">#{orderNum},</if>
<if test="twoCode != null and twoCode != ''">#{twoCode},</if>
@ -98,6 +102,7 @@
<if test="name != null and name != ''">name = #{name},</if>
<if test="nameEn != null and nameEn != ''">name_en = #{nameEn},</if>
<if test="code != null and code != ''">code = #{code},</if>
<if test="telAreaCode != null and telAreaCode != ''">tel_area_code = #{telAreaCode},</if>
<if test="continentId != null">continent_id = #{continentId},</if>
<if test="orderNum != null">order_num = #{orderNum},</if>
<if test="twoCode != null and twoCode != ''">two_code = #{twoCode},</if>