库存单据类型等修改,同步设置修改

master
anthonyywj2 3 years ago
parent d298bf5b74
commit bb04ec954a

@ -25,7 +25,7 @@ public class ConnectTestController {
AuthConnectEntity authConnectEntity = new AuthConnectEntity();
authConnectEntity.setCompanyName(companyEntity.getCompanyName());
authConnectEntity.setSysName("UDI自助平台");
return ResultVOUtils.success(companyEntity.getCompanyName());
return ResultVOUtils.success(authConnectEntity);
}

@ -19,6 +19,7 @@ import com.glxp.sale.admin.entity.inout.WarehouseBussinessTypeEntity;
import com.glxp.sale.admin.entity.inout.WarehouseEntity;
import com.glxp.sale.admin.entity.inout.WarehouseUserEntity;
import com.glxp.sale.admin.entity.inventory.InvWarehouseEntity;
import com.glxp.sale.admin.entity.param.SystemParamConfigEntity;
import com.glxp.sale.admin.entity.thrsys.*;
import com.glxp.sale.admin.res.basic.SpsSyncBusResponse;
import com.glxp.sale.admin.res.basic.SpsSyncDataResponse;
@ -28,6 +29,7 @@ import com.glxp.sale.admin.service.basic.BussinessChangeTypeService;
import com.glxp.sale.admin.service.basic.EntrustReceService;
import com.glxp.sale.admin.service.inout.OrderService;
import com.glxp.sale.admin.service.inventory.InvWarehouseService;
import com.glxp.sale.admin.service.param.SystemParamConfigService;
import com.glxp.sale.admin.thread.BasicBackUpdateProductService;
import com.glxp.sale.admin.util.BeanUtils;
import com.glxp.sale.common.res.BaseResponse;
@ -68,6 +70,8 @@ public class SpsSyncUploadController {
EntrustReceService entrustReceService;
@Resource
private BasicDownloadService basicDownloadService;
@Resource
private SystemParamConfigService systemParamConfigService;
@PostMapping("sps/sync/basic/upload")
public BaseResponse findProductInfo(@RequestBody SpsSyncDataResponse syncDataResponse) {
@ -432,7 +436,12 @@ public class SpsSyncUploadController {
orderEntity.setFromType(ConstantStatus.FROM_UDIWMS);
orderEntity.setReceiveStatus(0);
orderEntity.setErpFk(null);
// orderEntity.setOutChangeEnable(false);
String value = systemParamConfigService.selectValueByParamKey("syns_out_change");
if (value.equals("1")) {
orderEntity.setOutChangeEnable(true);
} else
orderEntity.setOutChangeEnable(false);
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_PROCESS);
OrderEntity temp = orderService.findById(orderEntity.getId());

@ -158,4 +158,14 @@ public class InvPreProductsController {
return ResultVOUtils.success(invProductStatResponse);
}
@AuthRuleAnnotation("")
@GetMapping("spms/pre/inv/products/getDetaiByCode")
public BaseResponse getDetaiByCode(FilterInvProductDetailRequest filterInvProductDetailRequest) {
InvProductDetailEntity invProductDetailEntity = invProductDetailService.statInvPreInDetail(filterInvProductDetailRequest.getCode());
if (invProductDetailEntity != null)
return ResultVOUtils.success(invProductDetailEntity);
return ResultVOUtils.error(501, "寄售库存不存在此产品");
}
}

@ -395,4 +395,13 @@ public class InvProductsController {
}
@AuthRuleAnnotation("")
@GetMapping("spms/inv/products/getDetaiByCode")
public BaseResponse getDetaiByCode(FilterInvProductDetailRequest filterInvProductDetailRequest) {
InvProductDetailEntity invProductDetailEntity = invProductDetailService.statInvPreInDetail(filterInvProductDetailRequest.getCode());
if (invProductDetailEntity != null)
return ResultVOUtils.success(invProductDetailEntity);
return ResultVOUtils.error(501, "库存不存在此产品");
}
}

