Commit c5a8df19 by fudahua

同步刷新好办成员信息

parent c3da527a
......@@ -37,6 +37,8 @@ public interface StaffClerkRelationApiService {
* @return
*/
String delByStoreIdAndCode(String storeId,String clerkCode);
List<StaffClerkRelationDTO> listByClerkIds(List<String> clerkIds);
......@@ -48,4 +50,12 @@ public interface StaffClerkRelationApiService {
*/
List<StaffClerkRelationDTO>listByStoreId(String storeId);
/**
* 解绑
* @param staffId
* @param clerkId
* @return
*/
boolean unbindByStaffAndClerkId(String staffId,String clerkId);
}
......@@ -145,4 +145,10 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
List<StaffClerkRelationDTO> result = EntityUtil.changeEntityListByJSON(StaffClerkRelationDTO.class, list);
return result;
}
@Override
public boolean unbindByStaffAndClerkId(String staffId, String clerkId) {
boolean b = staffClerkRelatinService.delBind(clerkId);
return b;
}
}
......@@ -285,6 +285,21 @@ public class StaffController extends WebBaseController{
}
/**
* 成员关联关系接口
* @param staffId
* @return
*/
@RequestMapping("del-clerk-relation")
public HaobanResponse delStaffClerkList(String staffId,String clerkId){
StaffDTO staff = staffApiService.selectById(staffId);
if(staff == null) {
return resultResponse(HaoBanErrCode.ERR_10007);
}
boolean b = staffClerkRelationApiService.unbindByStaffAndClerkId(staffId, clerkId);
return resultResponse(HaoBanErrCode.ERR_1,b);
}
/**
* 成员关联关系搜索接口
* @param search
* @return
......
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