客户账单,物料限制客户登录只能查看本人

master
erzhongxmu 2020-12-21 23:57:35 +08:00
parent a5b45f8c88
commit 143a6a026c
3 changed files with 32 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -218,6 +218,8 @@ public class MdBinController extends BaseController {
tsql = tsql + " and ws.znode like '%"+req.getParameter("cengshu")+"%' "; tsql = tsql + " and ws.znode like '%"+req.getParameter("cengshu")+"%' ";
} }
String hangshu = req.getParameter("hangshu");
String type = req.getParameter("type");
System.out.print(tsql); System.out.print(tsql);
List<Map<String, Object>> resultt = systemService List<Map<String, Object>> resultt = systemService
@ -233,7 +235,23 @@ public class MdBinController extends BaseController {
jsonParts.put("des", resultt.get(i).get("des")); jsonParts.put("des", resultt.get(i).get("des"));
jsonParts.put("tincount", resultt.get(i).get("tincount")); jsonParts.put("tincount", resultt.get(i).get("tincount"));
try{ try{
jsonParts.put("xnode", resultt.get(i).get("xnode"));
if("fanxiang".equals(type)){
try{
int hangshuint = Integer.parseInt(hangshu);
int xnode = Integer.parseInt(resultt.get(i).get("xnode").toString());
jsonParts.put("xnode", hangshuint+1-xnode);
}catch (Exception e){
}
}else{
jsonParts.put("xnode", resultt.get(i).get("xnode"));
}
jsonParts.put("ynode", resultt.get(i).get("ynode")); jsonParts.put("ynode", resultt.get(i).get("ynode"));

View File

@ -30,7 +30,8 @@
<input type="text" name="lieshu" value="34" style="width: 100px; height: 30px;"> <input type="text" name="lieshu" value="34" style="width: 100px; height: 30px;">
</span> </span>
<span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 90px;text-align:right;"> <span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 90px;text-align:right;">
<button onclick="chaxun()">查询</button> </span> <button onclick="chaxun('zhengxiang')">正向排列查询</button> </span>
<button onclick="chaxun('fanxiang')">反向排列查询</button> </span>
</div> </div>
@ -112,7 +113,7 @@
}); });
function chaxun() { function chaxun(type) {
var cangku; var cangku;
var chuwei; var chuwei;
@ -124,7 +125,7 @@
var cengshu = $('input[name="cengshu"]').attr("value"); var cengshu = $('input[name="cengshu"]').attr("value");
des = $('input[name="des"]').attr("value"); des = $('input[name="des"]').attr("value");
//加载消息 //加载消息
var url = "mdBinController.do?getbinall&binstore=" + cangku + "&binid=" + chuwei + "&des=" + des+ "&cengshu=" + cengshu; var url = "mdBinController.do?getbinall&binstore=" + cangku + "&binid=" + chuwei + "&des=" + des+ "&cengshu=" + cengshu+ "&hangshu=" + hangshu+ "&type=" + type;
$.ajax({ $.ajax({
url: url, url: url,
type: "GET", type: "GET",