feat(wms): 新增木箱号查询及MDM客户Z1过滤
This commit is contained in:
@@ -19,6 +19,7 @@ import org.nl.wms.ext.mdm.entity.StatusEnum;
|
|||||||
import org.nl.wms.ext.mdm.service.MdmToLmsService;
|
import org.nl.wms.ext.mdm.service.MdmToLmsService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.stream.IntStream;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author Eric.Yang
|
* @Author Eric.Yang
|
||||||
@@ -80,11 +81,14 @@ public class MdmToLmsServiceImpl implements MdmToLmsService {
|
|||||||
if (CollectionUtil.isEmpty(parList)) {
|
if (CollectionUtil.isEmpty(parList)) {
|
||||||
throw new BadRequestException("MDM->客户数据核心字段数据为空,缺失字段:[par]!");
|
throw new BadRequestException("MDM->客户数据核心字段数据为空,缺失字段:[par]!");
|
||||||
}
|
}
|
||||||
JSONObject par = parList.getJSONObject(0);
|
JSONObject z1Par = IntStream.range(0, parList.size())
|
||||||
//业务员工号
|
.mapToObj(parList::getJSONObject)
|
||||||
String empSupplier = par.getString("empSupplier");
|
.filter(p -> "Z1".equals(p.getString("partner")))
|
||||||
//业务员名称
|
.findFirst()
|
||||||
String empSupplierDesc = par.getString("empSupplierDesc");
|
.orElse(null);
|
||||||
|
|
||||||
|
String empSupplier = z1Par != null ? z1Par.getString("empSupplier") : "";
|
||||||
|
String empSupplierDesc = z1Par != null ? z1Par.getString("empSupplierDesc") : "";
|
||||||
String sales_owner = StrUtil.join("|",empSupplier,empSupplierDesc);
|
String sales_owner = StrUtil.join("|",empSupplier,empSupplierDesc);
|
||||||
//插入客户表
|
//插入客户表
|
||||||
String currentUserId = SecurityUtils.getCurrentUserId();
|
String currentUserId = SecurityUtils.getCurrentUserId();
|
||||||
|
|||||||
@@ -59,6 +59,10 @@ public class RecutPlanServiceImpl implements RecutPlanService {
|
|||||||
if (StrUtil.isNotEmpty(map.get("pcsn"))) {
|
if (StrUtil.isNotEmpty(map.get("pcsn"))) {
|
||||||
map.put("pcsn", (String) whereJson.get("pcsn"));
|
map.put("pcsn", (String) whereJson.get("pcsn"));
|
||||||
}
|
}
|
||||||
|
// 新增木箱查询条件
|
||||||
|
if (StrUtil.isNotEmpty(map.get("package_box_sn"))) {
|
||||||
|
map.put("package_box_sn", (String) whereJson.get("package_box_sn"));
|
||||||
|
}
|
||||||
|
|
||||||
//获取人员对应的仓库
|
//获取人员对应的仓库
|
||||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
输入.end_time TYPEAS s_string
|
输入.end_time TYPEAS s_string
|
||||||
输入.begin_time TYPEAS s_string
|
输入.begin_time TYPEAS s_string
|
||||||
输入.pcsn TYPEAS s_string
|
输入.pcsn TYPEAS s_string
|
||||||
|
输入.package_box_sn TYPEAS s_string
|
||||||
输入.plan_id TYPEAS s_string
|
输入.plan_id TYPEAS s_string
|
||||||
输入.status TYPEAS s_string
|
输入.status TYPEAS s_string
|
||||||
输入.in_stor_id TYPEAS f_string
|
输入.in_stor_id TYPEAS f_string
|
||||||
@@ -62,6 +63,11 @@
|
|||||||
OPTION 输入.pcsn <> ""
|
OPTION 输入.pcsn <> ""
|
||||||
dtl.pcsn = 输入.pcsn
|
dtl.pcsn = 输入.pcsn
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
|
|
||||||
|
OPTION 输入.package_box_sn <> ""
|
||||||
|
dtl.package_box_sn = 输入.package_box_sn
|
||||||
|
ENDOPTION
|
||||||
|
|
||||||
GROUP BY plan_id
|
GROUP BY plan_id
|
||||||
) a ON mst.plan_id = a.plan_id
|
) a ON mst.plan_id = a.plan_id
|
||||||
WHERE
|
WHERE
|
||||||
@@ -121,4 +127,4 @@
|
|||||||
order by sub.package_box_sn
|
order by sub.package_box_sn
|
||||||
ENDSELECT
|
ENDSELECT
|
||||||
ENDQUERY
|
ENDQUERY
|
||||||
ENDIF
|
ENDIF
|
||||||
|
|||||||
@@ -259,9 +259,11 @@ export default {
|
|||||||
tableName: 'sys_api_log',
|
tableName: 'sys_api_log',
|
||||||
direction: null,
|
direction: null,
|
||||||
systemFlag: null,
|
systemFlag: null,
|
||||||
bizCode: null, // 关键:提前声明,Vue.observable 才能追踪
|
bizCode: null,
|
||||||
status: null,
|
status: null,
|
||||||
keyword: null
|
keyword: null,
|
||||||
|
requestParams: null,
|
||||||
|
responseStatus: null
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -46,7 +46,15 @@
|
|||||||
@keyup.enter.native="crud.toQuery"
|
@keyup.enter.native="crud.toQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="木箱号">
|
||||||
|
<el-input
|
||||||
|
v-model="query.package_box_sn"
|
||||||
|
size="mini"
|
||||||
|
clearable
|
||||||
|
placeholder="木箱号"
|
||||||
|
@keyup.enter.native="crud.toQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="单据状态">
|
<el-form-item label="单据状态">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="query.bill_status"
|
v-model="query.bill_status"
|
||||||
|
|||||||
Reference in New Issue
Block a user