前台 需要 message:当前经销商未激活
This commit is contained in:
parent
398a2086b5
commit
676779d37a
@ -31,23 +31,33 @@ public class ApplyStartServiceImpl implements ApplyStartService {
|
||||
String applyType = fieldMap.get("applytype") == null ? "" : fieldMap
|
||||
.get("applytype").toString();
|
||||
|
||||
String userid = fieldMap.get("userid") == null ? "" : fieldMap
|
||||
.get("userid").toString();
|
||||
ASUser CurUser = new ASUser(userid, sqlca);
|
||||
|
||||
ARE.getLog().info(
|
||||
"用户:" + CurUser.getUserName() + ", 部门:"
|
||||
+ CurUser.getOrgName() + "请求发起申请!");
|
||||
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
body.put("applyResult", "true");
|
||||
body.put("enableApply", "true");
|
||||
body.put("message", "");
|
||||
if (!StringX.isSpace(applyType)) {
|
||||
if ("BusinessApplyApply".equals(applyType)) {
|
||||
String userid = fieldMap.get("userid") == null ? "" : fieldMap
|
||||
.get("userid").toString();
|
||||
ASUser CurUser = new ASUser(userid, sqlca);
|
||||
|
||||
ARE.getLog().info(
|
||||
"用户:" + CurUser.getUserName() + ", 部门:"
|
||||
+ CurUser.getOrgName() + "请求发起申请!");
|
||||
|
||||
CustomerInfoCheck applyStartEnable = new CustomerInfoCheck();
|
||||
applyStartEnable.setId(CurUser.getOrgID());
|
||||
String result = applyStartEnable.checkDistributorStatus(tx);
|
||||
String result;
|
||||
try {
|
||||
result = applyStartEnable.checkDistributorStatus(tx);
|
||||
} catch (Exception e) {
|
||||
ARE.getLog().error(e);
|
||||
result = "";
|
||||
}
|
||||
result = result == null ? "" : result.trim();
|
||||
body.put("applyResult", result);
|
||||
body.put("enableApply", result);
|
||||
if (!"success".equals(result.toLowerCase())) {
|
||||
body.put("message", "警告:当前经销商未激活!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user