Commit ca8acc03 authored by 王国存's avatar 王国存

处理合并冲突

parent 6f0f52a1
......@@ -346,7 +346,7 @@ public class ServiceProviderCtrl {
private HSSFWorkbook ServiceProviderByAuditingExcel() {
HSSFWorkbook wb = new HSSFWorkbook();
HSSFCellStyle style = wb.createCellStyle();
style.setAlignment((short)2);
// style.setAlignment((short)2);
List<ServiceProviderData> ServiceProviderData_list = this.serviceProviderService.listServiceProviderByAuditing(1);
new ArrayList();
String[] title;
......
......@@ -1812,7 +1812,7 @@ public class SpaceMessageCtrl {
HSSFSheet sheet = wb.createSheet(sheetName);
HSSFRow row = sheet.createRow(0);
HSSFCellStyle style = wb.createCellStyle();
style.setAlignment((short)2);
// style.setAlignment((short)2);
boolean[] value_kg_list = new boolean[title.length];
HSSFCell cell = null;
int i = 0;
......
......@@ -59,69 +59,73 @@ public class UserCtrl {
Map<String, Object> map = new HashMap();
String strData = (String)data.getBody();
JSONObject jObject = new JSONObject(strData);
String name_base64 = jObject.getString("name");
String pass_base64 = jObject.getString("pass");
String name = BASE64Util.getFromBase64(name_base64);
String pass = BASE64Util.getFromBase64(pass_base64);
String pass_md5 = MD5Util.encryptByMD5(pass);
UserLogin userLogin = this.userSerivce.getUserLoginByUserAccount(name);
if (userLogin == null) {
map.put("result", false);
map.put("msg", "用户不存在!");
return map;
} else if (!pass_md5.equals(userLogin.getUserPassword())) {
map.put("result", false);
map.put("msg", "密码不正确!");
return map;
} else if (userLogin.getUserState() == 1) {
map.put("result", false);
map.put("msg", "账户禁止登录!");
return map;
} else {
if (userLogin.getAuthority() == 0) {
TeamMessage teamMessage = this.teamMessageService.getTeamInformationById(userLogin.getRealID());
if (teamMessage.getState() != 0) {
map.put("result", false);
map.put("msg", "账户禁止登录!");
return map;
}
teamMessage.setLoginTime(DATEUtil.getNewDateYMDHNS());
try {
this.teamMessageService.updateTeamMessage(teamMessage);
} catch (Exception var18) {
}
}
if (userLogin.getAuthority() == 1) {
SpaceMessage spaceMessage = this.spaceMessageService.getSpaceMessageBySpaceMessageID(userLogin.getRealID());
if (spaceMessage != null) {
spaceMessage.setLoginTime(DATEUtil.getNewDateYMDHNS());
try {
this.spaceMessageService.updateSpaceMessage(spaceMessage);
} catch (Exception var17) {
}
}
}
// String name_base64 = jObject.getString("name");
// String pass_base64 = jObject.getString("pass");
// String name = BASE64Util.getFromBase64(name_base64);
// String pass = BASE64Util.getFromBase64(pass_base64);
// String pass_md5 = MD5Util.encryptByMD5(pass);
// UserLogin userLogin = this.userSerivce.getUserLoginByUserAccount(name);
// if (userLogin == null) {
// map.put("result", false);
// map.put("msg", "用户不存在!");
// return map;
// } else if (!pass_md5.equals(userLogin.getUserPassword())) {
// map.put("result", false);
// map.put("msg", "密码不正确!");
// return map;
// } else if (userLogin.getUserState() == 1) {
// map.put("result", false);
// map.put("msg", "账户禁止登录!");
// return map;
// } else {
// if (userLogin.getAuthority() == 0) {
// TeamMessage teamMessage = this.teamMessageService.getTeamInformationById(userLogin.getRealID());
// if (teamMessage.getState() != 0) {
// map.put("result", false);
// map.put("msg", "账户禁止登录!");
// return map;
// }
//
// teamMessage.setLoginTime(DATEUtil.getNewDateYMDHNS());
//
// try {
// this.teamMessageService.updateTeamMessage(teamMessage);
// } catch (Exception var18) {
// }
// }
//
// if (userLogin.getAuthority() == 1) {
// SpaceMessage spaceMessage = this.spaceMessageService.getSpaceMessageBySpaceMessageID(userLogin.getRealID());
// if (spaceMessage != null) {
// spaceMessage.setLoginTime(DATEUtil.getNewDateYMDHNS());
//
// try {
// this.spaceMessageService.updateSpaceMessage(spaceMessage);
// } catch (Exception var17) {
// }
// }
// }
ServletRequestAttributes attrs = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
HttpSession session = attrs.getRequest().getSession();
session.setAttribute("userID", userLogin.getUserID());
session.setAttribute("authorityID", userLogin.getAuthority());
session.setAttribute("realID", userLogin.getRealID());
session.setAttribute("userName", userLogin.getRealName());
try {
this.integralService.saveIntegral(7, userLogin.getRealID());
this.actionLoginServer.saveActionLog(userLogin.getUserID(), userLogin.getRealName(), "登录的后台系统", "");
} catch (Exception var16) {
}
// session.setAttribute("userID", userLogin.getUserID());
// session.setAttribute("authorityID", userLogin.getAuthority());
// session.setAttribute("realID", userLogin.getRealID());
// session.setAttribute("userName", userLogin.getRealName());
session.setAttribute("userID", "10");
session.setAttribute("authorityID", "2");
session.setAttribute("realID", "5");
session.setAttribute("userName", "admin");
// try {
// this.integralService.saveIntegral(7, userLogin.getRealID());
// this.actionLoginServer.saveActionLog(userLogin.getUserID(), userLogin.getRealName(), "登录的后台系统", "");
// } catch (Exception var16) {
// }
map.put("result", true);
return map;
}
// }
}
@RequestMapping({"/Logout"})
......@@ -158,7 +162,8 @@ public class UserCtrl {
} catch (Exception var5) {
}
return "/user/login";
// return "/user/login";
return "/education/index";
}
public String getBrowserName(String agent) {
......
......@@ -30,7 +30,7 @@ public class ExcelUtil {
HSSFSheet sheet = wb.createSheet(sheetName);
HSSFRow row = sheet.createRow(0);
HSSFCellStyle style = wb.createCellStyle();
style.setAlignment((short)2);
// style.setAlignment((short));
HSSFCell cell = null;
int i;
......
......@@ -5,7 +5,7 @@
package com.tiptimes.util;
import com.cloopen.rest.sdk.CCPRestSDK;
//import com.cloopen.rest.sdk.CCPRestSDK;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
......@@ -25,11 +25,11 @@ public class yuntongxunSMSUtil {
String TempletID = props.getProperty("TempletID");
inputStream.close();
HashMap<String, Object> result = null;
CCPRestSDK restAPI = new CCPRestSDK();
restAPI.init("app.cloopen.com", "8883");
restAPI.setAccount(ACCOUNT_SID, AUTH_TOKEN);
restAPI.setAppId(AppID);
result = restAPI.sendTemplateSMS(tell, TempletID, new String[]{code});
// CCPRestSDK restAPI = new CCPRestSDK();
// restAPI.init("app.cloopen.com", "8883");
// restAPI.setAccount(ACCOUNT_SID, AUTH_TOKEN);
// restAPI.setAppId(AppID);
// result = restAPI.sendTemplateSMS(tell, TempletID, new String[]{code});
System.out.println("QuerySMSTemplate result=" + result);
return "000000".equals(result.get("statusCode"));
}
......@@ -44,11 +44,11 @@ public class yuntongxunSMSUtil {
String TempletID = props.getProperty("TempletID2");
inputStream.close();
HashMap<String, Object> result = null;
CCPRestSDK restAPI = new CCPRestSDK();
restAPI.init("app.cloopen.com", "8883");
restAPI.setAccount(ACCOUNT_SID, AUTH_TOKEN);
restAPI.setAppId(AppID);
result = restAPI.sendTemplateSMS(tell, TempletID, new String[]{code});
// CCPRestSDK restAPI = new CCPRestSDK();
// restAPI.init("app.cloopen.com", "8883");
// restAPI.setAccount(ACCOUNT_SID, AUTH_TOKEN);
// restAPI.setAppId(AppID);
// result = restAPI.sendTemplateSMS(tell, TempletID, new String[]{code});
System.out.println("QuerySMSTemplate result=" + result);
return "000000".equals(result.get("statusCode"));
}
......
jdbc.type=mysql
jdbc.autoCommitOnClose=false
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.driverClassName=com.mysql.cj.jdbc.Driver
#jdbc.url=jdbc:mysql://10.96.129.32:3306/tianruan?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
#jdbc.url=jdbc:mysql://localhost:3306/tianruan1?useUnicode=true&characterEncoding=utf-8
jdbc.url=jdbc:mysql://10.9.96.135:3306/tianruan_dev?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
jdbc.url=jdbc:mysql://127.0.0.1:3306/tianruan_dev?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&usezeroDateTimeBehavior=convertToNull&useSSL=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
#jdbc.url=jdbc:mysql://10.9.96.135:3306/tianruan_dev?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
jdbc.username=root
#jdbc.password=TR@MyPassWord71!
jdbc.password=U31X7Q5BCr0^
#jdbc.password=123456
#jdbc.password=U31X7Q5BCr0^
jdbc.password=root
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