|
|
@@ -97,7 +97,15 @@ public class InboundCheckService extends BaseService<Inbound> {
|
|
|
|
|
|
//region 总单
|
|
|
//获取 id/单号
|
|
|
- Map<String, Object> codeMap = commonService.getUniqueNoteCode(Constant.docNameConstant.INVENTORYPROFITINBOUND.getName(), false);
|
|
|
+ Map<String, Object> codeMap = new HashMap<>();
|
|
|
+ // 盘盈入库
|
|
|
+ if(Constant.IntoType.PROFIT.getName().equals(inboundVO.getIntoType())){
|
|
|
+ codeMap = commonService.getUniqueNoteCode(Constant.docNameConstant.INVENTORYPROFITINBOUND.getName(), false);
|
|
|
+ }
|
|
|
+ //仓库调整
|
|
|
+ else{
|
|
|
+ codeMap = commonService.getUniqueNoteCode(Constant.docNameConstant.MOVE.getName(), false);
|
|
|
+ }
|
|
|
inboundVO.setIntoId(codeMap.get("outId").toString()).
|
|
|
setIntoNo(codeMap.get("outNote").toString());
|
|
|
//todo 入库类型可能是盘盈可能是库位移动 调用的时候传
|