数据清洗字段修改

dev_drug_dm
yewj 3 weeks ago
parent 67e6fdacae
commit 3069528df8

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

@ -285,39 +285,33 @@ public class UdiRelevanceResponse {
public int getBhzxxsbzsl() {
if (bhzxxsbzsl == null || bhzxxsbzsl == 0) {
return 1;
} else
return bhzxxsbzsl;
} else return bhzxxsbzsl;
}
public Boolean getAllowNoBatch() {
if (allowNoBatch == null)
return false;
if (allowNoBatch == null) return false;
return allowNoBatch;
}
public Boolean getAllowNoExpire() {
if (allowNoExpire == null)
return false;
if (allowNoExpire == null) return false;
return allowNoExpire;
}
public Boolean getAllowNoProduct() {
if (allowNoProduct == null)
return false;
if (allowNoProduct == null) return false;
return allowNoProduct;
}
public Boolean getAllowNoSerial() {
if (allowNoSerial == null)
return true;
if (allowNoSerial == null) return true;
return allowNoSerial;
}
public Boolean getUseDy() {
if (isUseDy == null)
return false;
if (isUseDy == null) return false;
return isUseDy;
}
@ -337,4 +331,14 @@ public class UdiRelevanceResponse {
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"
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
select
IF ( (COUNT(DISTINCT IF(basic_products.bhltcjsl = 1,basic_products.bhsycjsl,0))-1) > 1,'多种包装规格',basic_products.bzgg) AS bzgg,
select IF((COUNT(DISTINCT IF(basic_products.bhltcjsl = 1, basic_products.bhsycjsl, 0)) - 1) > 1, '多种包装规格',
basic_products.bzgg) AS bzgg,
basic_udirel.*,
bht.name classifyName,
basic_products.originUuid,
@ -578,12 +578,16 @@
or thirdId3 LIKE concat('%', #{thrPiId}, '%')
or thirdId4 LIKE concat('%', #{thrPiId}, '%'))
</if>
<if test="uuid != '' and uuid != null">
AND basic_udirel.uuid = #{uuid}
<if test="notCodeType != '' and notCodeType != null">
AND basic_udirel.notCodeType = #{notCodeType}
</if>
<if test="manuReview != '' and thirdId != null">
AND manuReview = #{manuReview}
</if>
<if test="thirdId != '' and thirdId != null">
AND thirdId = #{thirdId}
</if>
<if test="udplatCode != '' and udplatCode != null">
AND udplatCode = #{udplatCode}
</if>
@ -612,7 +616,8 @@
)
</if>
<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 test="filterType != null and filterType == 3">
@ -854,7 +859,7 @@
AND basic_products.tyshxydm = #{tyshxydm}
</if>
</where>
GROUP BY cpmctymc, manufactory,zczbhhzbapzbh
GROUP BY cpmctymc, manufactory, zczbhhzbapzbh
</select>
@ -983,7 +988,6 @@
</select>
<select id="selectByThirdId" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
resultType="com.glxp.api.entity.basic.UdiRelevanceEntity">
select *
@ -1061,7 +1065,7 @@
groupBuy, needCert, isStack,
distributeLevelCount, useLevel,
distributeLevel,
splitEnable, autoCode, distributeMaxLevel, useMaxLevel,unpackUseTime,detailSort)
splitEnable, autoCode, distributeMaxLevel, useMaxLevel, unpackUseTime, detailSort)
values (#{id},
#{uuid},
#{mainId},
@ -1097,7 +1101,7 @@
#{useLevel},
#{distributeLevel},
#{splitEnable},
#{autoCode}, #{distributeMaxLevel}, #{useMaxLevel}, #{unpackUseTime},#{detailSort})
#{autoCode}, #{distributeMaxLevel}, #{useMaxLevel}, #{unpackUseTime}, #{detailSort})
</insert>

Loading…
Cancel
Save