Commit b2067254 by qwmqiuwenmin

fix

parent 1b7d8c16
......@@ -23,4 +23,6 @@ public interface StaffApiService {
public Page<StaffDTO> pageStaff(String departmentId, Integer activeFlag, String keyword, BasePageInfo pageInfo);
public void del(String staffDepartmentStaffRelatedId);
}
......@@ -14,5 +14,7 @@ public interface StaffDepartmentRelatedService {
List<TabHaobanStaffDepartmentRelated> listStaffDepartmentByStaffId(String staffId);
StaffDepartmentRelatedDTO selectById(String staffDepartmentStaffRelatedId);
}
......@@ -44,6 +44,12 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
return mapper.listStaffDepartmentByStaffId(staffId);
}
@Override
public StaffDepartmentRelatedDTO selectById(String staffDepartmentStaffRelatedId) {
return EntityUtil.changeEntityByJSON(StaffDepartmentRelatedDTO.class, mapper.selectByPrimaryKey(staffDepartmentStaffRelatedId));
}
}
......@@ -109,4 +109,13 @@ public class StaffApiServiceImpl implements StaffApiService {
}
@Override
public void del(String staffDepartmentStaffRelatedId) {
StaffDepartmentRelatedDTO related = staffDepartmentRelatedService.selectById(staffDepartmentStaffRelatedId);
if(related != null) {
List<TabHaobanStaffDepartmentRelated> relatedList = staffDepartmentRelatedService.listStaffDepartmentByStaffId(related.getStaffId());
}
}
}
......@@ -67,4 +67,10 @@ public class StaffController extends WebBaseController{
return resultResponse(HaoBanErrCode.ERR_1,page);
}
@RequestMapping("staff-del")
public HaobanResponse staffDel(String staffDepartmentStaffRelatedId){
staffApiService.del(staffDepartmentStaffRelatedId);
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