|
|
|
@ -1,6 +1,7 @@ |
|
|
|
|
package com.yipin.liuwanr.service; |
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
import org.jboss.logging.Logger; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -47,10 +48,24 @@ public class StaffGradeService { |
|
|
|
|
return resp; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public HashMap<String, Object> deleteStaffGrade(Integer staffGradeId){ |
|
|
|
|
public HashMap<String, Object> deleteStaffGrade(List<Integer> userIds){ |
|
|
|
|
HashMap<String, Object> resp = new HashMap<String, Object>(); |
|
|
|
|
try { |
|
|
|
|
staffGradeMapper.deleteStaffGrade(staffGradeId); |
|
|
|
|
staffGradeMapper.deleteStaffGrade(userIds); |
|
|
|
|
resp.put("retcode", 200); |
|
|
|
|
} catch (RuntimeException e) { |
|
|
|
|
logger.error(e.getMessage()); |
|
|
|
|
resp.put("retcode", 500); |
|
|
|
|
resp.put("retvalue", "Inquiry Failed"); |
|
|
|
|
return resp; |
|
|
|
|
} |
|
|
|
|
return resp; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public HashMap<String, Object> deleteStaffGradePs(Integer staffGradeId){ |
|
|
|
|
HashMap<String, Object> resp = new HashMap<String, Object>(); |
|
|
|
|
try { |
|
|
|
|
staffGradeMapper.deleteStaffGradePs(staffGradeId); |
|
|
|
|
resp.put("retcode", 200); |
|
|
|
|
} catch (RuntimeException e) { |
|
|
|
|
logger.error(e.getMessage()); |
|
|
|
@ -89,4 +104,7 @@ public class StaffGradeService { |
|
|
|
|
return resp; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public List<Integer> queryUserIdsByGradeId(Integer staffGradeId) { |
|
|
|
|
return staffGradeMapper.queryUserIdsByGradeId(staffGradeId); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|