Commit 161a198c by mobh

修改代码

parent 5e28a7d7
package cn.timer.api.controller; package cn.timer.api.controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -9,7 +7,6 @@ import java.util.Date; ...@@ -9,7 +7,6 @@ import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import javax.management.Query;
import javax.servlet.ServletOutputStream; import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -42,7 +39,6 @@ import cn.timer.api.aspect.lang.annotation.Log; ...@@ -42,7 +39,6 @@ import cn.timer.api.aspect.lang.annotation.Log;
import cn.timer.api.aspect.lang.enums.BusinessType; import cn.timer.api.aspect.lang.enums.BusinessType;
import cn.timer.api.bean.admin.AdminMenuTemplate; import cn.timer.api.bean.admin.AdminMenuTemplate;
import cn.timer.api.bean.jxgl.JxglBasicSetting; import cn.timer.api.bean.jxgl.JxglBasicSetting;
import cn.timer.api.bean.kqmk.KqglAssoBcsz;
import cn.timer.api.bean.kqmk.KqglAssoLeaveEmployeeBalance; import cn.timer.api.bean.kqmk.KqglAssoLeaveEmployeeBalance;
import cn.timer.api.bean.kqmk.KqglAssoLeaveRules; import cn.timer.api.bean.kqmk.KqglAssoLeaveRules;
import cn.timer.api.bean.kqmk.KqglAssoLeaveRulesT; import cn.timer.api.bean.kqmk.KqglAssoLeaveRulesT;
...@@ -117,26 +113,6 @@ public class LoginController { ...@@ -117,26 +113,6 @@ public class LoginController {
@Value("${config-8timer.Aliyun.SECRET}") @Value("${config-8timer.Aliyun.SECRET}")
private String SECRET; private String SECRET;
// public static String host;
// public static String PROJECT_ID;
// public static String PROJECT_SECRET;
//
// @Value("${config-8timer.esign.host}")
// private String host_s;
//
// @Value("${config-8timer.esign.PROJECT_ID}")
// private String PROJECT_ID_s;
//
// @Value("${config-8timer.esign.PROJECT_SECRET}")
// private String PROJECT_SECRET_s;
//
// @PostConstruct
// public void init() {
// host = host_s;
// PROJECT_ID = PROJECT_ID_s;
// PROJECT_SECRET = PROJECT_SECRET_s;
// }
@Value("${config-8timer.Aliyun.PROJECT_NAME}") @Value("${config-8timer.Aliyun.PROJECT_NAME}")
private String endpoint; private String endpoint;
...@@ -197,7 +173,7 @@ public class LoginController { ...@@ -197,7 +173,7 @@ public class LoginController {
/** /**
* 发送验证码 * 发送验证码
* *
* @param qyzxEmpLogin * @param entRegisterDto
* @return * @return
*/ */
@PostMapping(value = "/sendcode") @PostMapping(value = "/sendcode")
...@@ -291,7 +267,7 @@ public class LoginController { ...@@ -291,7 +267,7 @@ public class LoginController {
/** /**
* 手机号码认证 * 手机号码认证
* *
* @param qyzxEmpLogin * @param entRegisterDto
* @return * @return
*/ */
@PostMapping(value = "/authentication") @PostMapping(value = "/authentication")
...@@ -317,39 +293,6 @@ public class LoginController { ...@@ -317,39 +293,6 @@ public class LoginController {
return ResultUtil.success("验证码正确"); return ResultUtil.success("验证码正确");
} }
/**
* 手机号码认证
*
* @param qyzxEmpLogin
* @return
* @throws IOException
*//*
* @PostMapping(value = "/test")
*
* @ApiOperation(value = "3.测试", httpMethod = "POST", notes = "接口发布说明")
*
* @ApiOperationSupport(order = 3) public void test(HttpServletRequest request,
* HttpServletResponse res) throws IOException {
*
* res.setHeader("content-type","text/html;charset=UTF-8");
* res.setHeader("selfHeader","selfHeaderValue"); //
* res.addHeader("response_code", "123"); //
* res.setContentType("application/octet-stream"); //
* res.addHeader("Content-Length", "0");
*
* res.addHeader("response_code", "100"); res.addHeader("trans_id", "");
* res.addHeader("cmd_code", "NO com");
*
* res.setContentType("application/octet-stream");
* res.addHeader("Content-Length", "0");
*
* res.flushBuffer(); // response.addHeader("response_code",
* "ERROR_INVALID_LIB_NAME"); //
* response.setContentType("application/octet-stream"); //
* response.addHeader("Content-Length", "0"); // response.flushBuffer();
* Logoutput(111); }
*/
@PostMapping(value = "/updatePwd") @PostMapping(value = "/updatePwd")
@ApiOperation(value = "4.修改密码(新)", httpMethod = "POST", notes = "接口发布说明") @ApiOperation(value = "4.修改密码(新)", httpMethod = "POST", notes = "接口发布说明")
@ApiOperationSupport(order = 4) @ApiOperationSupport(order = 4)
...@@ -398,7 +341,7 @@ public class LoginController { ...@@ -398,7 +341,7 @@ public class LoginController {
/** /**
* 修改密码 * 修改密码
* *
* @param qyzxEmpLogin * @param entRegisterDto
* @return * @return
*/ */
@PostMapping(value = "/updatepassword") @PostMapping(value = "/updatepassword")
...@@ -461,7 +404,7 @@ public class LoginController { ...@@ -461,7 +404,7 @@ public class LoginController {
/** /**
* 修改手机号/用户名 * 修改手机号/用户名
* *
* @param qyzxEmpLogin * @param entRegisterDto
* @return * @return
*/ */
@PostMapping(value = "/updatephone") @PostMapping(value = "/updatephone")
...@@ -735,7 +678,7 @@ public class LoginController { ...@@ -735,7 +678,7 @@ public class LoginController {
/** /**
* 验证码登录 * 验证码登录
* *
* @param qyzxEmpLogin * @param entRegisterDto
* @return * @return
*/ */
@PostMapping(value = "/code") @PostMapping(value = "/code")
...@@ -866,9 +809,9 @@ public class LoginController { ...@@ -866,9 +809,9 @@ public class LoginController {
int i = 0; int i = 0;
for(QyzxAdminMenu me : qyme) { for(QyzxAdminMenu me : qyme) {
MenuStructureDto metr = MenuStructureDto.builder().build(); MenuStructureDto metr = MenuStructureDto.builder().build();
metr.setMenu_code(me.getMenuCode()); metr.setMenuCode(me.getMenuCode());
metr.setMenu_name(me.getMenuName()); metr.setMenuName(me.getMenuName());
metr.setSort_number(me.getSortNumber()); metr.setSortNumber(me.getSortNumber());
metr.setPath(""); metr.setPath("");
mestrs.add(metr); mestrs.add(metr);
zdy[i] = me.getMenuCode(); zdy[i] = me.getMenuCode();
...@@ -881,16 +824,16 @@ public class LoginController { ...@@ -881,16 +824,16 @@ public class LoginController {
if(!ClockInTool.useArrayUtils(ClockInTool.deleteArrayNull(zdy), adm.getMenuCode())) { if(!ClockInTool.useArrayUtils(ClockInTool.deleteArrayNull(zdy), adm.getMenuCode())) {
if(adm.getDistribution() == 0 && qyzxEmpLogin1.getOrgId() == 3) { if(adm.getDistribution() == 0 && qyzxEmpLogin1.getOrgId() == 3) {
MenuStructureDto metr = MenuStructureDto.builder().build(); MenuStructureDto metr = MenuStructureDto.builder().build();
metr.setMenu_code(adm.getMenuCode()); metr.setMenuCode(adm.getMenuCode());
metr.setMenu_name(adm.getMenuName()); metr.setMenuName(adm.getMenuName());
metr.setSort_number(adm.getSortNumber()); metr.setSortNumber(adm.getSortNumber());
metr.setPath(""); metr.setPath("");
mestrs.add(metr); mestrs.add(metr);
}else if(adm.getDistribution() == 1) { }else if(adm.getDistribution() == 1) {
MenuStructureDto metr = MenuStructureDto.builder().build(); MenuStructureDto metr = MenuStructureDto.builder().build();
metr.setMenu_code(adm.getMenuCode()); metr.setMenuCode(adm.getMenuCode());
metr.setMenu_name(adm.getMenuName()); metr.setMenuName(adm.getMenuName());
metr.setSort_number(adm.getSortNumber()); metr.setSortNumber(adm.getSortNumber());
metr.setPath(""); metr.setPath("");
mestrs.add(metr); mestrs.add(metr);
} }
...@@ -912,7 +855,7 @@ public class LoginController { ...@@ -912,7 +855,7 @@ public class LoginController {
/** /**
* 密码登录 * 密码登录
* *
* @param qyzxEmpLogin * @param entRegisterDto
* @return * @return
*/ */
@PostMapping(value = "/password") @PostMapping(value = "/password")
......
...@@ -11,11 +11,11 @@ import lombok.NoArgsConstructor; ...@@ -11,11 +11,11 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor @AllArgsConstructor
public class MenuStructureDto { public class MenuStructureDto {
private String menu_code; private String menuCode;
private String menu_name; private String menuName;
private Integer sort_number; private Integer sortNumber;
private String path; private String path;
} }
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