Commit eeee5305 by wuchengwu

森林,高支队透视层级控制

parent e25169aa
......@@ -109,6 +109,15 @@ public class RstBean implements Serializable {
private String sxzlcjl;//三项质量合格率,表示十指纹、人像、手机质量合格率
private String ifslgzd;//是否为森林高支队透视
public String getIfslgzd() {
return ifslgzd;
}
public void setIfslgzd(String ifslgzd) {
this.ifslgzd = ifslgzd;
}
public String getRys() {
return rys;
......
......@@ -34,10 +34,10 @@ public class IRycjtjServiceImpl implements IRycjtjService {
private String sjcjEsUrl;
@Override
public List<RstBean> getRsts(RstBean ajflpt, String unit_matchstring, int unitgrade, int ifslgzd) {
public List<RstBean> getRsts(RstBean ajflpt, String unitMatchstring, int unitgrade, int ifslgzd) {
List<RstBean> zwzltjBeans = new ArrayList<RstBean>();
List<UnitCodeBean> nuitCodes = null;
nuitCodes = xsdw(unit_matchstring, ifslgzd, unitgrade);
nuitCodes = xsdw(unitMatchstring, ifslgzd, unitgrade);
Map<String, String> filterMap = new HashMap<String, String>();
Map<String, String> filterMap1 = new HashMap<String, String>();
Map<String, String> filterMap2 = new HashMap<String, String>();
......@@ -79,14 +79,14 @@ public class IRycjtjServiceImpl implements IRycjtjService {
if (unitgrade == 10) {
} else if (ifslgzd == 1) {
filterMap.put("sqlwhere", "(lrdwdm like '" + unit_matchstring.substring(0, 4) + "%s%' or lrdwdm like '" + unit_matchstring.substring(0, 4) + "%S%' or lrdwdm like '" + unit_matchstring.substring(0, 4) + "%88____')");
filterMap.put("sqlwhere", "(lrdwdm like '" + unitMatchstring.substring(0, 4) + "%s%' or lrdwdm like '" + unitMatchstring.substring(0, 4) + "%S%' or lrdwdm like '" + unitMatchstring.substring(0, 4) + "%88____')");
} else if (ifslgzd == 2) {
filterMap.put("sqlwhere", "(lrdwdm like '" + unit_matchstring.substring(0, 4) + "%g%' or lrdwdm like '" + unit_matchstring.substring(0, 4) + "%G%')");
filterMap.put("sqlwhere", "(lrdwdm like '" + unitMatchstring.substring(0, 4) + "%g%' or lrdwdm like '" + unitMatchstring.substring(0, 4) + "%G%')");
} else {
filterMap.put("sqlwhere", "lrdwdm not like '" + unit_matchstring.substring(0, 4) + "%s%' and lrdwdm not like '" + unit_matchstring.substring(0, 4) + "%S%' and lrdwdm not like '" + unit_matchstring.substring(0, 4) + "%G%' and lrdwdm not like '" + unit_matchstring.substring(0, 4) + "%g%' and lrdwdm not like '" + unit_matchstring.substring(0, 4) + "%88____'");
filterMap.put("sqlwhere", "lrdwdm not like '" + unitMatchstring.substring(0, 4) + "%s%' and lrdwdm not like '" + unitMatchstring.substring(0, 4) + "%S%' and lrdwdm not like '" + unitMatchstring.substring(0, 4) + "%G%' and lrdwdm not like '" + unitMatchstring.substring(0, 4) + "%g%' and lrdwdm not like '" + unitMatchstring.substring(0, 4) + "%88____'");
}
filterMap1.put("sqlwhere", "(lrdwdm like '" + unit_matchstring.substring(0, 4) + "%s%' or lrdwdm like '" + unit_matchstring.substring(0, 4) + "%S%' or lrdwdm like '" + unit_matchstring.substring(0, 4) + "%88____')");
filterMap2.put("sqlwhere", "(lrdwdm like '" + unit_matchstring.substring(0, 4) + "%G%' or lrdwdm like '" + unit_matchstring.substring(0, 4) + "%g%')");
filterMap1.put("sqlwhere", "(lrdwdm like '" + unitMatchstring.substring(0, 4) + "%s%' or lrdwdm like '" + unitMatchstring.substring(0, 4) + "%S%' or lrdwdm like '" + unitMatchstring.substring(0, 4) + "%88____')");
filterMap2.put("sqlwhere", "(lrdwdm like '" + unitMatchstring.substring(0, 4) + "%G%' or lrdwdm like '" + unitMatchstring.substring(0, 4) + "%g%')");
if (nuitCodes != null) {
if (ifslgzd == 0) {
......@@ -331,6 +331,7 @@ public class IRycjtjServiceImpl implements IRycjtjService {
sl.get(0).setUnitgrade(sunitgrade);
sl.get(0).setZeroCode(zeroCode);
sl.get(0).setTjType(ajflpt.getTjType());
sl.get(0).setIfslgzd("true");
sl.get(0).setZwcjl(jscjl(sl.get(0).getYcs(), sl.get(0).getZwcjs()));
sl.get(0).setRxcjl(jscjl(sl.get(0).getYcs(), sl.get(0).getRxcjs()));
sl.get(0).setSwcjl(jscjl(sl.get(0).getYcs(), sl.get(0).getSwcjs()));
......@@ -347,6 +348,7 @@ public class IRycjtjServiceImpl implements IRycjtjService {
gzd.get(0).setUnitgrade(sunitgrade);
gzd.get(0).setZeroCode(zeroCode);
gzd.get(0).setTjType(ajflpt.getTjType());
gzd.get(0).setIfslgzd("true");
gzd.get(0).setZwcjl(jscjl(gzd.get(0).getYcs(), gzd.get(0).getZwcjs()));
gzd.get(0).setRxcjl(jscjl(gzd.get(0).getYcs(), gzd.get(0).getRxcjs()));
gzd.get(0).setSwcjl(jscjl(gzd.get(0).getYcs(), gzd.get(0).getSwcjs()));
......@@ -363,10 +365,10 @@ public class IRycjtjServiceImpl implements IRycjtjService {
}
@Override
public List<RstBean> getSjcjs(RstBean ajflpt, String unit_matchstring, int unitgrade, int ifslgzd) {
public List<RstBean> getSjcjs(RstBean ajflpt, String unitMatchstring, int unitgrade, int ifslgzd) {
List<RstBean> zwzltjBeans = new ArrayList<RstBean>();
List<UnitCodeBean> nuitCodes = null;
nuitCodes = xsdw(unit_matchstring, ifslgzd, unitgrade);
nuitCodes = xsdw(unitMatchstring, ifslgzd, unitgrade);
Map<String, String> filterMap = new HashMap<String, String>();
Map<String, String> filterMap1 = new HashMap<String, String>();
Map<String, String> filterMap2 = new HashMap<String, String>();
......@@ -486,13 +488,13 @@ public class IRycjtjServiceImpl implements IRycjtjService {
}
@Override
public List<RstBean> getHgl(RstBean ajflpt, String unit_matchstring, int unitgrade, int ifslgzd) {
public List<RstBean> getHgl(RstBean ajflpt, String unitMatchstring, int unitgrade, int ifslgzd) {
List<RstBean> zwzltjBeans = new ArrayList<RstBean>();
List<TbRyRycj> tbRyRycj = new ArrayList<>();
List<TbRyRycj> tbRyRycjsl = new ArrayList<>();
List<TbRyRycj> tbRyRycjgz = new ArrayList<>();
List<UnitCodeBean> nuitCodes = null;
nuitCodes = xsdw(unit_matchstring, ifslgzd, unitgrade);
nuitCodes = xsdw(unitMatchstring, ifslgzd, unitgrade);
Map<String, String> filterMap = new HashMap<String, String>();
Map<String, String> filterMap1 = new HashMap<String, String>();
Map<String, String> filterMap2 = new HashMap<String, String>();
......@@ -516,14 +518,14 @@ public class IRycjtjServiceImpl implements IRycjtjService {
if (unitgrade == 10) {
} else if (ifslgzd == 1) {
filterMap.put("sqlwhere", "(lrdwdm like '" + unit_matchstring.substring(0, 4) + "%s%' or lrdwdm like '" + unit_matchstring.substring(0, 4) + "%S%' or lrdwdm like '" + unit_matchstring.substring(0, 4) + "%88____')");
filterMap.put("sqlwhere", "(lrdwdm like '" + unitMatchstring.substring(0, 4) + "%s%' or lrdwdm like '" + unitMatchstring.substring(0, 4) + "%S%' or lrdwdm like '" + unitMatchstring.substring(0, 4) + "%88____')");
} else if (ifslgzd == 2) {
filterMap.put("sqlwhere", "(lrdwdm like '" + unit_matchstring.substring(0, 4) + "%g%' or lrdwdm like '" + unit_matchstring.substring(0, 4) + "%G%')");
filterMap.put("sqlwhere", "(lrdwdm like '" + unitMatchstring.substring(0, 4) + "%g%' or lrdwdm like '" + unitMatchstring.substring(0, 4) + "%G%')");
} else {
filterMap.put("sqlwhere", "lrdwdm not like '" + unit_matchstring.substring(0, 4) + "%s%' and lrdwdm not like '" + unit_matchstring.substring(0, 4) + "%S%' and lrdwdm not like '" + unit_matchstring.substring(0, 4) + "%G%' and lrdwdm not like '" + unit_matchstring.substring(0, 4) + "%g%' and lrdwdm not like '" + unit_matchstring.substring(0, 4) + "%88____'");
filterMap.put("sqlwhere", "lrdwdm not like '" + unitMatchstring.substring(0, 4) + "%s%' and lrdwdm not like '" + unitMatchstring.substring(0, 4) + "%S%' and lrdwdm not like '" + unitMatchstring.substring(0, 4) + "%G%' and lrdwdm not like '" + unitMatchstring.substring(0, 4) + "%g%' and lrdwdm not like '" + unitMatchstring.substring(0, 4) + "%88____'");
}
filterMap1.put("sqlwhere", "(lrdwdm like '" + unit_matchstring.substring(0, 4) + "%s%' or lrdwdm like '" + unit_matchstring.substring(0, 4) + "%S%' or lrdwdm like '" + unit_matchstring.substring(0, 4) + "%88____')");
filterMap2.put("sqlwhere", "(lrdwdm like '" + unit_matchstring.substring(0, 4) + "%G%' or lrdwdm like '" + unit_matchstring.substring(0, 4) + "%g%')");
filterMap1.put("sqlwhere", "(lrdwdm like '" + unitMatchstring.substring(0, 4) + "%s%' or lrdwdm like '" + unitMatchstring.substring(0, 4) + "%S%' or lrdwdm like '" + unitMatchstring.substring(0, 4) + "%88____')");
filterMap2.put("sqlwhere", "(lrdwdm like '" + unitMatchstring.substring(0, 4) + "%G%' or lrdwdm like '" + unitMatchstring.substring(0, 4) + "%g%')");
//根据用户等级判断
if (unitgrade == 10) { //省——>市
......@@ -559,7 +561,7 @@ public class IRycjtjServiceImpl implements IRycjtjService {
List<RstBean> rxzlcjs = khtjDao.getRycjtjListrxzlcjs(filterMap);//人像质量采集数
// List<RstBean> sjzlcjs = khtjDao.getRycjtjListsjzlcjs(filterMap);//手机质量采集数
String sjUrl = sjcjEsUrl + "/hglqktj?ccdw=" + unit_matchstring + "&maxccsjStr=" + maxccsj + "&minccsjStr=" + minccsj
String sjUrl = sjcjEsUrl + "/hglqktj?ccdw=" + unitMatchstring + "&maxccsjStr=" + maxccsj + "&minccsjStr=" + minccsj
+ "&unitgrade=" + unitgrade + "&ifslgzd=" + ifslgzd;
try {
String sjStr = OkHttpUtils.get(sjUrl);
......@@ -762,6 +764,9 @@ public class IRycjtjServiceImpl implements IRycjtjService {
sl.get(0).setSjyxcjl(jscjl(tbRyRycjsl.get(0).getSjycs(), tbRyRycjsl.get(0).getSjyxcjs()));
sl.get(0).setZwcjl(jscjl(sl.get(0).getZwcjs(), sl.get(0).getZwzlcjs()));
sl.get(0).setRxzlcjl(jscjl(sl.get(0).getRxcjs(), sl.get(0).getRxzlcjs()));
//计算指纹、人像和手机质量采集率
sl.get(0).setZwzlcjl(jscjl(sl.get(0).getZwcjs(), sl.get(0).getZwzlcjs()));
sl.get(0).setRxzlcjl(jscjl(sl.get(0).getRxcjs(), sl.get(0).getRxzlcjs()));
sl.get(0).setSjzlcjl(jscjl(tbRyRycjsl.get(0).getSjcjs(), tbRyRycjsl.get(0).getSjzlcjs()));
String slCjs = String.valueOf(Integer.parseInt(sl.get(0).getZwcjs()) + Integer.parseInt(sl.get(0).getRxcjs()) + Integer.parseInt(tbRyRycjsl.get(0).getSjcjs()));
String slZljs = String.valueOf(Integer.parseInt(sl.get(0).getZwzlcjs()) + Integer.parseInt(sl.get(0).getRxzlcjs()) + Integer.parseInt(tbRyRycjsl.get(0).getSjzlcjs()));
......@@ -787,6 +792,9 @@ public class IRycjtjServiceImpl implements IRycjtjService {
gzd.get(0).setSjyxcjl(jscjl(tbRyRycjgz.get(0).getSjycs(), tbRyRycjgz.get(0).getSjyxcjs()));
gzd.get(0).setZwcjl(jscjl(gzd.get(0).getZwcjs(), gzd.get(0).getZwzlcjs()));
gzd.get(0).setRxzlcjl(jscjl(gzd.get(0).getRxcjs(), gzd.get(0).getRxzlcjs()));
//计算指纹、人像和手机质量采集率
gzd.get(0).setZwzlcjl(jscjl(gzd.get(0).getZwcjs(), gzd.get(0).getZwzlcjs()));
gzd.get(0).setRxzlcjl(jscjl(gzd.get(0).getRxcjs(), gzd.get(0).getRxzlcjs()));
gzd.get(0).setSjzlcjl(jscjl(tbRyRycjgz.get(0).getSjcjs(), tbRyRycjgz.get(0).getSjzlcjs()));
String gzCjs = String.valueOf(Integer.parseInt(gzd.get(0).getZwcjs()) + Integer.parseInt(gzd.get(0).getRxcjs()) + Integer.parseInt(tbRyRycjgz.get(0).getSjcjs()));
String gzZljs = String.valueOf(Integer.parseInt(gzd.get(0).getZwzlcjs()) + Integer.parseInt(gzd.get(0).getRxzlcjs()) + Integer.parseInt(tbRyRycjgz.get(0).getSjzlcjs()));
......@@ -796,7 +804,7 @@ public class IRycjtjServiceImpl implements IRycjtjService {
zwzltjBeans.add(gzd.get(0));
}
} else {
String sjUrl = sjcjEsUrl + "/hglqktj?ccdw=" + unit_matchstring + "&maxccsjStr=" + maxccsj + "&minccsjStr=" + minccsj
String sjUrl = sjcjEsUrl + "/hglqktj?ccdw=" + unitMatchstring + "&maxccsjStr=" + maxccsj + "&minccsjStr=" + minccsj
+ "&unitgrade=" + unitgrade + "&ifslgzd=" + ifslgzd;
try {
String sjStr = OkHttpUtils.get(sjUrl);
......@@ -849,6 +857,7 @@ public class IRycjtjServiceImpl implements IRycjtjService {
String slZljs = String.valueOf(Integer.parseInt(sl.get(0).getZwzlcjs()) + Integer.parseInt(sl.get(0).getRxzlcjs()) + Integer.parseInt(sl.get(0).getSjzlcjs()));
sl.get(0).setSxzlcjl(jscjl(slCjs, slZljs));
sl.get(0).setTxls("1");
sl.get(0).setIfslgzd("true");
zwzltjBeans.add(sl.get(0));
} else if (ifslgzd == 2) {
filterMap2.put("lrdwdm", zeroUnit);
......@@ -881,6 +890,7 @@ public class IRycjtjServiceImpl implements IRycjtjService {
String gzZljs = String.valueOf(Integer.parseInt(gzd.get(0).getZwzlcjs()) + Integer.parseInt(gzd.get(0).getRxzlcjs()) + Integer.parseInt(gzd.get(0).getSjzlcjs()));
gzd.get(0).setSxzlcjl(jscjl(gzCjs, gzZljs));
gzd.get(0).setTxls("2");
gzd.get(0).setIfslgzd("true");
zwzltjBeans.add(gzd.get(0));
}
}
......@@ -925,19 +935,19 @@ public class IRycjtjServiceImpl implements IRycjtjService {
}
public List<UnitCodeBean> xsdw(String unit_matchstring, int ifslgzd, int unitgrade) {
public List<UnitCodeBean> xsdw(String unitMatchstring, int ifslgzd, int unitgrade) {
List<UnitCodeBean> unitCodeBean = null;
if ("__0000000000".equals(unit_matchstring)) {
if ("__0000000000".equals(unitMatchstring)) {
unitCodeBean = null;
} else {
Map<String, String> filterMap = new HashMap<String, String>();
filterMap.put("code", unit_matchstring);
filterMap.put("code", unitMatchstring);
if (ifslgzd == 1) {
filterMap.put("sqlwhere", "(code like '" + unit_matchstring.substring(0, 4) + "%s%' or code like '" + unit_matchstring.substring(0, 4) + "%S%' or code like '" + unit_matchstring.substring(0, 4) + "%88____')");
filterMap.put("sqlwhere", "(code like '" + unitMatchstring.substring(0, 4) + "%s%' or code like '" + unitMatchstring.substring(0, 4) + "%S%' or code like '" + unitMatchstring.substring(0, 4) + "%88____')");
} else if (ifslgzd == 2) {
filterMap.put("sqlwhere", "(code like '" + unit_matchstring.substring(0, 4) + "%g%' or code like '" + unit_matchstring.substring(0, 4) + "%G%')");
filterMap.put("sqlwhere", "(code like '" + unitMatchstring.substring(0, 4) + "%g%' or code like '" + unitMatchstring.substring(0, 4) + "%G%')");
} else {
filterMap.put("sqlwhere", "code not like '" + unit_matchstring.substring(0, 4) + "%s%' and code not like '" + unit_matchstring.substring(0, 4) + "%S%' and code not like '" + unit_matchstring.substring(0, 4) + "%G%' and code not like '" + unit_matchstring.substring(0, 4) + "%g%' and code not like '" + unit_matchstring.substring(0, 4) + "%88____'");
filterMap.put("sqlwhere", "code not like '" + unitMatchstring.substring(0, 4) + "%s%' and code not like '" + unitMatchstring.substring(0, 4) + "%S%' and code not like '" + unitMatchstring.substring(0, 4) + "%G%' and code not like '" + unitMatchstring.substring(0, 4) + "%g%' and code not like '" + unitMatchstring.substring(0, 4) + "%88____'");
}
unitCodeBean = khtjDao.getUnitCodeList(filterMap);
}
......
......@@ -155,6 +155,16 @@ public class TbRyRycj {
private String sxzlcjl;//三项质量合格率,表示十指纹、人像、手机质量合格率
private String ifslgzd;//是否为森林高支队透视
public String getIfslgzd() {
return ifslgzd;
}
public void setIfslgzd(String ifslgzd) {
this.ifslgzd = ifslgzd;
}
public String getZwycs() {
return zwycs;
}
......
......@@ -52,7 +52,7 @@
<td class="td_r">统计单位:</td>
<td>
<p class="datebox-h">
<input type="text" style="height: 25px;" id="RCcdw" name="RCcdw" class="val easyui-combotree" data-options="url: '/queryTypeCode?type=CODE_QGUNIT',method:'get',textField : 'text', valueField : 'id'"/>
<input type="text" style="height: 25px;" id="RCcdw" name="RCcdw" class="val easyui-combotree" data-options="url: '/queryTypeCode?type=CODE_UNIT',method:'get',textField : 'text', valueField : 'id'"/>
</p>
</td>
<td class="td_r">统计时间:</td>
......@@ -159,7 +159,11 @@
// return "<a href='javascript:void(0)' style='text-decoration:none;' onclick=showlist('"+nameCode+"','"+row.unitgrade+"','xtzrs','"+value+"','"+row.maxccsjStr+"','"+row.minccsjStr+"','" + row.name + "')>"+value+"</a>";
}else {
if(row.unitgrade > '4') {
return "<a href='javascript:void(0)' style='text-decoration:none;' onclick=doQuery('" + row.code + "','" + row.unitgrade + "','true')>" + value + "</a>";
if(row.ifslgzd !='true'){
return "<a href='javascript:void(0)' style='text-decoration:none;' onclick=doQuery('" + row.code + "','" + row.unitgrade + "','true')>" + value + "</a>";
}else {
return value;
}
}else {
return value;
}
......
......@@ -154,8 +154,12 @@
return value;
// return "<a href='javascript:void(0)' style='text-decoration:none;' onclick=showlist('"+nameCode+"','"+row.unitgrade+"','xtzrs','"+value+"','"+row.maxccsjStr+"','"+row.minccsjStr+"','" + row.name + "')>"+value+"</a>";
}else {
if(row.unitgrade > '4') {
return "<a href='javascript:void(0)' style='text-decoration:none;' onclick=doQuery('" + row.code + "','" + row.unitgrade + "','true')>" + value + "</a>";
if(row.unitgrade > '4' ) {
if(row.ifslgzd !='true'){
return "<a href='javascript:void(0)' style='text-decoration:none;' onclick=doQuery('" + row.code + "','" + row.unitgrade + "','true')>" + value + "</a>";
}else {
return value;
}
}else {
return value;
}
......
......@@ -157,7 +157,11 @@
// return "<a href='javascript:void(0)' style='text-decoration:none;' onclick=showlist('"+nameCode+"','"+row.unitgrade+"','xtzrs','"+value+"','"+row.maxccsjStr+"','"+row.minccsjStr+"','" + row.name + "')>"+value+"</a>";
}else {
if(row.unitgrade > 4) {
return "<a href='javascript:void(0)' style='text-decoration:none;' onclick=doQuery('" + row.code + "','" + row.unitgrade + "','true')>" + value + "</a>";
if(row.ifslgzd !='true'){
return "<a href='javascript:void(0)' style='text-decoration:none;' onclick=doQuery('" + row.code + "','" + row.unitgrade + "','true')>" + value + "</a>";
}else {
return value;
}
}else {
return value;
}
......
......@@ -432,7 +432,7 @@
// window.open("/toZlcc?rybh=" + rybh + "&szzwbh=" + szzwbh + "&ccbh=" + $("#ccbh").val()+ "&rwbh=" + rwbh, '_blank');
var ccfs = $("#ccfs").val();
var jcfs = $("#jcfs").val();
if (jcfs >= ccfs) {
if (parseInt(jcfs) >= parseInt(ccfs)) {
$.messager.alert('提示', "该任务抽查数据已满,无法继续进行抽查!");
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment