Commit 8565e7cc by zhengxj

finish 调整技工注册默认密码 on 20191118 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24910 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent fa4c9ea6
......@@ -131,7 +131,8 @@ public class CommonController {
public ResultObject sendSms(@RequestParam("phone") String phone, @RequestParam("name") String name) throws IOException {
SmsUtil smsUtil = new SmsUtil();
try {
String msgContent = MessageFormat.format("{0},您的包活干技工注册申请已通过。请打开微信小程序登陆,登录账号为{1},默认密码为{2}", name, phone, phone);
String msgContent = MessageFormat.format("{0},您的包活干技工注册申请已通过。请打开微信小程序登陆,登录账号为{1},默认密码为{2}", name, phone,
com.glsx.common.constants.Constants.DEFAULT_PASSWORD);
smsUtil.send(phone, msgContent, PropertiesUtil.getProperty(Constants.SMS_REGISTER_SOURCE));
} catch (Exception e) {
logger.error(phone + "技工注册成功发送短信失败" + e.getMessage(), e);
......
......@@ -404,7 +404,9 @@ public class UserController extends BaseController {
if (StringUtils.isNotEmpty(sysMechanic.getPassword())) {
sysMechanic.setPassword(sysUserService.encryptPassword(sysMechanic.getPassword()));
} else {
sysMechanic.setPassword(sysUserService.encryptPassword(sysMechanic.getPhoneNumber()));
// 默认密码
sysMechanic.setPassword(
sysUserService.encryptPassword(com.glsx.common.constants.Constants.DEFAULT_PASSWORD.toString()));
}
sysMechanic.setCreateTime(DateUtil.getCurrentTime());
sysMechanic.setUserType(Constants.USER_TYPE_MECHANIC);
......
......@@ -1410,6 +1410,7 @@
su.`name`,
sm1.user_id as serviceId,
sm1.provider_name as serviceProviderName,
su1.name as serviceName,
su.phone_number phoneNumber,
su.user_status userStatus,
GROUP_CONCAT(DISTINCT sdd.data_value SEPARATOR '、') as serviceItems,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!