代码备份

dev_test1.0
anthonywj 1 year ago
parent cae7b2848d
commit e5ddbd2fd2

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

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

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

Loading…
Cancel
Save