10/21 优化1

dev_unify
wangwei 6 months ago
parent e3603c4e42
commit f2f90af9f0

@ -320,6 +320,7 @@ public class ThrProductsAddDiController {
udiProductEntity.setBasicPrductRemak6(thrProductsAddDiResponse.getBasicPrductRemak6()); udiProductEntity.setBasicPrductRemak6(thrProductsAddDiResponse.getBasicPrductRemak6());
udiProductEntity.setBasicPrductRemak7(thrProductsAddDiResponse.getBasicPrductRemak7()); udiProductEntity.setBasicPrductRemak7(thrProductsAddDiResponse.getBasicPrductRemak7());
udiProductEntity.setBasicPrductRemak8(thrProductsAddDiResponse.getBasicPrductRemak8()); udiProductEntity.setBasicPrductRemak8(thrProductsAddDiResponse.getBasicPrductRemak8());
udiProductEntity.setProductsType(thrProductsAddDiResponse.getProductsType());
// udiProductEntity.setGroupBuy(thrProductsAddDiResponse.getGroupBuy()); // udiProductEntity.setGroupBuy(thrProductsAddDiResponse.getGroupBuy());
udiProductEntity.setCatalogname1(thrProductsAddDiResponse.getCatalogname1()); udiProductEntity.setCatalogname1(thrProductsAddDiResponse.getCatalogname1());
udiProductEntity.setCatalogname2(thrProductsAddDiResponse.getCatalogname2()); udiProductEntity.setCatalogname2(thrProductsAddDiResponse.getCatalogname2());

@ -136,7 +136,7 @@ public class ThrProductsController {
if (null == thrProductsEntity) if (null == thrProductsEntity)
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL); return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);;
BeanUtil.copyProperties(thrProductsEntity, filterThrProductsRequest); BeanUtil.copyProperties(thrProductsEntity, filterThrProductsRequest);
List<ThrProductsEntity> thrProductsEntities = thrProductsService.filterThrProducts1(filterThrProductsRequest); List<ThrProductsEntity> thrProductsEntities = thrProductsService.filterThrProducts1(filterThrProductsRequest);
if (thrProductsEntities.size() == 0) { if (thrProductsEntities.size() == 0) {

@ -403,6 +403,12 @@ public class ThrProductsAddDiEntity {
@ApiModelProperty(value = "来源类型 1新增0选入") @ApiModelProperty(value = "来源类型 1新增0选入")
private Integer sourceType; private Integer sourceType;
/**
* 1:2:
*/
@TableField(value = "productsType")
private Integer productsType;
/** /**
* *
*/ */

@ -53,9 +53,8 @@ public class FilterThrProductsRequest extends ListPageRequest {
private String internalMaterialCode; private String internalMaterialCode;
/**
* private Integer productsType ;
*/ private Integer productType ;
private Integer productType = 1;
} }

@ -61,4 +61,6 @@ public class ThrProductsAddDiResponse extends ThrProductsAddDiEntity {
@TableField(value = "internalMaterialCode") @TableField(value = "internalMaterialCode")
@ApiModelProperty(value = "'内部物资编码'") @ApiModelProperty(value = "'内部物资编码'")
private String internalMaterialCode; private String internalMaterialCode;
private Integer productsType;
} }

@ -447,6 +447,7 @@ public class UdiProductServiceImpl implements UdiProductService {
entity.setBhxjsl(request.getMyBhxjsl()); entity.setBhxjsl(request.getMyBhxjsl());
entity.setDiType(request.getDiType()); entity.setDiType(request.getDiType());
entity.setXjdw(request.getXjdw()); entity.setXjdw(request.getXjdw());
entity.setUpdateTime(new Date());
} }
@Override @Override
@ -568,6 +569,7 @@ public class UdiProductServiceImpl implements UdiProductService {
} }
} }
udiProductEntity.setBhsycjsl(bhltsl); udiProductEntity.setBhsycjsl(bhltsl);
udiProductEntity.setUpdateTime(new Date());
} }
} }

@ -185,8 +185,8 @@
FROM thr_products_add_di tdi FROM thr_products_add_di tdi
left join basic_corp bc on tdi.customerId = bc.erpId left join basic_corp bc on tdi.customerId = bc.erpId
<where> <where>
<if test="productType != null"> <if test="productsType != null">
AND tdi.productType = #{productType} AND tdi.productsType = #{productsType}
</if> </if>
<if test="checkStatus != null"> <if test="checkStatus != null">
AND tdi.status = #{checkStatus} AND tdi.status = #{checkStatus}

@ -83,6 +83,9 @@
<if test="thirdSysFk != '' and thirdSysFk != null"> <if test="thirdSysFk != '' and thirdSysFk != null">
AND thirdSysFk = #{thirdSysFk} AND thirdSysFk = #{thirdSysFk}
</if> </if>
<if test="productType != '' and productType != null">
AND productType = #{productType}
</if>
<if test="supName != '' and supName != null"> <if test="supName != '' and supName != null">
AND supName LIKE #{supName} AND supName LIKE #{supName}
</if> </if>

@ -1017,6 +1017,11 @@ CALL Pro_Temp_ColumnWork('basic_bussiness_type', 'productType',
1); 1);
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'productsType',
' tinyint NULL DEFAULT NULL COMMENT ''产品类型; 1:器械 2:药品''',
1);
CALL Pro_Temp_ColumnWork('io_code_temp', 'drugLink', CALL Pro_Temp_ColumnWork('io_code_temp', 'drugLink',
' tinyint NULL DEFAULT b''0''COMMENT ''药品关联关系是否存在 0不存在 1存在''', ' tinyint NULL DEFAULT b''0''COMMENT ''药品关联关系是否存在 0不存在 1存在''',
1); 1);
Loading…
Cancel
Save