|
|
|
@ -178,7 +178,7 @@ public class CustomerServiceServiceImpl implements CustomerServiceService {
|
|
|
|
|
private void udpateOrSave(JSONObject servant){
|
|
|
|
|
JSONObject record = sysCustomerServiceMapper.findByManagerId(servant.getString("manager_id"));
|
|
|
|
|
if(record==null){
|
|
|
|
|
JSONObject manager = managerMapper.findById(servant.getString("manager_id"));
|
|
|
|
|
JSONObject manager = managerMapper.findDetail(servant.getString("manager_id"));
|
|
|
|
|
servant.put("manager_id",manager.getString("manager_id"));
|
|
|
|
|
servant.put("user_id",manager.getString("username"));
|
|
|
|
|
sysCustomerServiceMapper.save(servant);
|
|
|
|
|