no message
parent
ceea1c72ea
commit
0fca534de3
|
|
@ -45,7 +45,7 @@
|
||||||
<el-row :gutter="24" v-show="isShow">
|
<el-row :gutter="24" v-show="isShow">
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="单据类型">
|
<el-form-item label="单据类型">
|
||||||
<el-select v-model="param.bt_name" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
<el-select v-model="param.bt_name" multiple filterable placeholder="请选择单据类型" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Dj"
|
v-for="item in Dj"
|
||||||
:key="item.index"
|
:key="item.index"
|
||||||
|
|
@ -59,7 +59,7 @@
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="工作站">
|
<el-form-item label="工作站">
|
||||||
<el-select v-model="param.END_REGION" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
<el-select v-model="param.END_REGION" multiple filterable placeholder="请选择工作站" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Gz"
|
v-for="item in Gz"
|
||||||
:key="item.index"
|
:key="item.index"
|
||||||
|
|
@ -73,7 +73,7 @@
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="拣货人">
|
<el-form-item label="拣货人">
|
||||||
<el-select v-model="param.w4_name" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
<el-select v-model="param.w4_name" multiple filterable placeholder="请选择拣货人" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Jhr"
|
v-for="item in Jhr"
|
||||||
:key="item.index"
|
:key="item.index"
|
||||||
|
|
@ -105,7 +105,7 @@
|
||||||
filterable
|
filterable
|
||||||
remote
|
remote
|
||||||
reserve-keyword
|
reserve-keyword
|
||||||
placeholder="请输入关键词"
|
placeholder="输入关键词"
|
||||||
:remote-method="remoteMethod"
|
:remote-method="remoteMethod"
|
||||||
:loading="loading">
|
:loading="loading">
|
||||||
<el-option
|
<el-option
|
||||||
|
|
@ -181,7 +181,7 @@
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="加急标记">
|
<el-form-item label="加急标记">
|
||||||
<el-select v-model="param.equated_Quantity" placeholder="请选择库区" style="width: 100%;">
|
<el-select v-model="param.equated_Quantity" placeholder="请选择" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Bj"
|
v-for="item in Bj"
|
||||||
:key="item.index"
|
:key="item.index"
|
||||||
|
|
@ -195,7 +195,7 @@
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="下发人">
|
<el-form-item label="下发人">
|
||||||
<el-select v-model="param.strBill1" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
<el-select v-model="param.strBill1" multiple filterable placeholder="请选择下发人" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Xf"
|
v-for="item in Xf"
|
||||||
:key="item.index"
|
:key="item.index"
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="LOC">
|
<el-form-item label="LOC">
|
||||||
<el-select v-model="param.propC2" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
<el-select v-model="param.propC2" multiple filterable placeholder="请选择LOC" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in LOCS"
|
v-for="item in LOCS"
|
||||||
:key="item.ID"
|
:key="item.ID"
|
||||||
|
|
@ -77,6 +77,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
|
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="存货日期:">
|
<el-form-item label="存货日期:">
|
||||||
<el-date-picker style="width: 325px"
|
<el-date-picker style="width: 325px"
|
||||||
|
|
@ -111,35 +112,35 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24" v-show="isShow">
|
<el-row :gutter="24" v-show="isShow">
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="是否批次号管理:">
|
<el-form-item label="是否批次号管理:">
|
||||||
<el-select v-model="param.SINGLE_ITEM" placeholder="请选择" style="width: 100%;">
|
<el-select v-model="param.SINGLE_ITEM" placeholder="请选择" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in pc"
|
v-for="item in pc"
|
||||||
:key="item.label"
|
:key="item.label"
|
||||||
:label="item.values"
|
:label="item.values"
|
||||||
:value="item.label"
|
:value="item.label"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="是否有效期管理:">
|
<el-form-item label="是否有效期管理:">
|
||||||
<el-select v-model="param.validity" placeholder="请选择" style="width: 100%;">
|
<el-select v-model="param.validity" placeholder="请选择" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in yxq"
|
v-for="item in yxq"
|
||||||
:key="item.label"
|
:key="item.label"
|
||||||
:label="item.values"
|
:label="item.values"
|
||||||
:value="item.label"
|
:value="item.label"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="退料状态:">
|
<el-form-item label="退料状态:">
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,12 @@
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="日志类型:">
|
<el-form-item label="日志类型:">
|
||||||
<el-select v-model="param.LOG_TYPE" multiple filterable placeholder="请选择工厂" style="width: 100%;">
|
<el-select v-model="param.LOG_TYPE" multiple filterable placeholder="请选择日志类型" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Log"
|
v-for="item in logTypes"
|
||||||
:key="item.index"
|
:key="item.value"
|
||||||
:label="item.LOG_TYPE"
|
:label="item.label"
|
||||||
:value="item.LOG_TYPE"
|
:value="item.value"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
@ -60,7 +60,21 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row :gutter="24" v-show="isShow">
|
<el-row :gutter="24" v-show="isShow">
|
||||||
|
<el-col :span="4">
|
||||||
|
<el-form-item label="容器">
|
||||||
|
<el-input type="textarea" v-model="param.LP" :rows="1"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="4">
|
||||||
|
<el-form-item label="工厂">
|
||||||
|
<el-input type="textarea" v-model="param.PROP_C9" :rows="1"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="4">
|
||||||
|
<el-form-item label="备注">
|
||||||
|
<el-input type="textarea" v-model="param.DESCRIPTION" :rows="1"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="操作员">
|
<el-form-item label="操作员">
|
||||||
<el-input type="textarea" v-model="param.OPERATOR" :rows="1"></el-input>
|
<el-input type="textarea" v-model="param.OPERATOR" :rows="1"></el-input>
|
||||||
|
|
@ -384,6 +398,8 @@ export default {
|
||||||
pageSize: 50,
|
pageSize: 50,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
total: 3,
|
total: 3,
|
||||||
|
/* 日志类型下拉框*/
|
||||||
|
logTypes:[],
|
||||||
param: {
|
param: {
|
||||||
//相关单号
|
//相关单号
|
||||||
RELATED_BILL: '',
|
RELATED_BILL: '',
|
||||||
|
|
@ -401,6 +417,9 @@ export default {
|
||||||
OPERATOR: '',
|
OPERATOR: '',
|
||||||
//发生时间
|
//发生时间
|
||||||
OCCUR_TIME: [],
|
OCCUR_TIME: [],
|
||||||
|
PROP_C9: '',
|
||||||
|
DESCRIPTION: '',
|
||||||
|
LP: ''
|
||||||
},
|
},
|
||||||
LOCS: [],
|
LOCS: [],
|
||||||
Log: [],
|
Log: [],
|
||||||
|
|
@ -419,6 +438,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.queryUser();
|
this.queryUser();
|
||||||
this.LOC();
|
this.LOC();
|
||||||
|
this.JdbcLogType();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleEdit(index, row) {
|
handleEdit(index, row) {
|
||||||
|
|
@ -455,6 +475,23 @@ export default {
|
||||||
this.tableloding=false;
|
this.tableloding=false;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
JdbcLogType(){
|
||||||
|
//LOC下拉列表数据加载
|
||||||
|
this.$axios.post(this.$httpUrl + '/Enumerate/InventoryLogType', {
|
||||||
|
|
||||||
|
}).then(res => res.data)
|
||||||
|
.then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.logTypes = res.data;
|
||||||
|
} else {
|
||||||
|
this.$message.error('获取数据失败');
|
||||||
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
|
},err=>{
|
||||||
|
this.tableloding=false;
|
||||||
|
})
|
||||||
|
},
|
||||||
queryUser() {
|
queryUser() {
|
||||||
//列表数据加载
|
//列表数据加载
|
||||||
this.$axios.post(this.$httpUrl + '/Kucunrizhi/queryRi', {
|
this.$axios.post(this.$httpUrl + '/Kucunrizhi/queryRi', {
|
||||||
|
|
|
||||||
|
|
@ -114,8 +114,8 @@
|
||||||
<el-table-column prop="g213" label="213" width="50"></el-table-column>
|
<el-table-column prop="g213" label="213" width="50"></el-table-column>
|
||||||
<el-table-column prop="g214" label="214" width="50"></el-table-column>
|
<el-table-column prop="g214" label="214" width="50"></el-table-column>
|
||||||
<el-table-column prop="g215" label="215" width="50"></el-table-column>
|
<el-table-column prop="g215" label="215" width="50"></el-table-column>
|
||||||
<el-table-column prop="total" label="汇总" width="60"></el-table-column>
|
<el-table-column prop="total" label="容器数" width="60"></el-table-column>
|
||||||
<el-table-column prop="lxCount" label="容器数" width="60"></el-table-column>
|
<!-- <el-table-column prop="lxCount" label="容器数" width="60"></el-table-column>-->
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<div class="table-title" v-if="true">
|
<div class="table-title" v-if="true">
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="库存状态">
|
<el-form-item label="库存状态">
|
||||||
<el-select v-model="param.STATUS" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
<el-select v-model="param.STATUS" multiple filterable placeholder="请选择库存状态" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Zt"
|
v-for="item in Zt"
|
||||||
:key="item.index"
|
:key="item.index"
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="LOC">
|
<el-form-item label="LOC">
|
||||||
<el-select v-model="param.PROP_C2" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
<el-select v-model="param.PROP_C2" multiple filterable placeholder="请选择LOC" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Loc"
|
v-for="item in Loc"
|
||||||
:key="item.ID"
|
:key="item.ID"
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="工厂">
|
<el-form-item label="工厂">
|
||||||
<el-select v-model="param.PROP_C9" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
<el-select v-model="param.PROP_C9" multiple filterable placeholder="请选择工厂" style="width: 100%;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Plant"
|
v-for="item in Plant"
|
||||||
:key="item.ID"
|
:key="item.ID"
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@ import VueRouter from "vue-router";
|
||||||
import router from "@/router/router";
|
import router from "@/router/router";
|
||||||
import store from "@/store/store";
|
import store from "@/store/store";
|
||||||
Vue.prototype.$axios=axios;
|
Vue.prototype.$axios=axios;
|
||||||
Vue.prototype.$httpUrl='http://127.0.0.1:8083';
|
// Vue.prototype.$httpUrl='http://127.0.0.1:8083';
|
||||||
//Vue.prototype.$httpUrl='http://192.68.2.88:8081';
|
//Vue.prototype.$httpUrl='http://192.68.2.88:8081';
|
||||||
// Vue.prototype.$httpUrl='http://10.1.112.23:8083';
|
Vue.prototype.$httpUrl='http://10.1.112.23:8083';
|
||||||
Vue.config.productionTip = false;
|
Vue.config.productionTip = false;
|
||||||
Vue.use(VueRouter)
|
Vue.use(VueRouter)
|
||||||
Vue.use(ElementUI,{size:'small'});
|
Vue.use(ElementUI,{size:'small'});
|
||||||
|
|
|
||||||
|
|
@ -27,4 +27,10 @@ public class Kucunrizhi {
|
||||||
|
|
||||||
//发生时间
|
//发生时间
|
||||||
public Date[] OCCUR_TIME;
|
public Date[] OCCUR_TIME;
|
||||||
|
// 容器
|
||||||
|
public String LP;
|
||||||
|
// 工厂
|
||||||
|
public String PROP_C9;
|
||||||
|
// 备注
|
||||||
|
public String DESCRIPTION;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,56 @@
|
||||||
|
package com.yc.wms.controller;
|
||||||
|
|
||||||
|
import com.yc.wms.until.Result;
|
||||||
|
import com.yc.wms.utils.JdbcQueryExample;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@Slf4j
|
||||||
|
@RequestMapping("/Enumerate")
|
||||||
|
public class EnumerateController {
|
||||||
|
@Autowired
|
||||||
|
private JdbcQueryExample jdbcQueryExample;
|
||||||
|
@PostMapping("/InventoryLogType")
|
||||||
|
public Result InventoryLogType() {
|
||||||
|
List<Map<String, String>> logTypes = new ArrayList<>();
|
||||||
|
// 使用LinkedHashMap保持插入顺序
|
||||||
|
logTypes.add(createEntry("ARRANGEMENT", "整理"));
|
||||||
|
logTypes.add(createEntry("RECEIVING", "入库"));
|
||||||
|
logTypes.add(createEntry("SHIPPING", "拣配"));
|
||||||
|
logTypes.add(createEntry("FROZEN", "冻结"));
|
||||||
|
logTypes.add(createEntry("CHECK_ADJUST", "盘点调整"));
|
||||||
|
logTypes.add(createEntry("HAND_ORDER", "交单"));
|
||||||
|
logTypes.add(createEntry("MOVE", "移库"));
|
||||||
|
logTypes.add(createEntry("SOLUTION_K", "解K"));
|
||||||
|
logTypes.add(createEntry("RECEIVING_ADJUST", "其它入库"));
|
||||||
|
logTypes.add(createEntry("SHIPPING_ADJUST", "其它出库"));
|
||||||
|
logTypes.add(createEntry("CONVERT_PACKAGEUNIT", "工单退料"));
|
||||||
|
logTypes.add(createEntry("INVENTORY_ADJUST", "调整"));
|
||||||
|
logTypes.add(createEntry("COUNT_ADJUST", "删除库存"));
|
||||||
|
logTypes.add(createEntry("PROCESS_DOWN", "取消整理"));
|
||||||
|
logTypes.add(createEntry("PROCESS_UP", "合单"));
|
||||||
|
logTypes.add(createEntry("MODIFY_LOT", "批次调整"));
|
||||||
|
logTypes.add(createEntry("MODIFY_STATUS", "状态调整"));
|
||||||
|
logTypes.add(createEntry("COMPANY_TRANS_OUT", "异常登记"));
|
||||||
|
logTypes.add(createEntry("COMPANY_TRANS_IN", "取消分配"));
|
||||||
|
|
||||||
|
// return logTypes;
|
||||||
|
return Result.success(logTypes);
|
||||||
|
}
|
||||||
|
private static Map<String, String> createEntry(String value, String label) {
|
||||||
|
Map<String, String> entry = new LinkedHashMap<>();
|
||||||
|
entry.put("value", value);
|
||||||
|
entry.put("label", label);
|
||||||
|
return entry;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -30,31 +30,42 @@ public class KucunhuizongImpl implements Kucunhuizong {
|
||||||
|
|
||||||
String sql=" SELECT "
|
String sql=" SELECT "
|
||||||
+" ROW_NUMBER() OVER (ORDER BY inventory.id ASC) AS Row_Num,"
|
+" ROW_NUMBER() OVER (ORDER BY inventory.id ASC) AS Row_Num,"
|
||||||
+" inventory.id, "
|
+" inventory.id , "
|
||||||
+" inventory.locCode, "
|
+" inventory.locCode as 'locCode', " //库位号
|
||||||
+" inventory.itemCode, "
|
+" inventory.itemCode as 'itemCode', " //料号
|
||||||
+" inventory.itemName, "
|
+" inventory.itemName as 'itemName', " //物料描述
|
||||||
+" inventory.UNIT, "
|
+" inventory.UNIT as 'UNIT', " //单位
|
||||||
+" inventory.status, "
|
+" inventory.status as 'status', "//库存状态
|
||||||
+" inventory.statuss, "
|
+" inventory.statuss as 'inv_status', "//退料标记
|
||||||
+" inventory.quantity, "
|
+" inventory.quantity as 'quantity', "//库存数量
|
||||||
+" inventory.queuedQuantity , "
|
+" inventory.queuedQuantity as 'queuedQuantity', "//待上架数量
|
||||||
+" inventory.LSname, "
|
+" inventory.propC1 as 'propC1', "
|
||||||
+" inventory.weight, "
|
+" inventory.propC2 as 'propC2', "
|
||||||
+" inventory.propC1, "
|
+" inventory.propC3 as 'propC3', "
|
||||||
+" inventory.propC2, "
|
+" inventory.propC4 as 'propC4', "
|
||||||
+" inventory.propC3, "
|
+" inventory.propC5 as 'propC5', "
|
||||||
+" inventory.propC5, "
|
+" inventory.propC6 as 'propC6', "
|
||||||
+" inventory.propC9, "
|
+" inventory.propC7 as 'propC7', "
|
||||||
+" inventory.propD2, "
|
+" inventory.propC8 as 'propC8', "
|
||||||
+" inventory.kqName, "
|
+" inventory.propC9 as 'propC9', "
|
||||||
+" inventory.agvFlag, "
|
+" inventory.propD1 as 'prop_D1', "
|
||||||
+" inventory.SINGLE_ITEM, "
|
+" inventory.propD2 as 'prop_D2', "
|
||||||
+" inventory.validity, "
|
+" inventory.kqName as 'kqName', "
|
||||||
+" inventory.storageDate, "
|
+" inventory.lock as 'lock',"
|
||||||
+" inventory.invDes, "
|
+" inventory.LSname as 'LSname', "
|
||||||
+" inventory.propC7, "
|
+" inventory.VOLUME as 'VOLUME',"
|
||||||
+" inventory.lock "
|
+" inventory.BE_WEIGHT as 'BE_WEIGHT',"
|
||||||
|
+" inventory.SHIP_RULES as 'SHIP_RULES',"
|
||||||
|
+" inventory.BE_MARK_WEIGHT as 'BE_MARK_WEIGHT',"
|
||||||
|
+" inventory.STR_EXTEND1 as 'STR_EXTEND1',"
|
||||||
|
+" inventory.STR_EXTEND2 as 'STR_EXTEND2',"
|
||||||
|
+" inventory.agvFlag as 'agvFlag', "
|
||||||
|
+" inventory.lts_name as 'lts_name', "
|
||||||
|
+" inventory.SINGLE_ITEM as 'SINGLE_ITEM', "
|
||||||
|
+" inventory.validity as 'validity', "
|
||||||
|
+" inventory.storageDate as 'storageDate', "
|
||||||
|
+" inventory.invDes as 'invDes', "
|
||||||
|
+" inventory.WEIGHT as 'WEIGHT' "
|
||||||
+" FROM INVENTORY_VIEW inventory "
|
+" FROM INVENTORY_VIEW inventory "
|
||||||
+" WHERE 1=1 "
|
+" WHERE 1=1 "
|
||||||
+" and inventory.quantity>0 and inventory.Be_SAP_Item=1 "
|
+" and inventory.quantity>0 and inventory.Be_SAP_Item=1 "
|
||||||
|
|
@ -138,7 +149,7 @@ public class KucunhuizongImpl implements Kucunhuizong {
|
||||||
sb.append("'"+ kucunhuizong.kqName[i]+"'"+",");
|
sb.append("'"+ kucunhuizong.kqName[i]+"'"+",");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sql+=" and z.kqName in ("+sb.toString()+")";;
|
sql+=" and inventory.kqName in ("+sb.toString()+")";;
|
||||||
}
|
}
|
||||||
|
|
||||||
//批次号
|
//批次号
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,54 @@ public class KucunrizhiImpl implements Kucunrizhi {
|
||||||
sql+=" and log.RELATED_BILL in ("+sb.toString()+")";
|
sql+=" and log.RELATED_BILL in ("+sb.toString()+")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//容器
|
||||||
|
if(kucunrizhi.LP!=null){
|
||||||
|
if(!kucunrizhi.LP.trim().equals("")){
|
||||||
|
String[] str=kucunrizhi.LP.trim().split("\n");
|
||||||
|
StringBuffer sb = new StringBuffer();
|
||||||
|
for (int i=0;i<str.length;i++){
|
||||||
|
|
||||||
|
if(str.length-1==i){
|
||||||
|
sb.append("'"+ str[i]+"'");
|
||||||
|
}else {
|
||||||
|
sb.append("'"+ str[i]+"'"+",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sql+=" and log.LP in ("+sb.toString()+")";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//备注
|
||||||
|
if(kucunrizhi.DESCRIPTION!=null){
|
||||||
|
if(!kucunrizhi.DESCRIPTION.trim().equals("")){
|
||||||
|
String[] str=kucunrizhi.DESCRIPTION.trim().split("\n");
|
||||||
|
StringBuffer sb = new StringBuffer();
|
||||||
|
for (int i=0;i<str.length;i++){
|
||||||
|
|
||||||
|
if(str.length-1==i){
|
||||||
|
sb.append("'"+ str[i]+"'");
|
||||||
|
}else {
|
||||||
|
sb.append("'"+ str[i]+"'"+",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sql+=" and log.DESCRIPTION in ("+sb.toString()+")";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//工厂
|
||||||
|
if(kucunrizhi.PROP_C9!=null){
|
||||||
|
if(!kucunrizhi.PROP_C9.trim().equals("")){
|
||||||
|
String[] str=kucunrizhi.PROP_C9.trim().split("\n");
|
||||||
|
StringBuffer sb = new StringBuffer();
|
||||||
|
for (int i=0;i<str.length;i++){
|
||||||
|
|
||||||
|
if(str.length-1==i){
|
||||||
|
sb.append("'"+ str[i]+"'");
|
||||||
|
}else {
|
||||||
|
sb.append("'"+ str[i]+"'"+",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sql+=" and ik.PROP_C9 in ("+sb.toString()+")";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//日志类型
|
//日志类型
|
||||||
if(kucunrizhi.LOG_TYPE!=null&& kucunrizhi.LOG_TYPE.length>0){
|
if(kucunrizhi.LOG_TYPE!=null&& kucunrizhi.LOG_TYPE.length>0){
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.yc.wms.utils;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.jdbc.core.JdbcTemplate;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
@Service
|
||||||
|
public class JdbcQueryExample {
|
||||||
|
private final JdbcTemplate jdbcTemplate;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public JdbcQueryExample(JdbcTemplate jdbcTemplate) {
|
||||||
|
this.jdbcTemplate = jdbcTemplate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Map<String, Object>> sqlQuery(String sql, Object... params) {
|
||||||
|
return jdbcTemplate.queryForList(sql, params);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int executeUpdate(String sql, Object... params) {
|
||||||
|
return jdbcTemplate.update(sql, params);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -13,13 +13,13 @@ server:
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
# url: jdbc:sqlserver://10.1.96.105:1433;DatabaseName=LD_WMSDB
|
url: jdbc:sqlserver://10.1.96.105:1433;DatabaseName=LD_WMSDB
|
||||||
url: jdbc:sqlserver://47.103.100.52:1433;DatabaseName=zwlgtest
|
# url: jdbc:sqlserver://47.103.100.52:1433;DatabaseName=zwlgtest
|
||||||
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||||
# username: wmsdb
|
username: wmsdb
|
||||||
# password: AmecDDbb32A
|
password: AmecDDbb32A
|
||||||
username: WMSDB
|
# username: WMSDB
|
||||||
password: WmsYc@5688
|
# password: WmsYc@5688
|
||||||
|
|
||||||
hikari:
|
hikari:
|
||||||
connection-timeout: 60000
|
connection-timeout: 60000
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue