Commit 11b2cb09 by fudahua

Merge remote-tracking branch 'origin/developer' into developer

parents 411621e7 02343245
...@@ -250,7 +250,7 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -250,7 +250,7 @@ public class StaffApiServiceImpl implements StaffApiService {
} }
} }
staffDepartmentRelatedService.del(related); staffDepartmentRelatedService.del(related);
staffService.delByuserid(relatedList.get(0).getStaffId()); // staffService.delByuserid(relatedList.get(0).getStaffId());
TabHaobanStaffDepartmentRelated staffRelated = relatedList.get(0); TabHaobanStaffDepartmentRelated staffRelated = relatedList.get(0);
if(StringUtils.isNotBlank(staffRelated.getClerkCode())){ if(StringUtils.isNotBlank(staffRelated.getClerkCode())){
......
...@@ -258,24 +258,24 @@ public class ClerkController extends WebBaseController{ ...@@ -258,24 +258,24 @@ public class ClerkController extends WebBaseController{
@HttpLimit @HttpLimit
@RequestMapping("/staff-add") @RequestMapping("/staff-add")
public HaobanResponse staffAdd(StaffDTO staffDTO,String storeId,String clerkCode) { public HaobanResponse staffAdd(StaffDTO staffDTO,String storeId,String clerkCode) {
String wxEnterpriseId = staffDTO.getWxEnterpriseId(); // String wxEnterpriseId = staffDTO.getWxEnterpriseId();
String staffName = staffDTO.getStaffName(); // String staffName = staffDTO.getStaffName();
String phoneNumber = staffDTO.getPhoneNumber(); // String phoneNumber = staffDTO.getPhoneNumber();
String nationcode = staffDTO.getNationCode(); // String nationcode = staffDTO.getNationCode();
String postion = staffDTO.getPostion(); // String postion = staffDTO.getPostion();
Integer sex = staffDTO.getSex(); // Integer sex = staffDTO.getSex();
staffDTO.setWxEnterpriseId(wxEnterpriseId); // staffDTO.setWxEnterpriseId(wxEnterpriseId);
if(StringUtils.isBlank(staffName)) { // if(StringUtils.isBlank(staffName)) {
return resultResponse(HaoBanErrCode.ERR_10004); // return resultResponse(HaoBanErrCode.ERR_10004);
} // }
StaffDTO staff = staffApiService.selectByNationcodeAndPhoneNumber(wxEnterpriseId,nationcode,phoneNumber); // StaffDTO staff = staffApiService.selectByNationcodeAndPhoneNumber(wxEnterpriseId,nationcode,phoneNumber);
if(staff != null) { // if(staff != null) {
return resultResponse(HaoBanErrCode.ERR_10005); // return resultResponse(HaoBanErrCode.ERR_10005);
} // }
boolean flag = syncHaobanToGicServiceApi.syncClerkToGicClerkAdd(storeId, clerkCode, sex, staffName, phoneNumber, nationcode, postion); // boolean flag = syncHaobanToGicServiceApi.syncClerkToGicClerkAdd(storeId, clerkCode, sex, staffName, phoneNumber, nationcode, postion);
if(!flag){ // if(!flag){
return resultResponse(HaoBanErrCode.ERR_10010); // return resultResponse(HaoBanErrCode.ERR_10010);
} // }
return resultResponse(HaoBanErrCode.ERR_1); return resultResponse(HaoBanErrCode.ERR_1);
} }
......
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