@ -61,4 +61,10 @@ public class BussinessTypeEntity {
private boolean checkUdiwms;
private boolean secCheckUdiwms;
private boolean ullageFill;
private boolean scanPreIn;
private boolean vailInv;
}

@ -60,4 +60,8 @@ public class BussinessTypResponse {
private boolean preIn;
private boolean checkUdiwms;
private boolean secCheckUdiwms;
private boolean ullageFill;
private boolean scanPreIn;
private boolean vailInv;
}

@ -25,4 +25,6 @@ public interface InvPreProductDetailService {
boolean deleteByProductId(FilterInvProductDetailRequest filterInvProductDetailRequest);
int statCount(FilterInvProductDetailRequest filterInvProductDetailRequest);
InvProductDetailEntity statInvPreInDetail(String code);
}

@ -30,4 +30,6 @@ public interface InvProductDetailService {
boolean deleteByProductId(FilterInvProductDetailRequest productIdFk);
int statCount(FilterInvProductDetailRequest filterInvProductDetailRequest);
InvProductDetailEntity statInvPreInDetail(String code);
}

@ -8,9 +8,11 @@ import com.glxp.sale.admin.dao.inventory.InvPreInProductDao;
import com.glxp.sale.admin.dao.inventory.InvPreInProductDetailDao;
import com.glxp.sale.admin.entity.inventory.InvProductDetailEntity;
import com.glxp.sale.admin.entity.inventory.InvProductEntity;
import com.glxp.sale.admin.entity.udid.UdiEntity;
import com.glxp.sale.admin.req.inventory.FilterInvProductDetailRequest;
import com.glxp.sale.admin.res.inventory.InvProductDetailJoinResponse;
import com.glxp.sale.admin.service.inventory.InvPreInProductDetailService;
import com.glxp.sale.admin.util.FilterUdiUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@ -93,7 +95,21 @@ public class InvPreInProductDetailServiceImpl implements InvPreInProductDetailSe
public InvProductDetailEntity statInvPreInDetail(String code) {
FilterInvProductDetailRequest filterInvProductDetailRequest = new FilterInvProductDetailRequest();
filterInvProductDetailRequest.setOriginCode(code);
List<InvProductDetailEntity> datas = invPreInProductDetailDao.filterInvProductDetail(filterInvProductDetailRequest);
if (CollUtil.isEmpty(datas)) {
filterInvProductDetailRequest.setOriginCode(null);
UdiEntity udiEntity = FilterUdiUtils.getGS1Udi(code);
if (StrUtil.isNotEmpty(udiEntity.getBatchNo()))
filterInvProductDetailRequest.setBatchNo(udiEntity.getBatchNo());
else
filterInvProductDetailRequest.setBatchNo("empty");
filterInvProductDetailRequest.setProductionDate(udiEntity.getProduceDate());
filterInvProductDetailRequest.setExpireDate(udiEntity.getExpireDate());
datas = invPreInProductDetailDao.filterInvProductDetail(filterInvProductDetailRequest);
}
if (CollUtil.isNotEmpty(datas)) {
InvProductDetailEntity invProductDetailEntity = datas.get(0);

@ -1,13 +1,18 @@
package com.glxp.sale.admin.service.inventory.impl;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageHelper;
import com.glxp.sale.admin.dao.inventory.InvPreProductDetailDao;
import com.glxp.sale.admin.dao.inventory.InvProductDetailDao;
import com.glxp.sale.admin.entity.inventory.InvProductDetailEntity;
import com.glxp.sale.admin.entity.inventory.InvProductEntity;
import com.glxp.sale.admin.entity.udid.UdiEntity;
import com.glxp.sale.admin.req.inventory.FilterInvProductDetailRequest;
import com.glxp.sale.admin.res.inventory.InvProductDetailJoinResponse;
import com.glxp.sale.admin.service.inventory.InvPreProductDetailService;
import com.glxp.sale.admin.service.inventory.InvProductDetailService;
import com.glxp.sale.admin.util.FilterUdiUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@ -76,4 +81,31 @@ public class InvPreProductDetailServiceImpl implements InvPreProductDetailServic
public int statCount(FilterInvProductDetailRequest filterInvProductDetailRequest) {
return invPreProductDetailDao.statCount(filterInvProductDetailRequest);
}
@Override
public InvProductDetailEntity statInvPreInDetail(String code) {
FilterInvProductDetailRequest filterInvProductDetailRequest = new FilterInvProductDetailRequest();
filterInvProductDetailRequest.setOriginCode(code);
List<InvProductDetailEntity> datas = invPreProductDetailDao.filterInvProductDetail(filterInvProductDetailRequest);
if (CollUtil.isEmpty(datas)) {
filterInvProductDetailRequest.setOriginCode(null);
UdiEntity udiEntity = FilterUdiUtils.getGS1Udi(code);
if (StrUtil.isNotEmpty(udiEntity.getBatchNo()))
filterInvProductDetailRequest.setBatchNo(udiEntity.getBatchNo());
else
filterInvProductDetailRequest.setBatchNo("empty");
filterInvProductDetailRequest.setProductionDate(udiEntity.getProduceDate());
filterInvProductDetailRequest.setExpireDate(udiEntity.getExpireDate());
datas = invPreProductDetailDao.filterInvProductDetail(filterInvProductDetailRequest);
}
if (CollUtil.isNotEmpty(datas)) {
InvProductDetailEntity invProductDetailEntity = datas.get(0);
return invProductDetailEntity;
}
return null;
}
}

@ -1,11 +1,15 @@
package com.glxp.sale.admin.service.inventory.impl;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageHelper;
import com.glxp.sale.admin.dao.inventory.InvProductDetailDao;
import com.glxp.sale.admin.entity.inventory.InvProductDetailEntity;
import com.glxp.sale.admin.entity.udid.UdiEntity;
import com.glxp.sale.admin.req.inventory.FilterInvProductDetailRequest;
import com.glxp.sale.admin.res.inventory.InvProductDetailJoinResponse;
import com.glxp.sale.admin.service.inventory.InvProductDetailService;
import com.glxp.sale.admin.util.FilterUdiUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@ -90,4 +94,31 @@ public class InvProductDetailServiceImpl implements InvProductDetailService {
public int statCount(FilterInvProductDetailRequest filterInvProductDetailRequest) {
return invProductDetailDao.statCount(filterInvProductDetailRequest);
}
@Override
public InvProductDetailEntity statInvPreInDetail(String code) {
FilterInvProductDetailRequest filterInvProductDetailRequest = new FilterInvProductDetailRequest();
filterInvProductDetailRequest.setOriginCode(code);
List<InvProductDetailEntity> datas = invProductDetailDao.filterInvProductDetail(filterInvProductDetailRequest);
if (CollUtil.isEmpty(datas)) {
filterInvProductDetailRequest.setOriginCode(null);
UdiEntity udiEntity = FilterUdiUtils.getGS1Udi(code);
if (StrUtil.isNotEmpty(udiEntity.getBatchNo()))
filterInvProductDetailRequest.setBatchNo(udiEntity.getBatchNo());
else
filterInvProductDetailRequest.setBatchNo("empty");
filterInvProductDetailRequest.setProductionDate(udiEntity.getProduceDate());
filterInvProductDetailRequest.setExpireDate(udiEntity.getExpireDate());
datas = invProductDetailDao.filterInvProductDetail(filterInvProductDetailRequest);
}
if (CollUtil.isNotEmpty(datas)) {
InvProductDetailEntity invProductDetailEntity = datas.get(0);
return invProductDetailEntity;
}
return null;
}
}

@ -13,6 +13,7 @@
basic_bussiness_type.checkWebNew,basic_bussiness_type.checkChange,
basic_bussiness_type.secCheckUdims, basic_bussiness_type.secCheckPdaEd, basic_bussiness_type.secCheckPdaUn,
basic_bussiness_type.secCheckWebNew, basic_bussiness_type.secCheckChange,
basic_bussiness_type.ullageFill, basic_bussiness_type.scanPreIn, basic_bussiness_type.vailInv,
basic_bustype_local.name localName,basic_bussiness_type.checkEnable, basic_bustype_local.advanceType,
basic_bustype_local.changeEnable,basic_bussiness_type.genUnit,basic_bussiness_type.innerOrder,
basic_bustype_local.spUse,corpType,basic_bussiness_type.storageCode,basic_bussiness_type.checkBalacne,
@ -126,6 +127,7 @@
basic_bussiness_type.checkWebNew,basic_bussiness_type.checkChange,
basic_bussiness_type.secCheckUdims, basic_bussiness_type.secCheckPdaEd, basic_bussiness_type.secCheckPdaUn,
basic_bussiness_type.secCheckWebNew, basic_bussiness_type.secCheckChange,
basic_bussiness_type.ullageFill, basic_bussiness_type.scanPreIn, basic_bussiness_type.vailInv,
basic_bustype_local.name localName,basic_bussiness_type.checkEnable, basic_bustype_local.advanceType,
basic_bustype_local.changeEnable,basic_bussiness_type.genUnit,basic_bussiness_type.innerOrder,
basic_bustype_local.spUse,corpType,basic_bussiness_type.storageCode,basic_bussiness_type.checkBalacne,defaultUnit,
@ -178,7 +180,8 @@
checkUdims,checkPdaEd,checkPdaUn,checkPc,checkWebNew,checkChange
,secCheckUdims,secCheckPdaEd,secCheckPdaUn,secCheckPc,secCheckWebNew,
secCheckChange,corpType,basic_bussiness_type.storageCode,checkBalacne,
secCheckBalacne,supplementOrderType,defaultUnit,useDyCount,expireTip,updateTime,prefix)
secCheckBalacne,supplementOrderType,defaultUnit,useDyCount,expireTip,updateTime,prefix
,ullageFill,scanPreIn,vailInv)
values
(
#{action},
@ -212,7 +215,11 @@
#{defaultUnit},
#{useDyCount},
#{expireTip},
#{updateTime},#{prefix}
#{updateTime},
#{prefix},
#{ullageFill},
#{scanPreIn},
#{vailInv}
)
</insert>
@ -226,7 +233,8 @@
checkEnable,genUnit,innerOrder,secCheckEnable,
checkUdims,checkPdaEd,checkPdaUn,checkPc,checkWebNew,checkChange
,secCheckUdims,secCheckPdaEd,secCheckPdaUn,secCheckPc,secCheckWebNew,
secCheckChange,corpType,storageCode,checkBalacne,secCheckBalacne,supplementOrderType,defaultUnit,useDyCount,expireTip,updateTime,prefix)
secCheckChange,corpType,storageCode,checkBalacne,secCheckBalacne,supplementOrderType,defaultUnit,useDyCount,expireTip,updateTime,prefix
,ullageFill,scanPreIn,vailInv)
values
(
#{index},
@ -261,7 +269,11 @@
#{defaultUnit},
#{useDyCount},
#{expireTip},
#{updateTime},#{prefix}
#{updateTime},
#{prefix},
#{ullageFill},
#{scanPreIn},
#{vailInv}
)
</insert>
@ -301,6 +313,9 @@
<if test="useDyCount != null">useDyCount=#{useDyCount},</if>
<if test="expireTip != null">expireTip=#{expireTip},</if>
<if test="updateTime != null">updateTime=#{updateTime},</if>
<if test="ullageFill != null">ullageFill=#{ullageFill},</if>
<if test="scanPreIn != null">scanPreIn=#{scanPreIn},</if>
<if test="vailInv != null">vailInv=#{vailInv},</if>
<if test="prefix != null">prefix=#{prefix},</if>
thirdSysFk=#{thirdSysFk},
</trim>

Loading…
Cancel
Save