新增是否组套,出入库明细改造,

dev_ksck_axxyy
anthonywj 8 months ago
parent c3898425e6
commit b3006e5870

@ -217,7 +217,7 @@ public class BasicOrderPrintController {
for (IoCodeEntity obj : ioCodeEntityList) { for (IoCodeEntity obj : ioCodeEntityList) {
//查询业务表 //查询业务表
for (IoOrderDetailBizEntity ioObj : ioOrderDetailBizEntityList) { for (IoOrderDetailBizEntity ioObj : ioOrderDetailBizEntityList) {
if (StrUtil.trimToEmpty(ioObj.getBatchNo()).equals(StrUtil.trimToEmpty(obj.getBatchNo())) && ioObj.getBindRlFk().equals(obj.getRelId())) { if (StrUtil.nullToEmpty(ioObj.getBatchNo()).equals(StrUtil.nullToEmpty(obj.getBatchNo())) && ioObj.getBindRlFk().equals(obj.getRelId())) {
ioOrderDetailBizEntity = ioObj; ioOrderDetailBizEntity = ioObj;
break; break;
} }

@ -738,6 +738,7 @@ public class UdiRelevanceController extends BaseController {
udiRelevanceEntity.setPurType(udiProductEntity.getPurType()); udiRelevanceEntity.setPurType(udiProductEntity.getPurType());
udiRelevanceEntity.setAttributeType(udiProductEntity.getAttributeType()); udiRelevanceEntity.setAttributeType(udiProductEntity.getAttributeType());
udiRelevanceEntity.setHcType(udiProductEntity.getHcType()); udiRelevanceEntity.setHcType(udiProductEntity.getHcType());
udiRelevanceEntity.setIsStack(udiProductEntity.getIsStack());
udiRelevanceEntity.setUpdateTime(new Date()); udiRelevanceEntity.setUpdateTime(new Date());
boolean b = udiRelevanceService.updateUdiRelevance(udiRelevanceEntity); boolean b = udiRelevanceService.updateUdiRelevance(udiRelevanceEntity);
if (udiProductEntity.getRelSupId() != null) { if (udiProductEntity.getRelSupId() != null) {
@ -794,7 +795,7 @@ public class UdiRelevanceController extends BaseController {
BaseResponse<PageSimpleResponse<YbHcflEntityResponse>> ybHcflDetail = erpBasicClient.getYbHcflDetail(ybHcflDetailFilterRequest); BaseResponse<PageSimpleResponse<YbHcflEntityResponse>> ybHcflDetail = erpBasicClient.getYbHcflDetail(ybHcflDetailFilterRequest);
PageSimpleResponse<YbHcflEntityResponse> data = ybHcflDetail.getData(); PageSimpleResponse<YbHcflEntityResponse> data = ybHcflDetail.getData();
YbHcflEntityResponse entityResponse = new YbHcflEntityResponse(); YbHcflEntityResponse entityResponse = new YbHcflEntityResponse();
if (data.getList().size() > 0){ if (data.getList().size() > 0) {
entityResponse = data.getList().get(0); entityResponse = data.getList().get(0);
} }
return ResultVOUtils.success(entityResponse); return ResultVOUtils.success(entityResponse);

@ -204,7 +204,7 @@ public class ThrProductsAddDiController {
UdiRelevanceEntity udiRelevanceEntity = new UdiRelevanceEntity(); UdiRelevanceEntity udiRelevanceEntity = new UdiRelevanceEntity();
//更新产品信息 //更新产品信息
UdiProductEntity udiProductEntity = new UdiProductEntity(); UdiProductEntity udiProductEntity = new UdiProductEntity();
BeanUtil.copyProperties(thrProductsAddDiEntity,udiProductEntity); BeanUtil.copyProperties(thrProductsAddDiEntity, udiProductEntity);
udiProductEntity.setUuid(thrProductsAddDiEntity.getUuid()); udiProductEntity.setUuid(thrProductsAddDiEntity.getUuid());
udiProductEntity.setCpmctymc(thrProductsAddDiEntity.getName()); udiProductEntity.setCpmctymc(thrProductsAddDiEntity.getName());
udiProductEntity.setNameCode(thrProductsAddDiEntity.getCode()); udiProductEntity.setNameCode(thrProductsAddDiEntity.getCode());
@ -234,15 +234,15 @@ public class ThrProductsAddDiController {
udiProductEntity.setMatrial(thrProductsAddDiEntity.getMatrial()); udiProductEntity.setMatrial(thrProductsAddDiEntity.getMatrial());
udiProductEntity.setDiType(1); udiProductEntity.setDiType(1);
BeanUtil.copyProperties(udiProductEntity,udiRelevanceEntity); BeanUtil.copyProperties(udiProductEntity, udiRelevanceEntity);
udiRelevanceEntity.setGroupBuy(thrProductsAddDiEntity.getGroupBuy()); udiRelevanceEntity.setGroupBuy(thrProductsAddDiEntity.getGroupBuy());
udiRelevanceEntity.setPurType(thrProductsAddDiEntity.getPurType()); udiRelevanceEntity.setPurType(thrProductsAddDiEntity.getPurType());
udiRelevanceEntity.setAttributeType(thrProductsAddDiEntity.getAttributeType()); udiRelevanceEntity.setAttributeType(thrProductsAddDiEntity.getAttributeType());
udiRelevanceEntity.setHcType(thrProductsAddDiEntity.getHcType()); udiRelevanceEntity.setHcType(thrProductsAddDiEntity.getHcType());
udiRelevanceEntity.setId(udiRelIdFk); udiRelevanceEntity.setId(udiRelIdFk);
udiRelevanceEntity.setModifyTime(new Date()); udiRelevanceEntity.setModifyTime(new Date());
udiRelevanceEntity.setThirdId(udiProductEntity.getCode()); // udiRelevanceEntity.setThirdId(udiProductEntity.getCode());
udiRelevanceEntity.setMainId(udiProductEntity.getCode()); // udiRelevanceEntity.setMainId(udiProductEntity.getCode());
udiRelevanceEntity.setUpdateTime(new Date()); udiRelevanceEntity.setUpdateTime(new Date());
udiRelevanceEntity.setUuid(udiProductEntity.getUuid()); udiRelevanceEntity.setUuid(udiProductEntity.getUuid());
udiRelevanceEntity.setSupName(thrProductsAddDiEntity.getSupName()); udiRelevanceEntity.setSupName(thrProductsAddDiEntity.getSupName());
@ -277,19 +277,19 @@ public class ThrProductsAddDiController {
thrProductsAddDiEntity.setRemark(remark); thrProductsAddDiEntity.setRemark(remark);
thrProductsAddDiEntity.setStatus(status); thrProductsAddDiEntity.setStatus(status);
thrProductsAddDiService.updateDiProduct(thrProductsAddDiEntity); thrProductsAddDiService.updateDiProduct(thrProductsAddDiEntity);
}else { } else {
// ThrProductsEntity thrProductsEntity = new ThrProductsEntity(); // ThrProductsEntity thrProductsEntity = new ThrProductsEntity();
// BeanUtil.copyProperties(thrProductsAddDiEntity, thrProductsEntity); // BeanUtil.copyProperties(thrProductsAddDiEntity, thrProductsEntity);
// thrProductsService.insertThrProducts(thrProductsEntity); // thrProductsService.insertThrProducts(thrProductsEntity);
thrProductsAddDiEntity.setCode(gennerOrderUtils.getRelId() + "x"); thrProductsAddDiEntity.setCode(gennerOrderUtils.getRelId() + "x");
ThrSystemEntity basicThirdSysEntity = thrSystemService.selectMainThrSys(); ThrSystemEntity basicThirdSysEntity = thrSystemService.selectMainThrSys();
if (basicThirdSysEntity.getThirdId().equals(thrProductsAddDiEntity.getThirdSysFk())) if (basicThirdSysEntity.getThirdId().equals(thrProductsAddDiEntity.getThirdSysFk()))
if (!udiContrastService.isExit(null, thrProductsAddDiEntity.getCode(), null)) { if (!udiContrastService.isExit(null, thrProductsAddDiEntity.getCode(), null)) {
udiContrastService.createOnlyApply(thrProductsAddDiEntity); udiContrastService.createOnlyApply(thrProductsAddDiEntity);
thrProductsAddDiEntity.setStatus(4); thrProductsAddDiEntity.setStatus(4);
thrProductsAddDiService.updateById(thrProductsAddDiEntity); thrProductsAddDiService.updateById(thrProductsAddDiEntity);
} }
} }
} else { //选入DI信息审核通过 } else { //选入DI信息审核通过
//审核通过后追加到耗材字典中 //审核通过后追加到耗材字典中
UdiCombineRequest combineRequest = new UdiCombineRequest(); UdiCombineRequest combineRequest = new UdiCombineRequest();
@ -332,11 +332,11 @@ public class ThrProductsAddDiController {
String flbm = thrProductsAddDiResponse.getFlbm(); String flbm = thrProductsAddDiResponse.getFlbm();
//是否需要扫码 初始化 //是否需要扫码 初始化
if (StrUtil.isNotEmpty(flbm)){ if (StrUtil.isNotEmpty(flbm)) {
ClassifyCodeEntity classifyCodeEntity = classifyCodeDao.ClassifyByCode(flbm); ClassifyCodeEntity classifyCodeEntity = classifyCodeDao.ClassifyByCode(flbm);
if (classifyCodeEntity != null){ if (classifyCodeEntity != null) {
udiProductEntity.setRequireScanCode(1); udiProductEntity.setRequireScanCode(1);
}else { } else {
udiProductEntity.setRequireScanCode(0); udiProductEntity.setRequireScanCode(0);
} }
} }
@ -475,17 +475,17 @@ public class ThrProductsAddDiController {
public BaseResponse addThrAddProductsNew(@RequestBody ThrProductsAddDiEntity thrProductsAdddiEntity) { public BaseResponse addThrAddProductsNew(@RequestBody ThrProductsAddDiEntity thrProductsAdddiEntity) {
if (null == thrProductsAdddiEntity) if (null == thrProductsAdddiEntity)
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL); return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
String customerId = getCustomerId() + ""; String customerId = getCustomerId() + "";
String internalMaterialCode = thrProductsAddDiService.getInternalMaterialCode("10","66"); String internalMaterialCode = thrProductsAddDiService.getInternalMaterialCode("10", "66");
thrProductsAdddiEntity.setInternalMaterialCode(internalMaterialCode); thrProductsAdddiEntity.setInternalMaterialCode(internalMaterialCode);
thrProductsAdddiEntity.setCode(internalMaterialCode); thrProductsAdddiEntity.setCode(internalMaterialCode);
thrProductsAdddiEntity.setThirdSysFk("thirdId"); thrProductsAdddiEntity.setThirdSysFk("thirdId");
thrProductsAdddiEntity.setUuid(CustomUtil.getUUId()); thrProductsAdddiEntity.setUuid(CustomUtil.getUUId());
thrProductsAdddiEntity.setCreateTime(new Date()); thrProductsAdddiEntity.setCreateTime(new Date());
thrProductsAdddiEntity.setStatus(1); //未审核 thrProductsAdddiEntity.setStatus(1); //未审核
thrProductsAdddiEntity.setType(2); thrProductsAdddiEntity.setType(2);
thrProductsAdddiEntity.setCustomerId(Long.parseLong(customerId)); thrProductsAdddiEntity.setCustomerId(Long.parseLong(customerId));
thrProductsAddDiService.insertThrProducts(thrProductsAdddiEntity); thrProductsAddDiService.insertThrProducts(thrProductsAdddiEntity);
return ResultVOUtils.success(); return ResultVOUtils.success();
} }

@ -167,5 +167,5 @@ public class UdiProductEntity {
*/ */
private String bzgg; private String bzgg;
private Boolean isStack;
} }

@ -194,4 +194,10 @@ public class UdiRelevanceEntity {
@TableField(value = "newNeedUpload") @TableField(value = "newNeedUpload")
private Boolean newNeedUpload; private Boolean newNeedUpload;
/**
*
*/
@TableField(value = "isStack")
private Boolean isStack;
} }

@ -314,6 +314,9 @@ public class ThrProductsAddDiEntity {
@TableField(value = "hcType") @TableField(value = "hcType")
private Integer hcType; private Integer hcType;
@TableField(value = "isStack")
private Integer isStack;
/** /**
* 12 * 12
*/ */

@ -316,7 +316,6 @@ public class BussinessTypeSaveRequest {
*/ */
private Integer vailHcType; private Integer vailHcType;
/** /**
* 0:1:2: * 0:1:2:
*/ */

@ -63,7 +63,7 @@ public class CompanyProductRelevanceRequest extends ListPageRequest {
* 12. * 12.
*/ */
private Integer hcType; private Integer hcType;
private Boolean isStack;
private String corpId; private String corpId;
private String billType; private String billType;
private String manufactory; private String manufactory;
@ -91,7 +91,6 @@ public class CompanyProductRelevanceRequest extends ListPageRequest {
* 0:1:2: * 0:1:2:
*/ */
private Integer vailHcType; private Integer vailHcType;
/** /**
* 0:1:2: * 0:1:2:
*/ */

@ -59,7 +59,7 @@ public class FilterUdiInfoRequest extends ListPageRequest {
private Integer hcType; private Integer hcType;
private String corpId; private String corpId;
private String billType; private String billType;
private Boolean isStack;
private String ybbm; private String ybbm;
private String sptm; private String sptm;
private String unionFilterStr;//产品名称,规格,批文,生产厂家联合查询 private String unionFilterStr;//产品名称,规格,批文,生产厂家联合查询

@ -61,7 +61,7 @@ public class FilterUdiRelRequest extends ListPageRequest {
private Integer hcType; private Integer hcType;
private String corpId; private String corpId;
private String billType; private String billType;
private Boolean isStack;
private String ybbm; private String ybbm;
private String sptm; private String sptm;
private String unionFilterStr;//产品名称,规格,批文,生产厂家联合查询 private String unionFilterStr;//产品名称,规格,批文,生产厂家联合查询

@ -34,12 +34,12 @@ public class SupplementRequest {
*/ */
private Integer hcType; private Integer hcType;
private Boolean isStack;
/** /**
* ( * (
*/ */
@TableField(value = "catalogname1") @TableField(value = "catalogname1")
@ApiModelProperty(value="一级分类名称(学科,品名)") @ApiModelProperty(value = "一级分类名称(学科,品名)")
private String catalogname1; private String catalogname1;
/** /**

@ -47,7 +47,7 @@ public class UdiRelevanceRequest {
private String originUuid; private String originUuid;
private String price; private String price;
private String modifyTime; //修改时间 private String modifyTime; //修改时间
private Boolean isStack;
private Boolean useMuti; //是否多次使用 private Boolean useMuti; //是否多次使用
private Integer useNum; //最小包装单元可使用次数 private Integer useNum; //最小包装单元可使用次数
@ -56,7 +56,6 @@ public class UdiRelevanceRequest {
//是否集采产品 //是否集采产品
private Integer isDateBy; private Integer isDateBy;
private Boolean needCert; //是否需要资质材料 private Boolean needCert; //是否需要资质材料
private String certIdFk; private String certIdFk;

@ -45,7 +45,7 @@ public class UdiRelevanceSaveRequest {
private String createUser; private String createUser;
private String updateUser; private String updateUser;
private String remark; private String remark;
private Boolean isStack;
//UdiInfoEntity //UdiInfoEntity
private String originUuid; private String originUuid;
private String nameCode; private String nameCode;
@ -114,7 +114,6 @@ public class UdiRelevanceSaveRequest {
private Boolean groupBuy; //是否集采产品 private Boolean groupBuy; //是否集采产品
private Boolean needCert; //是否需要资质材料 private Boolean needCert; //是否需要资质材料
private String certIdFk; private String certIdFk;
/** /**
* ( * (
*/ */

@ -50,6 +50,10 @@ public class FilterOrderDetailResultRequest extends ListPageRequest {
private String templateId; private String templateId;
private String manufacturer; private String manufacturer;
private String zczbhhzbapzbh; private String zczbhhzbapzbh;
private String invCode;
private Boolean isStack;
private String invoiceEncode;
private List<String> actions; private List<String> actions;
private List<IoOrderDetailResultResponse> list; private List<IoOrderDetailResultResponse> list;
} }

@ -57,6 +57,6 @@ public class AddThrDiProductsExcelVo {
// private String hcType; // private String hcType;
// @ExcelProperty("收费码") // @ExcelProperty("收费码")
// private String basicPrductRemak1; // private String basicPrductRemak1;
private Boolean isStack;
} }

@ -61,7 +61,7 @@ public class AddThrDiProductsRequest {
*/ */
private Integer hcType; private Integer hcType;
private Boolean isStack;
/** /**
* ( * (

@ -40,7 +40,7 @@ public class FilterThrProductsRequest extends ListPageRequest {
* 12. * 12.
*/ */
private Integer hcType; private Integer hcType;
private Boolean isStack;
private List<String> codes; private List<String> codes;
private Integer checkStatus; private Integer checkStatus;
private String customerId; private String customerId;

@ -96,4 +96,6 @@ public class CompanyProductRelevanceResponse {
private String basicPrductRemak8; private String basicPrductRemak8;
private String cphhhbh; private String cphhhbh;
private Boolean isStack;
} }

@ -145,13 +145,14 @@ public class UdiRelevanceResponse {
*/ */
private Boolean newNeedUpload; private Boolean newNeedUpload;
private Boolean isStack;
/** /**
* ( * (
*/ */
@TableField(value = "catalogname1") @TableField(value = "catalogname1")
@ApiModelProperty(value="一级分类名称(学科,品名)") @ApiModelProperty(value = "一级分类名称(学科,品名)")
private String catalogname1; private String catalogname1;
/** /**
@ -182,7 +183,6 @@ public class UdiRelevanceResponse {
*/ */
private String bzgg; private String bzgg;
public int getBhzxxsbzsl() { public int getBhzxxsbzsl() {
if (bhzxxsbzsl == null || bhzxxsbzsl == 0) { if (bhzxxsbzsl == null || bhzxxsbzsl == 0) {
return 1; return 1;

@ -139,6 +139,6 @@ public class UdiRlSupResponse {
* 12. * 12.
*/ */
private Integer hcType; private Integer hcType;
private Boolean isStack;
private Integer requireScanCode; private Integer requireScanCode;
} }

@ -186,4 +186,7 @@ public class IoOrderDetailResultResponse {
private BigDecimal amount; private BigDecimal amount;
private String invoiceEncode;
} }

@ -109,7 +109,7 @@ public class UdiInfoResponse {
private String catalogname3; private String catalogname3;
private String matrial; private String matrial;
private Boolean isStack;
public Integer getId() { public Integer getId() {
return id; return id;

@ -3,7 +3,7 @@ server:
spring: spring:
datasource: datasource:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver driver-class-name: com.p6spy.engine.spy.P6SpyDriver
jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_spms_ct?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_spms_pt2?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root username: root
password: 123456 password: 123456
hikari: hikari:

@ -979,7 +979,7 @@
updateTime, modifyTime, updateTime, modifyTime,
createUser, createUser,
updateUser, updateUser,
remark, useExpireTime, dispatch, groupBuy, needCert, newNeedUpload) remark, useExpireTime, dispatch, groupBuy, needCert, newNeedUpload, isStack)
values (#{id}, values (#{id},
#{uuid}, #{uuid},
#{mainId}, #{mainId},
@ -1002,7 +1002,7 @@
#{modifyTime}, #{modifyTime},
#{createUser}, #{createUser},
#{updateUser}, #{updateUser},
#{remark}, #{useExpireTime}, #{dispatch}, #{groupBuy}, #{needCert}, #{newNeedUpload}) #{remark}, #{useExpireTime}, #{dispatch}, #{groupBuy}, #{needCert}, #{newNeedUpload}, #{isStack})
</insert> </insert>
<insert id="insertUdiRelevanceignore" keyProperty="id" <insert id="insertUdiRelevanceignore" keyProperty="id"
@ -1016,7 +1016,7 @@
updateTime, modifyTime, updateTime, modifyTime,
createUser, createUser,
updateUser, updateUser,
remark, useExpireTime, dispatch, groupBuy, needCert) remark, useExpireTime, dispatch, groupBuy, needCert,isStack)
values (#{id}, values (#{id},
#{uuid}, #{uuid},
#{mainId}, #{mainId},
@ -1039,7 +1039,7 @@
#{modifyTime}, #{modifyTime},
#{createUser}, #{createUser},
#{updateUser}, #{updateUser},
#{remark}, #{useExpireTime}, #{dispatch}, #{groupBuy}, #{needCert}) #{remark}, #{useExpireTime}, #{dispatch}, #{groupBuy}, #{needCert},#{isStack})
</insert> </insert>
<delete id="deleteById" parameterType="Map"> <delete id="deleteById" parameterType="Map">
@ -1168,6 +1168,10 @@
<if test="needCert != null"> <if test="needCert != null">
needCert=#{needCert}, needCert=#{needCert},
</if> </if>
<if test="isStack != null">
isStack=#{isStack},
</if>
</trim> </trim>
WHERE id = #{id} WHERE id = #{id}
</update> </update>
@ -1197,7 +1201,7 @@
updateTime, modifyTime, updateTime, modifyTime,
createUser, createUser,
updateUser, updateUser,
remark, useExpireTime, dispatch, groupBuy, needCert) remark, useExpireTime, dispatch, groupBuy, needCert,isStack)
values values
<foreach collection="udiRelevanceEntities" item="item" index="index" separator=","> <foreach collection="udiRelevanceEntities" item="item" index="index" separator=",">
@ -1223,76 +1227,76 @@
#{item.modifyTime}, #{item.modifyTime},
#{item.createUser}, #{item.createUser},
#{item.updateUser}, #{item.updateUser},
#{item.remark}, #{item.useExpireTime}, #{item.dispatch}, #{item.groupBuy}, #{item.needCert}) #{item.remark}, #{item.useExpireTime}, #{item.dispatch}, #{item.groupBuy}, #{item.needCert},#{item.isStack})
</foreach> </foreach>
</insert> </insert>
<select id="selectGroupByNameCode" parameterType="java.lang.String" <select id="selectGroupByNameCode" parameterType="java.lang.String"
resultType="com.glxp.api.res.basic.UdiRelevanceResponse"> resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
select basic_udirel.*, select basic_udirel.*,
basic_products.originUuid, basic_products.originUuid,
basic_products.nameCode, basic_products.nameCode,
basic_products.deviceRecordKey, basic_products.deviceRecordKey,
basic_products.packRatio, basic_products.packRatio,
basic_products.packUnit, basic_products.packUnit,
basic_products.packLevel, basic_products.packLevel,
basic_products.bhxjsl, basic_products.bhxjsl,
basic_products.bhzxxsbzsl, basic_products.bhzxxsbzsl,
basic_products.zxxsbzbhsydysl, basic_products.zxxsbzbhsydysl,
basic_products.bhxjcpbm, basic_products.bhxjcpbm,
basic_products.bzcj, basic_products.bzcj,
basic_products.cpmctymc, basic_products.cpmctymc,
basic_products.cplb, basic_products.cplb,
basic_products.flbm, basic_products.flbm,
basic_products.ggxh, basic_products.ggxh,
basic_products.qxlb, basic_products.qxlb,
basic_products.tyshxydm, basic_products.tyshxydm,
basic_products.ylqxzcrbarmc, basic_products.ylqxzcrbarmc,
basic_products.zczbhhzbapzbh, basic_products.zczbhhzbapzbh,
basic_products.ylqxzcrbarywmc, basic_products.ylqxzcrbarywmc,
basic_products.sydycpbs, basic_products.sydycpbs,
basic_products.sjcpbm, basic_products.sjcpbm,
basic_products.versionNumber, basic_products.versionNumber,
basic_products.diType, basic_products.diType,
basic_products.ybbm, basic_products.ybbm,
basic_products.sptm, basic_products.sptm,
basic_products.manufactory, basic_products.manufactory,
basic_products.measname, basic_products.measname,
basic_products.productType, basic_products.productType,
basic_products.scbssfbhph, basic_products.scbssfbhph,
basic_products.scbssfbhxlh, basic_products.scbssfbhxlh,
basic_products.scbssfbhscrq, basic_products.scbssfbhscrq,
basic_products.scbssfbhsxrq, basic_products.scbssfbhsxrq,
basic_products.cpms, basic_products.cpms,
basic_products.allowNoBatch, basic_products.allowNoBatch,
basic_products.allowNoExpire, basic_products.allowNoExpire,
basic_products.allowNoProduct, basic_products.allowNoProduct,
basic_products.allowNoSerial, basic_products.allowNoSerial,
basic_products.spmc, basic_products.spmc,
basic_products.cplx, basic_products.cplx,
basic_products.hchzsb, basic_products.hchzsb,
basic_products.cpdls, basic_products.cpdls,
basic_products.price, basic_products.price,
basic_products.basicPrductRemak1, basic_products.basicPrductRemak1,
basic_products.basicPrductRemak2, basic_products.basicPrductRemak2,
basic_products.basicPrductRemak3, basic_products.basicPrductRemak3,
basic_products.basicPrductRemak4, basic_products.basicPrductRemak4,
basic_products.basicPrductRemak5, basic_products.basicPrductRemak5,
basic_products.basicPrductRemak6, basic_products.basicPrductRemak6,
basic_products.basicPrductRemak7, basic_products.basicPrductRemak7,
basic_products.basicPrductRemak8, basic_products.basicPrductRemak8,
basic_products.sfwblztlcp, basic_products.sfwblztlcp,
basic_products.cgzmraqxgxx, basic_products.cgzmraqxgxx,
basic_products.sfbjwycxsy, basic_products.sfbjwycxsy,
basic_products.zdcfsycs, basic_products.zdcfsycs,
basic_products.sfwwjbz, basic_products.sfwwjbz,
basic_products.syqsfxyjxmj, basic_products.syqsfxyjxmj,
basic_products.mjfs, basic_products.mjfs,
basic_products.categoryName, basic_products.categoryName,
basic_products.cphhhbh basic_products.cphhhbh
FROM basic_udirel FROM basic_udirel
INNER JOIN basic_products INNER JOIN basic_products
on basic_udirel.uuid = basic_products.uuid on basic_udirel.uuid = basic_products.uuid
<where> <where>
<if test="nameCode != null"> <if test="nameCode != null">
AND nameCode = #{nameCode} AND nameCode = #{nameCode}
@ -1314,14 +1318,14 @@
<select id="selectProductNameByRelId" resultType="java.lang.String"> <select id="selectProductNameByRelId" resultType="java.lang.String">
select basic_products.cpmctymc select basic_products.cpmctymc
from basic_udirel from basic_udirel
left join basic_products on basic_udirel.uuid = basic_products.uuid left join basic_products on basic_udirel.uuid = basic_products.uuid
where basic_udirel.id = #{relId} where basic_udirel.id = #{relId}
</select> </select>
<update id="updateBatchById" parameterType="java.util.List"> <update id="updateBatchById" parameterType="java.util.List">
<foreach collection="list" item="item" separator=";"> <foreach collection="list" item="item" separator=";">
update update
basic_udirel basic_udirel
set `relCode` = #{item.relCode} set `relCode` = #{item.relCode}
where id = #{item.id} where id = #{item.id}
</foreach> </foreach>
@ -1343,82 +1347,82 @@
<select id="selectRelIdByNameCode" resultType="java.lang.String"> <select id="selectRelIdByNameCode" resultType="java.lang.String">
select basic_udirel.id select basic_udirel.id
from basic_udirel from basic_udirel
inner join basic_products on basic_udirel.uuid = basic_products.uuid inner join basic_products on basic_udirel.uuid = basic_products.uuid
where basic_products.nameCode = #{nameCode} where basic_products.nameCode = #{nameCode}
</select> </select>
<select id="selectOneUdiJoinSup" resultType="com.glxp.api.res.basic.UdiRelevanceResponse"> <select id="selectOneUdiJoinSup" resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
select basic_udirel.*, select basic_udirel.*,
basic_products.originUuid, basic_products.originUuid,
basic_products.nameCode, basic_products.nameCode,
basic_products.deviceRecordKey, basic_products.deviceRecordKey,
basic_products.packRatio, basic_products.packRatio,
basic_products.packUnit, basic_products.packUnit,
basic_products.packLevel, basic_products.packLevel,
basic_products.bhxjsl, basic_products.bhxjsl,
basic_products.bhzxxsbzsl, basic_products.bhzxxsbzsl,
basic_products.zxxsbzbhsydysl, basic_products.zxxsbzbhsydysl,
basic_products.bhxjcpbm, basic_products.bhxjcpbm,
basic_products.bzcj, basic_products.bzcj,
basic_products.cpmctymc, basic_products.cpmctymc,
basic_products.cplb, basic_products.cplb,
basic_products.flbm, basic_products.flbm,
basic_products.ggxh, basic_products.ggxh,
basic_products.qxlb, basic_products.qxlb,
basic_products.tyshxydm, basic_products.tyshxydm,
basic_products.ylqxzcrbarmc, basic_products.ylqxzcrbarmc,
basic_products.zczbhhzbapzbh, basic_products.zczbhhzbapzbh,
basic_products.ylqxzcrbarywmc, basic_products.ylqxzcrbarywmc,
basic_products.sydycpbs, basic_products.sydycpbs,
basic_products.sjcpbm, basic_products.sjcpbm,
basic_products.versionNumber, basic_products.versionNumber,
basic_products.diType, basic_products.diType,
basic_products.ybbm, basic_products.ybbm,
basic_products.sptm, basic_products.sptm,
basic_products.manufactory, basic_products.manufactory,
basic_products.measname, basic_products.measname,
basic_products.productType, basic_products.productType,
basic_products.scbssfbhph, basic_products.scbssfbhph,
basic_products.scbssfbhxlh, basic_products.scbssfbhxlh,
basic_products.scbssfbhscrq, basic_products.scbssfbhscrq,
basic_products.scbssfbhsxrq, basic_products.scbssfbhsxrq,
basic_products.cpms, basic_products.cpms,
basic_products.allowNoBatch, basic_products.allowNoBatch,
basic_products.allowNoExpire, basic_products.allowNoExpire,
basic_products.allowNoProduct, basic_products.allowNoProduct,
basic_products.allowNoSerial, basic_products.allowNoSerial,
basic_products.spmc, basic_products.spmc,
basic_products.cplx, basic_products.cplx,
basic_products.hchzsb, basic_products.hchzsb,
basic_products.cpdls, basic_products.cpdls,
company_product_relevance.price, company_product_relevance.price,
basic_products.basicPrductRemak1, basic_products.basicPrductRemak1,
basic_products.basicPrductRemak2, basic_products.basicPrductRemak2,
basic_products.basicPrductRemak3, basic_products.basicPrductRemak3,
basic_products.basicPrductRemak4, basic_products.basicPrductRemak4,
basic_products.basicPrductRemak5, basic_products.basicPrductRemak5,
basic_products.basicPrductRemak6, basic_products.basicPrductRemak6,
basic_products.basicPrductRemak7, basic_products.basicPrductRemak7,
basic_products.basicPrductRemak8, basic_products.basicPrductRemak8,
basic_products.sfwblztlcp, basic_products.sfwblztlcp,
basic_products.cgzmraqxgxx, basic_products.cgzmraqxgxx,
basic_products.sfbjwycxsy, basic_products.sfbjwycxsy,
basic_products.zdcfsycs, basic_products.zdcfsycs,
basic_products.sfwwjbz, basic_products.sfwwjbz,
basic_products.syqsfxyjxmj, basic_products.syqsfxyjxmj,
basic_products.mjfs, basic_products.mjfs,
basic_products.categoryName, basic_products.categoryName,
basic_products.requireScanCode, basic_products.requireScanCode,
company_product_relevance.unitFk, company_product_relevance.unitFk,
basic_corp.name companyName, basic_corp.name companyName,
basic_products.cphhhbh basic_products.cphhhbh
FROM basic_udirel FROM basic_udirel
inner JOIN basic_products inner JOIN basic_products
ON basic_products.uuid = basic_udirel.uuid ON basic_products.uuid = basic_udirel.uuid
left join company_product_relevance left join company_product_relevance
on basic_udirel.id = company_product_relevance.udiRlIdFk on basic_udirel.id = company_product_relevance.udiRlIdFk
left JOIN basic_corp left JOIN basic_corp
on basic_corp.erpId = company_product_relevance.customerId on basic_corp.erpId = company_product_relevance.customerId
<where> <where>
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
@ -1478,7 +1482,7 @@
AND nameCode = #{uniqueNameCode} AND nameCode = #{uniqueNameCode}
</if> </if>
<if test="relIds != null and relIds.size() > 0"> <if test="relIds != null and relIds.size() > 0">
and basic_udirel.id in and basic_udirel.id in
<foreach collection="relIds" item="item" index="index" separator="," open="(" close=")"> <foreach collection="relIds" item="item" index="index" separator="," open="(" close=")">
#{item} #{item}
</foreach> </foreach>

@ -52,7 +52,7 @@
basic_udirel.lowStockNum, basic_udirel.lowStockNum,
basic_udirel.overStockNum, basic_udirel.overStockNum,
basic_udirel.recentDateTime, basic_udirel.recentDateTime,
basic_udirel.isDateBy, basic_udirel.isDateBy,basic_udirel.isStack,
bht.name classifyName, bht.name classifyName,
basic_products.id as PRId, basic_products.id as PRId,
basic_products.originUuid, basic_products.originUuid,

@ -25,12 +25,16 @@
<select id="filterOrderList" resultType="com.glxp.api.res.inout.IoOrderDetailResultResponse"> <select id="filterOrderList" resultType="com.glxp.api.res.inout.IoOrderDetailResultResponse">
SELECT a2.*, SELECT a2.*,
a1.mainAction, a1.mainAction,
b1.NAME AS fromCorpName, GROUP_CONCAT(ioi.invoiceEncode ORDER BY ioi.invoiceEncode SEPARATOR ',') as invoiceCodes,
(SELECT NAME FROM basic_bussiness_type bus WHERE bus.action = a1.action) billTypeName b1.NAME AS fromCorpName,
(SELECT NAME FROM basic_bussiness_type bus WHERE bus.action = a1.action) billTypeName
FROM io_order_detail_result a2 FROM io_order_detail_result a2
LEFT JOIN io_order a1 ON a1.billNo = a2.orderIdFk LEFT JOIN io_order a1 ON a1.billNo = a2.orderIdFk
LEFT JOIN basic_corp b1 ON b1.erpId = a1.fromCorp LEFT JOIN basic_corp b1 ON b1.erpId = a1.fromCorp
left join basic_udirel bu on a2.bindRlFk = bu.id
left join io_order_invoice ioi on a1.billNo = ioi.orderIdFk
<where> <where>
a1.status = 7 a1.status = 7
<if test="orderIdFk != null and orderIdFk != ''"> <if test="orderIdFk != null and orderIdFk != ''">
@ -42,6 +46,15 @@
<if test="nameCode != null and nameCode != ''"> <if test="nameCode != null and nameCode != ''">
AND a2.nameCode = #{nameCode} AND a2.nameCode = #{nameCode}
</if> </if>
<if test="isStack != null">
AND bu.isStack = #{isStack}
</if>
<if test="invCode != null and invCode != ''">
AND a1.invCode = #{invCode}
</if>
<if test="invoiceEncode != null and invoiceEncode != ''">
AND ioi.invoiceEncode = #{invoiceEncode}
</if>
<if test="spec != null and spec != ''"> <if test="spec != null and spec != ''">
AND a2.spec like concat('%', #{spec}, '%') AND a2.spec like concat('%', #{spec}, '%')
</if> </if>
@ -76,6 +89,7 @@
</foreach> </foreach>
</if> </if>
</where> </where>
group by a2.id
</select> </select>

@ -872,3 +872,6 @@ END;
CALL Pro_Temp_ColumnWork('basic_bussiness_type', 'vailHcType', CALL Pro_Temp_ColumnWork('basic_bussiness_type', 'vailHcType',
'tinyint NULL DEFAULT NULL COMMENT '' 校验耗材类型 0:不耗材1:高值耗材2:无普通耗材''', 1); 'tinyint NULL DEFAULT NULL COMMENT '' 校验耗材类型 0:不耗材1:高值耗材2:无普通耗材''', 1);
CALL Pro_Temp_ColumnWork('basic_udirel', 'isStack', 'tinyint', 1);

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save