Commit 0c53ba5e by qwmqiuwenmin

fix

parent 6d459376
......@@ -286,6 +286,7 @@ public class ClerkController extends WebBaseController{
return resultResponse(HaoBanErrCode.ERR_400001);
}
ClerkDTO clerk = clerkService.getClerkByCodeNoDel(store.getEnterpriseId(), clerkCode);
logger.info("【新增店员】clerk={}",JSON.toJSONString(clerk));
if(clerk != null){
DepartmentDTO department = departmentApiService.selectByRelatedId(storeId);
if(department == null){
......@@ -297,7 +298,7 @@ public class ClerkController extends WebBaseController{
}
}
if(clerk != null && StringUtils.isNotBlank(clerk.getPhoneNumber())){
syncHaobanToGicServiceApi.syncHaobanClerkPhoneNumberToGic(clerk.getClerkId(), clerk.getPhoneNumber());
syncHaobanToGicServiceApi.syncHaobanClerkPhoneNumberToGic(clerk.getClerkId(), phoneNumber);
}else{
boolean flag = syncHaobanToGicServiceApi.syncClerkToGicClerkAdd(storeId, clerkCode, sex, staffName, phoneNumber, nationcode, postion);
if(!flag){
......
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