修改 admin设置产品为可集采状态,供应商 入院物资没同步更新

pro
wangwei 2 years ago
parent 82c73f6eb3
commit 035c05c4f5

@ -662,6 +662,10 @@ public class UdiRelevanceController extends BaseController {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
boolean falg = udiProductService.updateUdiInfoById(udiProductEntity);
UdiRelevanceEntity udiRelevanceEntity = new UdiRelevanceEntity();
udiRelevanceEntity.setId(udiProductEntity.getUid());
udiRelevanceEntity.setGroupBuy(udiProductEntity.isGroupBuy());
boolean b = udiRelevanceService.updateUdiRelevance(udiRelevanceEntity);
if (udiProductEntity.getRelSupId() != null) {
UdiRlSupEntity udiRlSupEntity = new UdiRlSupEntity();
udiRlSupEntity.setUpdateTime(new Date());

@ -690,11 +690,11 @@ public class IoCodeTempController extends BaseController {
}
if (bussinessTypeEntity.getVailGroupBuy() == 1 && !udiRelevanceResponse.isGroupBuy()) { //只采集集采产品
return ResultVOUtils.error(500, bussinessTypeEntity.getName() + "只允许录入集采产品!");
return ResultVOUtils.error(500, bussinessTypeEntity.getName() + "只允许录入集采产品!");
}
if (bussinessTypeEntity.getVailGroupBuy() == 2 && udiRelevanceResponse.isGroupBuy()) { //只采集非集采产品
return ResultVOUtils.error(500, bussinessTypeEntity.getName() + "只允许录入非集采产品!");
return ResultVOUtils.error(500, bussinessTypeEntity.getName() + "只允许录入非集采产品!");
}
//计算实际数量

@ -87,6 +87,8 @@ public class UdiProductEntity {
private boolean groupBuy;
private Long uid;
public Boolean getAllowNoBatch() {
if (allowNoBatch == null)

@ -94,4 +94,6 @@ public class UdiRlSupResponse {
private String classifyName;
private boolean groupBuy; //是否集采产品
private Long uid;
}

@ -793,9 +793,6 @@
<if test="updateTime != null">
updateTime=#{updateTime},
</if>
<if test="groupBuy != null">
groupBuy=#{groupBuy},
</if>
</trim>
where id = #{id}
</update>

@ -105,7 +105,8 @@
basic_products.basicPrductRemak6,
basic_products.basicPrductRemak7,
basic_products.basicPrductRemak8,
-- basic_products.groupBuy,
basic_udirel.groupBuy,
basic_udirel.id as uid,
basic_corp.name companyName
FROM company_product_relevance
inner JOIN basic_udirel

Loading…
Cancel
Save