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

dev_ksck_axxyy
anthonywj 8 months ago
parent c3898425e6
commit b3006e5870

@ -217,7 +217,7 @@ public class BasicOrderPrintController {
for (IoCodeEntity obj : ioCodeEntityList) {
//查询业务表
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;
break;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -3,7 +3,7 @@ server:
spring:
datasource:
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
password: 123456
hikari:

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

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

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

@ -872,3 +872,6 @@ END;
CALL Pro_Temp_ColumnWork('basic_bussiness_type', 'vailHcType',
'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