数据清洗字段修改

dev_drug_dm
yewj 4 weeks ago
parent 67e6fdacae
commit 3069528df8

@ -127,5 +127,15 @@ public class FilterUdiRelRequest extends ListPageRequest {
private String payFeeCode; private String payFeeCode;
private String keyWords; private String keyWords;
/**
* 01567
*/
private Integer notCodeType;
/**
* 01
*/
private Integer manuReview;
} }

@ -285,39 +285,33 @@ public class UdiRelevanceResponse {
public int getBhzxxsbzsl() { public int getBhzxxsbzsl() {
if (bhzxxsbzsl == null || bhzxxsbzsl == 0) { if (bhzxxsbzsl == null || bhzxxsbzsl == 0) {
return 1; return 1;
} else } else return bhzxxsbzsl;
return bhzxxsbzsl;
} }
public Boolean getAllowNoBatch() { public Boolean getAllowNoBatch() {
if (allowNoBatch == null) if (allowNoBatch == null) return false;
return false;
return allowNoBatch; return allowNoBatch;
} }
public Boolean getAllowNoExpire() { public Boolean getAllowNoExpire() {
if (allowNoExpire == null) if (allowNoExpire == null) return false;
return false;
return allowNoExpire; return allowNoExpire;
} }
public Boolean getAllowNoProduct() { public Boolean getAllowNoProduct() {
if (allowNoProduct == null) if (allowNoProduct == null) return false;
return false;
return allowNoProduct; return allowNoProduct;
} }
public Boolean getAllowNoSerial() { public Boolean getAllowNoSerial() {
if (allowNoSerial == null) if (allowNoSerial == null) return true;
return true;
return allowNoSerial; return allowNoSerial;
} }
public Boolean getUseDy() { public Boolean getUseDy() {
if (isUseDy == null) if (isUseDy == null) return false;
return false;
return isUseDy; return isUseDy;
} }
@ -337,4 +331,14 @@ public class UdiRelevanceResponse {
private String zczbhhzbapzbhSys; private String zczbhhzbapzbhSys;
/**
* 01567
*/
private Integer notCodeType;
/**
* 01
*/
private Integer manuReview;
} }

@ -411,8 +411,8 @@
<select id="filterUdiGp" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest" <select id="filterUdiGp" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
resultType="com.glxp.api.res.basic.UdiRelevanceResponse"> resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
select select IF((COUNT(DISTINCT IF(basic_products.bhltcjsl = 1, basic_products.bhsycjsl, 0)) - 1) > 1, '多种包装规格',
IF ( (COUNT(DISTINCT IF(basic_products.bhltcjsl = 1,basic_products.bhsycjsl,0))-1) > 1,'多种包装规格',basic_products.bzgg) AS bzgg, basic_products.bzgg) AS bzgg,
basic_udirel.*, basic_udirel.*,
bht.name classifyName, bht.name classifyName,
basic_products.originUuid, basic_products.originUuid,
@ -578,12 +578,16 @@
or thirdId3 LIKE concat('%', #{thrPiId}, '%') or thirdId3 LIKE concat('%', #{thrPiId}, '%')
or thirdId4 LIKE concat('%', #{thrPiId}, '%')) or thirdId4 LIKE concat('%', #{thrPiId}, '%'))
</if> </if>
<if test="uuid != '' and uuid != null"> <if test="notCodeType != '' and notCodeType != null">
AND basic_udirel.uuid = #{uuid} AND basic_udirel.notCodeType = #{notCodeType}
</if>
<if test="manuReview != '' and thirdId != null">
AND manuReview = #{manuReview}
</if> </if>
<if test="thirdId != '' and thirdId != null"> <if test="thirdId != '' and thirdId != null">
AND thirdId = #{thirdId} AND thirdId = #{thirdId}
</if> </if>
<if test="udplatCode != '' and udplatCode != null"> <if test="udplatCode != '' and udplatCode != null">
AND udplatCode = #{udplatCode} AND udplatCode = #{udplatCode}
</if> </if>
@ -612,7 +616,8 @@
) )
</if> </if>
<if test="filterType != null and filterType == 2 and productsType == 2"> <if test="filterType != null and filterType == 2 and productsType == 2">
AND ( (mainId = '' or mainId is null) or (basic_products.nameCode = '' or basic_products.nameCode is null) AND ((mainId = '' or mainId is null) or
(basic_products.nameCode = '' or basic_products.nameCode is null)
) )
</if> </if>
<if test="filterType != null and filterType == 3"> <if test="filterType != null and filterType == 3">
@ -983,7 +988,6 @@
</select> </select>
<select id="selectByThirdId" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest" <select id="selectByThirdId" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
resultType="com.glxp.api.entity.basic.UdiRelevanceEntity"> resultType="com.glxp.api.entity.basic.UdiRelevanceEntity">
select * select *

Loading…
Cancel
Save