|
@@ -90,7 +90,7 @@ public class IndexCtl extends BaseWebCtl {
|
|
|
}
|
|
|
model.addAttribute("list", list);
|
|
|
}
|
|
|
- if(GlobalData.CITY_CODE.equals("90016")){
|
|
|
+ if (GlobalData.CITY_CODE.equals("90016")) {
|
|
|
isJyr = isJyr();
|
|
|
}
|
|
|
model.addAttribute("menuid", menuid);
|
|
@@ -118,7 +118,8 @@ public class IndexCtl extends BaseWebCtl {
|
|
|
if (StringUtils.isNotEmpty(gqid)) {
|
|
|
list.add(cb.like(root.get("szgq").get("id").as(String.class), "%" + gqid + "%"));
|
|
|
}
|
|
|
- //list.add(cb.equal(root.get("recordStatus").as(Integer.class), BaseEntity.RECORD_STATE_VALID));
|
|
|
+ // list.add(cb.equal(root.get("recordStatus").as(Integer.class),
|
|
|
+ // BaseEntity.RECORD_STATE_VALID));
|
|
|
list.add(cb.notEqual(root.get("recordStatus").as(Integer.class), BaseEntity.RECORE_STATE_COPY));
|
|
|
list.add(cb.notEqual(root.get("recordStatus").as(Integer.class), BaseEntity.RECORD_STATE_DELETE));
|
|
|
list.add(cb.notEqual(root.get("recordStatus").as(Integer.class), BaseEntity.RECORE_STATE_BGFLAG));
|
|
@@ -164,8 +165,8 @@ public class IndexCtl extends BaseWebCtl {
|
|
|
List<BwEntity> bwlist = query.findAll(spec2, BwEntity.class);
|
|
|
int bwnum = bwlist != null ? bwlist.size() : 0;
|
|
|
map.put("bwnum", bwnum + "");
|
|
|
-
|
|
|
- //许可证有效期 内的企业数
|
|
|
+
|
|
|
+ // 许可证有效期 内的企业数
|
|
|
Specification<XkzxxEntity> spec4 = new Specification<XkzxxEntity>() {
|
|
|
|
|
|
@Override
|
|
@@ -197,9 +198,9 @@ public class IndexCtl extends BaseWebCtl {
|
|
|
for (BwEntity bw : bwlist) {
|
|
|
if (null != bw.getNhwtgnl()) {
|
|
|
bwztul += Double.parseDouble(bw.getNhwtgnl());
|
|
|
- }else if(null==bw.getNhwtgnl()&&bw.getNjzxtgnl()!=null){
|
|
|
+ } else if (null == bw.getNhwtgnl() && bw.getNjzxtgnl() != null) {
|
|
|
bwztul += Double.parseDouble(bw.getNjzxtgnl());
|
|
|
- bwztul = bwztul*10;
|
|
|
+ bwztul = bwztul * 10;
|
|
|
}
|
|
|
}
|
|
|
bwztul = bwztul / 10000;
|
|
@@ -279,45 +280,55 @@ public class IndexCtl extends BaseWebCtl {
|
|
|
}
|
|
|
return wr;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
- /*下载用户操作手册:
|
|
|
- *市级: 经营人 2
|
|
|
- 行政人员 1
|
|
|
- *省级:行政人员 0
|
|
|
- */
|
|
|
+
|
|
|
+ /*
|
|
|
+ * 下载用户操作手册:市级: 经营人 2 行政人员 1省级:行政人员 0
|
|
|
+ */
|
|
|
@RequestMapping(value = "/downloadUserOperationFile")
|
|
|
- public WebJsonResult downloadUserOperationFile(String userId, HttpServletRequest request,HttpServletResponse response) {
|
|
|
+ public WebJsonResult downloadUserOperationFile(String userId, HttpServletRequest request, HttpServletResponse response) {
|
|
|
// path是指欲下载的文件的路径。
|
|
|
String path = "";
|
|
|
String fileName = "";
|
|
|
- if(userId.equals("0")){
|
|
|
+ if (userId.equals("0")) {
|
|
|
path = GlobalData.UPLOAD_FILE_PATH + "\\userOperationFile\\1.pdf";
|
|
|
fileName = "省厅行政人员系统操作手册.pdf";
|
|
|
- }else if(userId.equals("1")){
|
|
|
+ } else if (userId.equals("1")) {
|
|
|
path = GlobalData.UPLOAD_FILE_PATH + "\\userOperationFile\\2.pdf";
|
|
|
fileName = "市级行政人员系统操作手册.pdf";
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
path = GlobalData.UPLOAD_FILE_PATH + "\\userOperationFile\\3.pdf";
|
|
|
fileName = "市级经营人系统操作手册.pdf";
|
|
|
}
|
|
|
try {
|
|
|
- // 以流的形式下载文件。
|
|
|
- InputStream fis = new BufferedInputStream(new FileInputStream(path));
|
|
|
- byte[] buffer = new byte[fis.available()];
|
|
|
- fis.read(buffer);
|
|
|
- fis.close();
|
|
|
- // 设置response的Header
|
|
|
- response.setCharacterEncoding("utf-8");
|
|
|
- response.setContentType("multipart/form-data");
|
|
|
- fileName = URLEncoder.encode(fileName, "UTF-8");
|
|
|
- response.setHeader("Content-Disposition", "attachment;fileName=" + fileName);
|
|
|
- response.getOutputStream().write(buffer);
|
|
|
+ // 以流的形式下载文件。
|
|
|
+ InputStream fis = new BufferedInputStream(new FileInputStream(path));
|
|
|
+ byte[] buffer = new byte[fis.available()];
|
|
|
+ fis.read(buffer);
|
|
|
+ fis.close();
|
|
|
+ // 设置response的Header
|
|
|
+ response.setCharacterEncoding("utf-8");
|
|
|
+ response.setContentType("multipart/form-data");
|
|
|
+ fileName = URLEncoder.encode(fileName, "UTF-8");
|
|
|
+ response.setHeader("Content-Disposition", "attachment;fileName=" + fileName);
|
|
|
+ response.getOutputStream().write(buffer);
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
-
|
|
|
|
|
|
+ @RequestMapping(value = "/getCityData")
|
|
|
+ @ResponseBody
|
|
|
+ public WebJsonResult getCityData(Model model) {
|
|
|
+ WebJsonResult wr = success();
|
|
|
+ try {
|
|
|
+ Map<String, Object> map = getXx(GlobalData.CITY_CODE, null, null);
|
|
|
+ wr.setAttrs(map);
|
|
|
+ } catch (Exception e) {
|
|
|
+ wr.setSuccess(false);
|
|
|
+ wr.setMessage("操作失败!");
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return wr;
|
|
|
+ }
|
|
|
}
|