|
|
@@ -119,7 +119,7 @@ public class StaffService extends BaseService<Staff> {
|
|
|
Map<String, Object> codeMap = commonService.getUniqueNoteCode(Constant.docNameConstant.STAFF.getName(), true);
|
|
|
staff.setStaffId(codeMap.get("outId").toString());
|
|
|
staff.setStaffCode(codeMap.get("outNote").toString());
|
|
|
-
|
|
|
+ super.insert(staff);
|
|
|
// 讲电话和名称插入微信用户表里
|
|
|
Map<String, Object> collectQuery = new HashMap<>();
|
|
|
collectQuery.put("currentCp", staff.getCpId());
|
|
|
@@ -137,7 +137,7 @@ public class StaffService extends BaseService<Staff> {
|
|
|
m = (Map<String, Object>) resultVO.getData();
|
|
|
}
|
|
|
staff.setWxUserId(m.get("userId").toString());
|
|
|
- super.insert(staff);
|
|
|
+ super.updateByUuid(staff);
|
|
|
return ResponseResultUtil.success(staff);
|
|
|
}
|
|
|
|