代码备份

dev_test1.0
anthonywj 1 year ago
parent cae7b2848d
commit e5ddbd2fd2

@ -18,7 +18,7 @@ import java.util.Date;
*/ */
@Data @Data
@TableName("thr_products") @TableName("thr_products")
public class ThrProductsEntity{ public class ThrProductsEntity {
@TableId(value = "id", type = IdType.INPUT) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
@ -180,6 +180,4 @@ public class ThrProductsEntity{
private String updateUser; private String updateUser;
} }

@ -1,6 +1,7 @@
package com.glxp.api.req.thrsys; package com.glxp.api.req.thrsys;
import com.baomidou.mybatisplus.annotation.TableField;
import com.glxp.api.entity.thrsys.ThrProductsEntity; import com.glxp.api.entity.thrsys.ThrProductsEntity;
import com.glxp.api.util.page.ListPageRequest; import com.glxp.api.util.page.ListPageRequest;
import lombok.Data; import lombok.Data;
@ -25,7 +26,20 @@ public class FilterThrProductsRequest extends ListPageRequest {
private String companyName; private String companyName;
private Boolean isDownThrSys; private Boolean isDownThrSys;
private Integer status; private Integer status;
/**
* 1:23
*/
private Integer purType;
/**
* 0:1)23.
*/
private Integer attributeType;
/**
* 12.
*/
private Integer hcType;
private List<String> codes; private List<String> codes;
private Integer checkStatus; private Integer checkStatus;

@ -76,23 +76,21 @@
AND spec = #{spec} AND spec = #{spec}
</if> </if>
<if test="unionCode != '' and unionCode != null"> <if test="unionCode != '' and unionCode != null">
or code LIKE = #{unionCode} or code LIKE #{unionCode}
or sptm = #{unionCode} or sptm LIKE #{unionCode}
or ybbm LIKE or ybbm LIKE #{unionCode}
= #{unionCode}
</if> </if>
<if test="thirdSysFk != '' and thirdSysFk != null"> <if test="thirdSysFk != '' and thirdSysFk != null">
AND thirdSysFk = #{thirdSysFk} AND thirdSysFk = #{thirdSysFk}
</if> </if>
<if test="thirdSys != '' and thirdSys != null">
AND thirdSys = #{thirdSys}
</if>
<if test="supName != '' and supName != null"> <if test="supName != '' and supName != null">
AND supName LIKE = #{supName} AND supName LIKE #{supName}
</if> </if>
<if test="lastUpdateTime != null and lastUpdateTime != ''"> <if test="lastUpdateTime != null and lastUpdateTime != ''">
<![CDATA[ <![CDATA[
and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S') and DATE_FORMAT(updateTime
, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}
, '%Y-%m-%d %H:%i:%S')
]]> ]]>
</if> </if>
</where> </where>
@ -166,12 +164,13 @@
<insert id="insertThrProducts" keyProperty="id" <insert id="insertThrProducts" keyProperty="id"
parameterType="com.glxp.api.entity.thrsys.ThrProductsEntity"> parameterType="com.glxp.api.entity.thrsys.ThrProductsEntity">
replace replace
INTO thr_products INTO thr_products
(id,code, `name`, measname, spec, registerNo, manufactory, (id, code, `name`, measname, spec, registerNo, manufactory,
cplb, flbm, qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms, cplb, flbm, qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms,
thirdSysFk, updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2, remark3, price, thirdSysFk, updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2, remark3,
createUser, createTime, updateUser) price,
values ( #{id}, createUser, createTime, updateUser)
values (#{id},
#{code}, #{code},
#{name}, #{name},
#{measname}, #{measname},
@ -349,12 +348,11 @@
<select id="filterThrProductsByMainId" resultType="com.glxp.api.entity.thrsys.ThrProductsEntity"> <select id="filterThrProductsByMainId" resultType="com.glxp.api.entity.thrsys.ThrProductsEntity">
SELECT * SELECT *
FROM thr_products FROM thr_products
LEFT JOIN basic_udirel ON thr_products.id = basic_udirel.mainId LEFT JOIN basic_udirel ON thr_products.id = basic_udirel.mainId
<where> <where>
<if test="relId != '' and relId != null"> <if test="relId != '' and relId != null">
AND basic_udirel.id = #{relId} AND basic_udirel.id = #{relId}
</if> </if>
</where> </where>
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save