|
|
|
@ -1,8 +1,7 @@
|
|
|
|
|
package com.dsideal.base.LoginPerson.Controller;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.captcha.CaptchaUtil;
|
|
|
|
|
import cn.hutool.captcha.LineCaptcha;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.dsideal.base.BaseApplication;
|
|
|
|
|
import com.dsideal.base.Interceptor.*;
|
|
|
|
|
import com.dsideal.base.LoginPerson.Model.LoginPersonModel;
|
|
|
|
|
import com.dsideal.base.Base.Model.BaseModel;
|
|
|
|
@ -16,10 +15,7 @@ import com.jfinal.kit.PropKit;
|
|
|
|
|
import com.jfinal.kit.StrKit;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Page;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
|
import com.jfinal.plugin.redis.Redis;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import javax.servlet.http.HttpSession;
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.Map;
|
|
|
|
@ -100,7 +96,7 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
_map.put("bureau_id", loginMap.get("bureau_id"));
|
|
|
|
|
_map.put("org_code", loginMap.get("org_code"));
|
|
|
|
|
|
|
|
|
|
String token = CommonUtil.Sign(_map, PropKit.get("CookieMd5SingPwd"));
|
|
|
|
|
String token = CommonUtil.Sign(_map, BaseApplication.PropKit.get("jwt.CookieMd5SingPwd"));
|
|
|
|
|
CookieUtil.set(getResponse(), "identity_id", loginMap.get("identity_id").toString(), false, true);
|
|
|
|
|
CookieUtil.set(getResponse(), "person_id", loginMap.get("person_id").toString(), false, true);
|
|
|
|
|
CookieUtil.set(getResponse(), "bureau_id", loginMap.get("bureau_id").toString(), false, true);
|
|
|
|
@ -238,7 +234,7 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
@IsSysAdminInterface({"1"})
|
|
|
|
|
public void getPrintCityManagerForExcel() {
|
|
|
|
|
//模板文件
|
|
|
|
|
String excelPath = PathKit.getRootClassPath() + PropKit.get("excelExportTemplatePathSuffix").replace("\\", "/");
|
|
|
|
|
String excelPath = PathKit.getRootClassPath() + BaseApplication.PropKit.get("excel.excelExportTemplatePathSuffix").replace("\\", "/");
|
|
|
|
|
String filePath = excelPath + "getPrintCityManager.json";
|
|
|
|
|
//转成 json对象
|
|
|
|
|
JSONObject jo = FileUtil.readJsonFile(filePath);
|
|
|
|
@ -275,7 +271,7 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
@IsSysAdminInterface({"1", "2"})
|
|
|
|
|
public void getPrintCityBureauForExcel() {
|
|
|
|
|
//模板文件
|
|
|
|
|
String excelPath = PathKit.getRootClassPath() + PropKit.get("excelExportTemplatePathSuffix").replace("\\", "/");
|
|
|
|
|
String excelPath = PathKit.getRootClassPath() + BaseApplication.PropKit.get("excel.excelExportTemplatePathSuffix").replace("\\", "/");
|
|
|
|
|
String filePath = excelPath + "getPrintCityBureau.json";
|
|
|
|
|
//转成 json对象
|
|
|
|
|
JSONObject jo = FileUtil.readJsonFile(filePath);
|
|
|
|
@ -312,7 +308,7 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
@IsSysAdminInterface({"1", "2", "3"})
|
|
|
|
|
public void getPrintAreaManagerForExcel() {
|
|
|
|
|
//模板文件
|
|
|
|
|
String excelPath = PathKit.getRootClassPath() + PropKit.get("excelExportTemplatePathSuffix").replace("\\", "/");
|
|
|
|
|
String excelPath = PathKit.getRootClassPath() + BaseApplication.PropKit.get("excel.excelExportTemplatePathSuffix").replace("\\", "/");
|
|
|
|
|
String filePath = excelPath + "getPrintAreaManager.json";
|
|
|
|
|
//转成 json对象
|
|
|
|
|
JSONObject jo = FileUtil.readJsonFile(filePath);
|
|
|
|
@ -351,7 +347,7 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
@EmptyInterface({"area_id"})
|
|
|
|
|
public void getPrintAreaBureauForExcel(String area_id) {
|
|
|
|
|
//模板文件
|
|
|
|
|
String excelPath = PathKit.getRootClassPath() + PropKit.get("excelExportTemplatePathSuffix").replace("\\", "/");
|
|
|
|
|
String excelPath = PathKit.getRootClassPath() + BaseApplication.PropKit.get("excel.excelExportTemplatePathSuffix").replace("\\", "/");
|
|
|
|
|
String filePath = excelPath + "getPrintAreaBureau.json";
|
|
|
|
|
//转成 json对象
|
|
|
|
|
JSONObject jo = FileUtil.readJsonFile(filePath);
|
|
|
|
|