8/12 药品字段

dev_unify
wangwei 8 months ago
parent 15b093a2df
commit 4316419c00

@ -321,6 +321,7 @@ public class UdiRlSupController extends BaseController {
udiRelevanceEntity.setId(Long.parseLong(rlidStr));
udiRelevanceEntity.setLockStatus(1);
udiRelevanceEntity.setProductsType(2);
udiRelevanceEntity.setUpdateTime(new Date());
udiRelevanceService.updateUdiRelevance(udiRelevanceEntity);
UdiProductEntity udiProductEntity = new UdiProductEntity();
udiProductEntity.setProductsType(2);

@ -786,7 +786,8 @@ public class IoCodeTempController extends BaseController {
if (unitFk == null)
return ResultVOUtils.error(500, "耗材字典不存在此产品!");
else
return ResultVOUtils.error(500, "当前供应商不存在此配送产品!");
return ResultVOUtils.error(500, "83720660090080653605" +
"");
}
//校验供应商是否配送此产品

@ -179,4 +179,11 @@ public class IoOrderDetailCodeResponse {
//金额
private BigDecimal amount;
private String bzgg;
private String packUnit;
private String prepnSpec;
private String prepnUnit;
}

@ -280,6 +280,7 @@ public class UdiProductServiceImpl implements UdiProductService {
udiRelevanceEntity.setHcType(addProductRequest.getHcType());
udiRelevanceEntity.setPayFeeCode(addProductRequest.getPayFeeCode());
if (CollUtil.isNotEmpty(addProductRequest.getDrugLevelLists())) {
for (UpdateLevelDrugRequest updateLevelDrugRequest : addProductRequest.getDrugLevelLists()) {
UdiProductEntity udiProductEntity1 = udiProductDao.findByNameCode(updateLevelDrugRequest.getNameCode());
@ -301,6 +302,8 @@ public class UdiProductServiceImpl implements UdiProductService {
udiProductEntity.setZczbhhzbapzbh(addProductRequest.getRegisterNo());
udiProductEntity.setPackLevel(updateLevelDrugRequest.getPackLevel() + "");
udiProductEntity.setUuid(udiProductEntity.getUuid());
//药品扫码 过滤 三期
udiProductEntity.setAllowNoSerial(true);
if (IntUtil.value(udiProductEntity.getPackLevel()) == 1 || addProductRequest.getDrugLevelLists().size() == 1) {
udiProductEntity.setDiType(1);
if (IntUtil.value(udiProductEntity.getPackLevel()) == 1) {

@ -191,13 +191,17 @@
basicPrductRemak3, basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7,
basicPrductRemak8, updateTime
, sfwblztlcp, cgzmraqxgxx, sfbjwycxsy, zdcfsycs, sfwwjbz, syqsfxyjxmj, mjfs, categoryName,
pinyinInitial,
updateUser,
createTime,
createUser,
catalogname1,
catalogname2,
catalogname3,
matrial,
catalogCode1,
catalogCode2,
catalogCode3)
destinyType,
productsType,prepnUnit,prepnSpec,storageCondition,transportCondition,indate,packMatrial,majorType,majorStatus,physicType,medicareType,bzgg,
requireScanCode)
values (#{id}, #{uuid},
#{originUuid},
#{nameCode},
@ -250,14 +254,28 @@
#{basicPrductRemak7},
#{basicPrductRemak8}, #{updateTime}
, #{sfwblztlcp}, #{cgzmraqxgxx}, #{sfbjwycxsy}, #{zdcfsycs}, #{sfwwjbz}, #{syqsfxyjxmj}, #{mjfs},
#{categoryName},
#{categoryName}, #{pinyinInitial},
#{updateUser},
#{createTime},
#{createUser},
#{catalogname1},
#{catalogname2},
#{catalogname3},
#{matrial},
#{catalogCode1},
#{catalogCode2},
#{catalogCode3})
#{destinyType},
#{productsType},
#{prepnUnit},
#{prepnSpec},
#{storageCondition},
#{transportCondition},
#{indate},
#{packMatrial},
#{majorType},
#{majorStatus},
#{physicType},
#{medicareType},
#{bzgg},
#{requireScanCode})
</insert>
<insert id="insertUdiInfos" parameterType="java.util.List">

@ -132,9 +132,6 @@
<if test="code != null and code != ''">
AND ic.code = #{code}
</if>
<if test="productType != null and productType != ''">
AND bp.productsType = #{productType}
</if>
<if test="orderId != null and orderId != ''">
AND ic.orderId like concat('%', #{orderId}, '%')
</if>

@ -42,9 +42,6 @@
<if test="relId != null">
AND bindRlFk = #{relId}
</if>
<if test="productType != null">
AND bp.productsType = #{productType}
</if>
<if test="batchNo != null and batchNo != ''">
AND batchNo = #{batchNo}
</if>

@ -3,6 +3,10 @@
<mapper namespace="com.glxp.api.dao.inout.IoOrderDetailCodeDao">
<select id="filterList" resultType="com.glxp.api.res.inout.IoOrderDetailCodeResponse">
select io_order_detail_code.*,
bp.bzgg,
bp.prepnUnit,
bp.prepnSpec,
bp.packUnit,
(select `name` from basic_corp where erpId = io_order_detail_code.supId) supName
from io_order_detail_code
left join basic_udirel bu on bu.id = io_order_detail_code.bindRlFk
@ -45,9 +49,6 @@
<if test="orderIdFk != null and orderIdFk != ''">
AND orderIdFk = #{orderIdFk}
</if>
<if test="productType != null">
AND bp.productsType = #{productType}
</if>
<if test="orderIdFk != null and orderIdFk != ''">
AND orderIdFk = #{orderIdFk}
</if>

@ -972,3 +972,6 @@ CALL Pro_Temp_ColumnWork('thr_products_add_di', 'productType',
' tinyint NULL DEFAULT b''1'' COMMENT ''产品类型 1:耗材 2:药品''',
1);
CALL Pro_Temp_ColumnWork('basic_products', 'pinyinInitial', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('basic_products', 'destinyType',
' int(0) NULL DEFAULT NULL COMMENT''类型1定数包内部使用2项目、组套外部关联''',
1);

Loading…
Cancel
Save