Commit f4e0d5a8 by huluobin

色系

parent f59368fb
......@@ -132,29 +132,32 @@ public class Schedule {
//推荐人列表
Map<String, String> map = new HashMap<>();
//推荐人id
StringBuilder referee_ids = new StringBuilder();
//充值记录
CustomerBalanceRecord cbrt = balanceRecordDao.selectByPrimaryKey(customerBalanceRecord.getId());
if (customerBalanceRecord.getRefereeId() != null) {
//每次都修改推荐人,且每晚都会设置推荐人
if (customerBalanceRecord.getRefereeId() != null) {
String[] arr = customerBalanceRecord.getRefereeId().split(",");
//
for (String s : arr) {
if (!map.containsKey(s)) {
map.put(s, s);
referee_ids.append(",").append(mapTechnicianManage.get(s));
}
}
//去掉首尾,
if (referee_ids.toString().startsWith(",")) {
referee_ids = new StringBuilder(referee_ids.substring(1));
}
customerBalanceRecord.setRefereeId(referee_ids.toString());
}
//如果店铺id不为空
if (cbrt != null && cbrt.getDepartmentId() != null) {
customerBalanceRecord.setDepartmentId(cbrt.getDepartmentId());
}
if (customerBalanceRecord.getId() != null && (customerBalanceRecord.getRefereeId() != null || customerBalanceRecord.getDepartmentId() != null)) {
if (customerBalanceRecord.getId() != null
&& (customerBalanceRecord.getRefereeId() != null || customerBalanceRecord.getDepartmentId() != null)) {
balanceRecordDao.updateByPrimaryKeySelective(customerBalanceRecord);
}
}
......
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