This commit is contained in:
linfso 2024-04-17 17:34:32 +08:00
parent a8019aca9d
commit 31556421fd
2 changed files with 11 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* @Project: emis * @Project: emis
* @Title: EmisGoods.java * @Title: EmisGoods.java
* @author linfso * @author linfso
* @date 2024-04-17 07:45:04 * @date 2024-04-17 09:33:39
* @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>
@ -26,7 +26,7 @@ import lombok.Data;
* @ClassName EmisGoods * @ClassName EmisGoods
* @Description 货物信息 * @Description 货物信息
* @author linfso * @author linfso
* @date 2024-04-17 07:45:04 * @date 2024-04-17 09:33:39
*/ */
@Data @Data
public class EmisGoods extends BaseEntity public class EmisGoods extends BaseEntity
@ -139,5 +139,7 @@ public class EmisGoods extends BaseEntity
private String saleUrl; private String saleUrl;
/* 口岸编码 */ /* 口岸编码 */
private String portCode; private String portCode;
/* 排序 */
private Integer orderNum;
} }

View File

@ -58,6 +58,7 @@
<result property="pd" column="pd" /> <result property="pd" column="pd" />
<result property="saleUrl" column="sale_url" /> <result property="saleUrl" column="sale_url" />
<result property="portCode" column="port_code" /> <result property="portCode" column="port_code" />
<result property="orderNum" column="order_num" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="tenantId" column="tenant_id" /> <result property="tenantId" column="tenant_id" />
<result property="delFlag" column="del_flag" /> <result property="delFlag" column="del_flag" />
@ -68,7 +69,7 @@
</resultMap> </resultMap>
<sql id="selectEmisGoodsVo"> <sql id="selectEmisGoodsVo">
select id, goods_sn, goods_name, goods_name_en, goods_cat, goods_type, goods_model, barcode, orginal_nation, pic_url, owner_id, is_real_goods, is_big_cat, brand_id, brand, net_weight, gross_weight, single_volume, single_length, single_width, single_height, pkg_pcs, pkg_volume, pkg_length, pkg_width, pkg_height, hs_code, is_code, unit, unit1, unit2, price, currency_type, rule_nation, manuf_enterprise, ebc_code, ciq_code, function, ingredients, purpose, product_validity, cebp_mode, supplier, serial_number, status, status_message, goods_sn2, goods_no2, lic_no, material_path, pd, sale_url, port_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_goods select id, goods_sn, goods_name, goods_name_en, goods_cat, goods_type, goods_model, barcode, orginal_nation, pic_url, owner_id, is_real_goods, is_big_cat, brand_id, brand, net_weight, gross_weight, single_volume, single_length, single_width, single_height, pkg_pcs, pkg_volume, pkg_length, pkg_width, pkg_height, hs_code, is_code, unit, unit1, unit2, price, currency_type, rule_nation, manuf_enterprise, ebc_code, ciq_code, function, ingredients, purpose, product_validity, cebp_mode, supplier, serial_number, status, status_message, goods_sn2, goods_no2, lic_no, material_path, pd, sale_url, port_code, order_num, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_goods
</sql> </sql>
<select id="selectEmisGoodsList" parameterType="EmisGoods" resultMap="EmisGoodsResult"> <select id="selectEmisGoodsList" parameterType="EmisGoods" resultMap="EmisGoodsResult">
@ -127,6 +128,7 @@
<if test="pd != null and pd != ''"> and pd like concat('%', #{pd}, '%')</if> <if test="pd != null and pd != ''"> and pd like concat('%', #{pd}, '%')</if>
<if test="saleUrl != null and saleUrl != ''"> and sale_url like concat('%', #{saleUrl}, '%')</if> <if test="saleUrl != null and saleUrl != ''"> and sale_url like concat('%', #{saleUrl}, '%')</if>
<if test="portCode != null and portCode != ''"> and port_code like concat('%', #{portCode}, '%')</if> <if test="portCode != null and portCode != ''"> and port_code like concat('%', #{portCode}, '%')</if>
<if test="orderNum != null "> and order_num = #{orderNum}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</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="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if> <if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
@ -139,7 +141,7 @@
</select> </select>
<select id="selectEmisGoodsById" parameterType="Long" resultMap="EmisGoodsResult"> <select id="selectEmisGoodsById" parameterType="Long" resultMap="EmisGoodsResult">
select id, goods_sn, goods_name, goods_name_en, goods_cat, goods_type, goods_model, barcode, orginal_nation, pic_url, owner_id, is_real_goods, is_big_cat, brand_id, brand, net_weight, gross_weight, single_volume, single_length, single_width, single_height, pkg_pcs, pkg_volume, pkg_length, pkg_width, pkg_height, hs_code, is_code, unit, unit1, unit2, price, currency_type, rule_nation, manuf_enterprise, ebc_code, ciq_code, function, ingredients, purpose, product_validity, cebp_mode, supplier, serial_number, status, status_message, goods_sn2, goods_no2, lic_no, material_path, pd, sale_url, port_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time select id, goods_sn, goods_name, goods_name_en, goods_cat, goods_type, goods_model, barcode, orginal_nation, pic_url, owner_id, is_real_goods, is_big_cat, brand_id, brand, net_weight, gross_weight, single_volume, single_length, single_width, single_height, pkg_pcs, pkg_volume, pkg_length, pkg_width, pkg_height, hs_code, is_code, unit, unit1, unit2, price, currency_type, rule_nation, manuf_enterprise, ebc_code, ciq_code, function, ingredients, purpose, product_validity, cebp_mode, supplier, serial_number, status, status_message, goods_sn2, goods_no2, lic_no, material_path, pd, sale_url, port_code, order_num, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
from emis_goods a from emis_goods a
where a.id = #{id} where a.id = #{id}
</select> </select>
@ -200,6 +202,7 @@
<if test="pd != null and pd != ''">pd,</if> <if test="pd != null and pd != ''">pd,</if>
<if test="saleUrl != null and saleUrl != ''">sale_url,</if> <if test="saleUrl != null and saleUrl != ''">sale_url,</if>
<if test="portCode != null and portCode != ''">port_code,</if> <if test="portCode != null and portCode != ''">port_code,</if>
<if test="orderNum != null">order_num,</if>
<if test="remark != null and remark != ''">remark,</if> <if test="remark != null and remark != ''">remark,</if>
<if test="tenantId != null and tenantId != ''">tenant_id,</if> <if test="tenantId != null and tenantId != ''">tenant_id,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if> <if test="delFlag != null and delFlag != ''">del_flag,</if>
@ -262,6 +265,7 @@
<if test="pd != null and pd != ''">#{pd},</if> <if test="pd != null and pd != ''">#{pd},</if>
<if test="saleUrl != null and saleUrl != ''">#{saleUrl},</if> <if test="saleUrl != null and saleUrl != ''">#{saleUrl},</if>
<if test="portCode != null and portCode != ''">#{portCode},</if> <if test="portCode != null and portCode != ''">#{portCode},</if>
<if test="orderNum != null">#{orderNum},</if>
<if test="remark != null and remark != ''">#{remark},</if> <if test="remark != null and remark != ''">#{remark},</if>
<if test="tenantId != null and tenantId != ''">#{tenantId},</if> <if test="tenantId != null and tenantId != ''">#{tenantId},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if> <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
@ -327,6 +331,7 @@
<if test="pd != null and pd != ''">pd = #{pd},</if> <if test="pd != null and pd != ''">pd = #{pd},</if>
<if test="saleUrl != null and saleUrl != ''">sale_url = #{saleUrl},</if> <if test="saleUrl != null and saleUrl != ''">sale_url = #{saleUrl},</if>
<if test="portCode != null and portCode != ''">port_code = #{portCode},</if> <if test="portCode != null and portCode != ''">port_code = #{portCode},</if>
<if test="orderNum != null">order_num = #{orderNum},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if> <if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if> <if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>