Commit 40494fcb by zhanghj

V1.2.0--修改取消订货单操作人为姓名

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@22111 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent c1a7f6b6
......@@ -416,13 +416,19 @@ public class IndentServiceImpl implements IndentService {
private void sendCancelIndentSms(HttpServletRequest request, Integer userId, String indentNo) {
// TODO Auto-generated method stub
String operator = UserUtils.getUserName(request);
Integer operatorUserId = UserUtils.getUserId(request);
String operatorName = null;
JSONObject result = userClient.getUserById(operatorUserId);
if (result != null && result.getIntValue("code") == ResultCodeEnum.SUCCESS.getCode()) {
JSONObject object = result.getJSONObject("data");
operatorName = object.getString("name");
}
JSONObject json = userClient.getUserById(userId);
if (json != null && json.getIntValue("code") == ResultCodeEnum.SUCCESS.getCode()) {
JSONObject object = json.getJSONObject("data");
String phone = object.getString("phoneNumber");
logger.info("PC端取消订货短信通知");
commonClient.sendCancelIndentSms(operator, phone, indentNo);
commonClient.sendCancelIndentSms(operatorName, phone, indentNo);
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!