基于javaweb+mysql的ssm+maven企业绩效工资管理系统(java+ssm+html+layui+bootstrap+mysql)
私信源码获取及调试交流
运行环境
Java≥8、MySQL≥5.7、Tomcat≥8
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
基于javaweb+mysql的SSM+Maven企业绩效工资管理系统(java+ssm+html+layui+bootstrap+mysql)
项目介绍
本项目包含管理员与普通员工两种角色, 管理员角色包含以下功能: 管理员登录,员工管理,部门管理,岗位管理,职称管理,工龄奖金管理,工资项管理,考勤管理,工资查询等功能。 员工角色包含以下功能: 员工登录,个人信息管理,考勤管理,工资详情等功能。
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可 4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 5.数据库:MySql 5.7版本; 6.是否Maven项目:是;
技术栈
- 后端:Spring+SpringMVC+Mybatis 2. 前端:HTML+CSS+JavaScript+LayUI+jquery+bootstrap
使用说明
- 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven; 若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中dbconfig.properties配置文件中的数据库配置改为自己的配置; 4. 运行项目,输入localhost:8080/ssm_esms 登录 注:tomcat中需配置路径为/ssm_esms,否则会有异常 管理员账号/密码:admin/admin 用户账号/密码:18080833/123456
manager = loginService.findSystemManagerByIdAndPassword(username, password);
} catch (CustomException e) {
map.put("msg",e.getMessage());
map.put("status","500");
return map;
}
// 保存到session
httpSession.setAttribute("admin",manager);
map.put("url","toPage.do?url=admin/index.html");
map.put("msg","成功");
map.put("status","200");
return map;
}else{
map.put("msg","验证码错误");
map.put("status","0");
return map;
}
}
@RequestMapping(value = "/getAdminAccount.do")
@ResponseBody
public String getAdminAccount(HttpSession httpSession){
SystemManager systemManager = (SystemManager) httpSession.getAttribute("admin");
// SystemManager manager = loginService.findSystemManagerById(id);
return systemManager.getSmAccount();
}
@RequestMapping(value = "/getEmployeeAccount.do")
@ResponseBody
public Map<String,String> getEmployeeAccount(HttpSession httpSession){
Integer id = (Integer) httpSession.getAttribute("employeeId");
Employee employee = loginService.findEmployeeById(id);
HashMap<String, String> map = new HashMap<String, String>();
map.put("account",employee.geteAccount());
map.put("name",employee.geteName());
return map;
}
@RequestMapping(value = "/logout.do")
public String logout(HttpSession httpSession){
httpSession.removeAttribute("employeeId");
return "redirect:/";
/**
* @Description:
*/
@Controller
@RequestMapping("/employee")
public class EmployeeController {
@Autowired
private EmployeeService employeeService;
@Autowired
private EmployeeCustomVoMapper employeeCustomVoMapper = null;
@RequestMapping("/findSelective.do")
@ResponseBody
public EmployeePages findSelective(
@RequestParam(value="page", defaultValue="1")int pageNum,
@RequestParam(value="limit", defaultValue="5") int limit,
@RequestParam(value="e_account", defaultValue="") String e_account,
@RequestParam(value="e_name", defaultValue="") String e_name,
@RequestParam(value="d_id", defaultValue="0") int d_id) throws Exception {
HashMap<String, Object> map = new HashMap<String, Object>();
map.put("e_account",e_account);
map.put("e_name",e_name);
// String url = requestUri.substring(contextPath.length());
// System.out.println(url);
// System.out.println(requestUri);
// if ("/".equals(url)){
// return true;
// }
// if ("/employeeLogin.do".equals(url)){
// return true;
// }else{
String string = (String) httpServletRequest.getSession().getAttribute("employeeId");
SystemManager systemManager = (SystemManager) httpServletRequest.getSession().getAttribute("admin");
if (string != null) {
return true;
} else if (string == null){
httpServletResponse.sendRedirect("/");
return false;
} else if (systemManager != null) {
return true;
} else {
httpServletResponse.sendRedirect("/admin.do");
return false;
}
}
@Override
public void postHandle(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse,
Object o, ModelAndView modelAndView) throws Exception {
}
@Override
public void afterCompletion(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse,
Object o, Exception e) throws Exception {
}
}
e1.setNum(123);
EchEmployeeNums e2 = new EchEmployeeNums();
e2.setDepartment("行政部");
e2.setNum(123);
echEmployeeNumsList.add(e1);
echEmployeeNumsList.add(e2);
map.put("list",echEmployeeNumsList);*/
return echartsService.getEmployeeNums();
}
@RequestMapping(value = "/showDepartmentSalary.do")
@ResponseBody
public Map<String,List<EchDepartmentSalary>> showDepartmentSalary(String date){
/**
*各年月工资对比图的数据
* json格式{"list":[{"year":"1","salary":[480,500,600,..]},{"year":"2","salary":[480,500,600...]}]}
*/
/*
List<EchDepartmentSalary> echDepartmentSalaryList = new ArrayList<EchDepartmentSalary>();
Map<String,List<EchDepartmentSalary>> stringListMap = new HashMap<String, List<EchDepartmentSalary>>();
EchDepartmentSalary e1 = new EchDepartmentSalary();
e1.setDepartment("人事部");
List<Double> salary1 = new ArrayList<Double>();
salary1.add(5000.00);
salary1.add(8000.00);
salary1.add(20000.00);
e1.setSalary(salary1);
EchDepartmentSalary e2 = new EchDepartmentSalary();
e2.setDepartment("科研部");
List<Double> salary2 = new ArrayList<Double>();
salary2.add(6000.00);
salary2.add(8500.00);
salary2.add(25000.00);
e2.setSalary(salary2);
EchDepartmentSalary e3 = new EchDepartmentSalary();
e3.setDepartment("策划部");
List<Double> salary3 = new ArrayList<Double>();
salary3.add(6000.00);
salary3.add(8800.00);
salary3.add(23000.00);
e3.setSalary(salary3);
echDepartmentSalaryList.add(e1);
echDepartmentSalaryList.add(e2);
echDepartmentSalaryList.add(e3);
stringListMap.put("list",echDepartmentSalaryList);
return stringListMap;*/
// 保存到session
httpSession.setAttribute("employeeId",employee.geteId());
map.put("url","/ssm_esms/loginSuccess.do");
map.put("msg","成功");
map.put("status","200");
return map;
}else{
map.put("msg","验证码错误");
map.put("status","0");
return map;
}
}
@RequestMapping(value = "/loginSuccess.do")
public String loginSucceses(Model model) throws Exception
{
return "employee/index.html";
}
//管理员登录判断
@RequestMapping(value = "/adminLogin.do")
@ResponseBody
public Map<String,String> adminLogin(Model model, HttpSession httpSession, String username,
String password, String identifyingcode)
{
String code = (String) httpSession.getAttribute("identifyingCode");
HashMap<String, String> map = new HashMap<String, String>();
if(identifyingcode.equalsIgnoreCase(code)){
SystemManager manager = null;
try {
manager = loginService.findSystemManagerByIdAndPassword(username, password);
} catch (CustomException e) {
map.put("msg",e.getMessage());
map.put("status","500");
return map;
}
// 保存到session
httpSession.setAttribute("admin",manager);
map.put("url","toPage.do?url=admin/index.html");
map.put("msg","成功");
map.put("status","200");
return map;
String eHometown,
String headPath) throws Exception {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
Employee employee = new Employee();
employee.seteId(eId);
employee.seteName(eName);
employee.seteIdcard(eIdcard);
employee.seteRank(rbId);
employee.seteSex(eSex);
employee.seteBirthday(format.parse(eBirthday));
employee.seteDagree(eDagree);
employee.setdId(dId);
employee.setpId(pId);
employee.seteEntryTime(format.parse(eEntryTime));
employee.seteBasePay(eBasePay);
employee.setePhone(ePhone);
employee.seteEmail(eEmail);
employee.seteUrgentPerson(eUrgentPerson);
employee.seteUrgentPhone(eUrgentPhone);
employee.seteHometown(eHometown);
employee.seteHeadPath(headPath);
employee.seteIsdel(1);
employeeService.updateByPrimaryKeySelective(employee);
return 1;
}
/**
* 删除
* @param id
* @throws Exception
*/
@RequestMapping("/deleteByPrimaryKey.do")
@ResponseBody
public int deleteByPrimaryKey(int id) throws Exception {
// SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");//设置日期格式
// Date date = new Date();
// System.out.println(df.format(new Date()));// new Date()为获取当前系统时间
//假删除,设置离职时间
Employee employee = new Employee();
employee.seteId(id);
employee.seteLeaveTime(new Date());
employee.seteIsdel(0);
employeeService.updateByPrimaryKeySelective(employee);
* @param earlyNum
* @param absenceNum
* @param businessTravelNum
* @return
* @throws Exception
*/
@RequestMapping("/updateByPrimaryKeySelective.do")
@ResponseBody
public int updateByPrimaryKeySelective(int maId,
int sickLeaveNum,
int compassionateLeaveNum,
double overtimeHour,
double weekendHour,
double holidayHour,
int lateNum,
int earlyNum,
int absenceNum,
int businessTravelNum
) throws Exception {
MonthlyAttendance monthlyAttendance = new MonthlyAttendance();
monthlyAttendance.setMaId(maId);
monthlyAttendance.setSickLeaveNum(sickLeaveNum);
monthlyAttendance.setCompassionateLeaveNum(compassionateLeaveNum);
monthlyAttendance.setOvertimeHour(overtimeHour);
monthlyAttendance.setWeekendHour(weekendHour);
monthlyAttendance.setHolidayHour(holidayHour);
monthlyAttendance.setLateNum(lateNum);
monthlyAttendance.setEarlyNum(earlyNum);
monthlyAttendance.setAbsenceNum(absenceNum);
monthlyAttendance.setBusinessTravelNum(businessTravelNum);
// System.out.println(monthlyAttendance+"======================================================");
monthlyAttendanceService.updateByPrimaryKeySelective(monthlyAttendance);
return 1;
}
/**
* 删除
* @param id
* @throws Exception
*/
@RequestMapping("/deleteByPrimaryKey.do")
monthlyAttendance.setCompassionateLeaveNum(compassionateLeaveNum);
monthlyAttendance.setOvertimeHour(overtimeHour);
monthlyAttendance.setWeekendHour(weekendHour);
monthlyAttendance.setHolidayHour(holidayHour);
monthlyAttendance.setLateNum(lateNum);
monthlyAttendance.setEarlyNum(earlyNum);
monthlyAttendance.setAbsenceNum(absenceNum);
monthlyAttendance.setBusinessTravelNum(businessTravelNum);
// System.out.println(monthlyAttendance+"======================================================");
monthlyAttendanceService.updateByPrimaryKeySelective(monthlyAttendance);
return 1;
}
/**
* 删除
* @param id
* @throws Exception
*/
@RequestMapping("/deleteByPrimaryKey.do")
@ResponseBody
public int deleteByPrimaryKey(int id) throws Exception {
//真删除
MonthlyAttendance monthlyAttendance = new MonthlyAttendance();
monthlyAttendance.setMaId(id);
monthlyAttendanceService.deleteByPrimaryKey(id);
return 1;
}
/**
* 批量删除
* @param ids
*/
@RequestMapping("/deleteByQuery.do")
@ResponseBody
public int deleteByQuery (@RequestParam(value = "arr")int[] ids) {
// for (int i =0 ; i< ids.length;i++) {
// System.out.println(ids[i]);
// }
//真删除
//如果有id才执行
if(ids.length > 0) {
monthlyAttendanceService.deleteByQuery(ids);
}
return 1;
public class RankBonusController {
@Autowired
private IRankBonusService service;
//@Qualifier("rankBonusService")
public void setiRankBonusService(IRankBonusService iRankBonusService) {
this.service = iRankBonusService;
}
//插入数据
@RequestMapping("/insertRankBonus.do")
@ResponseBody
public String doInsertRankBonus(int bonus,String name){
if(service.CountByName(name)>0){
return "exist";
}
if(!name.equals("")&& bonus>=0){
RankBonus rb= new RankBonus();
rb.setRankName(name);
rb.setRbBonus(bonus);
service.addRankBonus(rb);
return "ok";
}
else{
return "no";
}
}
//查询出所有记录
@RequestMapping("/findAll.do")
public String doFindAll(@RequestParam(value="pn",defaultValue = "1") Integer pn, Model model){
// 引入PageHelper分页插件
// 在查询之前只需要调用,传入页码,以及每页的大小
int pageSize = 10;
PageHelper.startPage(pn, pageSize);
// startPage后面紧跟的这个查询就是一个分页查询
List<RankBonus> rbs = service.findAll();
System.out.println(rbs+"=================================");
/*for (RankBonus rb:rbs) {
System.out.println(rb.getRankName());
}*/
// 使用pageInfo包装查询后的结果,只需要将pageInfo交给页面就行了。
echDepartmentSalaryList.add(e2);
echDepartmentSalaryList.add(e3);
stringListMap.put("list",echDepartmentSalaryList);
return stringListMap;*/
return echartsService.getDepartmentSalary(date);
}
@RequestMapping(value = "/showSalaryPercent.do")
@ResponseBody
public Map<String,List<EchSalaryPercent>> showSalaryPercent(String date,int state){
/*List<EchSalaryPercent> echSalaryPercentList = new ArrayList<EchSalaryPercent>();
Map<String,List<EchSalaryPercent>> map = new HashMap<String,List<EchSalaryPercent>>();
EchSalaryPercent s1 = new EchSalaryPercent();
EchSalaryPercent s2 = new EchSalaryPercent();
s1.setDepartment("人事部");
s1.setSalary(1010010.00);
s2.setDepartment("科研部");
s2.setSalary(1510010.00);
echSalaryPercentList.add(s1);
echSalaryPercentList.add(s2);
map.put("list",echSalaryPercentList);*/
return echartsService.getSalaryPercent(date,state);
}
@RequestMapping(value = "/showMonthSalary.do")
@ResponseBody
public Map<String,List<EchMonthSalary>> showMonthSalary(){
/*
List<EchMonthSalary> echMonthSalaryList = new ArrayList<EchMonthSalary>();
Map<String,List<EchMonthSalary>> stringListMap = new HashMap<String, List<EchMonthSalary>>();
EchMonthSalary e1 = new EchMonthSalary();
List<Double> salary1 = new ArrayList<Double>();
salary1.add(5000.00);
salary1.add(8000.00);
salary1.add(20000.00);
salary1.add(5000.00);
salary1.add(8000.00);
salary1.add(20000.00);
List<Double> salary2 = new ArrayList<Double>();
salary2.add(6000.00);
salary2.add(8500.00);
salary2.add(25000.00);
e2.setSalary(salary2);
EchDepartmentSalary e3 = new EchDepartmentSalary();
e3.setDepartment("策划部");
List<Double> salary3 = new ArrayList<Double>();
salary3.add(6000.00);
salary3.add(8800.00);
salary3.add(23000.00);
e3.setSalary(salary3);
echDepartmentSalaryList.add(e1);
echDepartmentSalaryList.add(e2);
echDepartmentSalaryList.add(e3);
stringListMap.put("list",echDepartmentSalaryList);
return stringListMap;*/
return echartsService.getDepartmentSalary(date);
}
@RequestMapping(value = "/showSalaryPercent.do")
@ResponseBody
public Map<String,List<EchSalaryPercent>> showSalaryPercent(String date,int state){
/*List<EchSalaryPercent> echSalaryPercentList = new ArrayList<EchSalaryPercent>();
Map<String,List<EchSalaryPercent>> map = new HashMap<String,List<EchSalaryPercent>>();
EchSalaryPercent s1 = new EchSalaryPercent();
EchSalaryPercent s2 = new EchSalaryPercent();
s1.setDepartment("人事部");
s1.setSalary(1010010.00);
s2.setDepartment("科研部");
s2.setSalary(1510010.00);
echSalaryPercentList.add(s1);
echSalaryPercentList.add(s2);
map.put("list",echSalaryPercentList);*/
return echartsService.getSalaryPercent(date,state);
}
@RequestMapping(value = "/showMonthSalary.do")
@ResponseBody
public Map<String,List<EchMonthSalary>> showMonthSalary(){
/*
List<EchMonthSalary> echMonthSalaryList = new ArrayList<EchMonthSalary>();
Map<String,List<EchMonthSalary>> stringListMap = new HashMap<String, List<EchMonthSalary>>();
EchMonthSalary e1 = new EchMonthSalary();
/**
* @Description:
*/
@Controller
@RequestMapping("/department")
public class DepartmentController {
@Autowired
public DepartmentService departmentService = null;
/**
* 查找部门
* @param pageNum
* @param limit
* @param d_name
* @return
* @throws Exception
*/
@RequestMapping("/findSelective.do")
@ResponseBody
public DepartmentPages findSelective(
@RequestParam(value="page", defaultValue="1")int pageNum,
@RequestParam(value="limit", defaultValue="5") int limit,
@RequestParam(value="d_name", defaultValue="") String d_name) throws Exception {
List<Department> list;
//模糊查询,有多少个条件就接收多少个字段
Department department = new Department();
department.setdName(d_name);
//pageNum:起始页面 pageSize:每页的大小
PageHelper.startPage(pageNum,limit);
//查找条件,一定要紧跟在startPage后
list = departmentService.findSelective(department);
PageInfo pageResult = new PageInfo(list);
//设置前台需要的数据
DepartmentPages departmentPages = new DepartmentPages();
departmentPages.setCode(0);
departmentPages.setMsg("");
departmentPages.setCount((int) pageResult.getTotal());
departmentPages.setData(pageResult.getList());
* @param lateNum
* @param earlyNum
* @param absenceNum
* @param businessTravelNum
* @return
* @throws Exception
*/
@RequestMapping("/updateByPrimaryKeySelective.do")
@ResponseBody
public int updateByPrimaryKeySelective(int maId,
int sickLeaveNum,
int compassionateLeaveNum,
double overtimeHour,
double weekendHour,
double holidayHour,
int lateNum,
int earlyNum,
int absenceNum,
int businessTravelNum
) throws Exception {
MonthlyAttendance monthlyAttendance = new MonthlyAttendance();
monthlyAttendance.setMaId(maId);
monthlyAttendance.setSickLeaveNum(sickLeaveNum);
monthlyAttendance.setCompassionateLeaveNum(compassionateLeaveNum);
monthlyAttendance.setOvertimeHour(overtimeHour);
monthlyAttendance.setWeekendHour(weekendHour);
monthlyAttendance.setHolidayHour(holidayHour);
monthlyAttendance.setLateNum(lateNum);
monthlyAttendance.setEarlyNum(earlyNum);
monthlyAttendance.setAbsenceNum(absenceNum);
monthlyAttendance.setBusinessTravelNum(businessTravelNum);
// System.out.println(monthlyAttendance+"======================================================");
monthlyAttendanceService.updateByPrimaryKeySelective(monthlyAttendance);
return 1;
}
/**
* 删除
* @param id
* @throws Exception
*/
@RequestMapping("/deleteByPrimaryKey.do")
@ResponseBody
public int deleteByPrimaryKey(int id) throws Exception {
//真删除
MonthlyAttendance monthlyAttendance = new MonthlyAttendance();
monthlyAttendance.setMaId(id);
monthlyAttendanceService.deleteByPrimaryKey(id);
return 1;
@Override
public void postHandle(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse,
Object o, ModelAndView modelAndView) throws Exception {
}
@Override
public void afterCompletion(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse,
Object o, Exception e) throws Exception {
}
}
/**
* @Description:
*/
public class PermissionInterceptor implements HandlerInterceptor {
@Override
public boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o) throws Exception {
// if (httpServletRequest.getSession().getAttribute("admin") != null){
// return true;
// }else{
httpServletRequest.getRequestDispatcher("/login.do").forward(httpServletRequest, httpServletResponse);
// httpServletResponse.sendRedirect("/admin.do");
// return false;
// }
return true;
}
@Override
public void postHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, ModelAndView modelAndView) throws Exception {
positionPages.setCount((int)pageResult.getTotal());
positionPages.setData(pageResult.getList());
return positionPages;
}
/**
* 添加
* @param p_name
* @param p_duty
* @param p_post_pay
* @return
* @throws Exception
*/
@RequestMapping("/add.do")
@ResponseBody
public int add(String p_name, String p_duty, Double p_post_pay) throws Exception {
Position position = positionService.findByDname(p_name);
//查找是否同名
if(position != null) {
return position.getpId();
} else {
Position p = new Position();
p.setpId(null);
p.setpName(p_name);
p.setpDuty(p_duty);
p.setpPostPay(p_post_pay);
p.setpIsdel(1);
positionService.insertSelective(p);
return 0;
}
}
/**
* 查找一个
* @param id
* @return
* @throws Exception
*/
@RequestMapping("/findByPrimaryKey.do")
@ResponseBody
public Position findByPrimaryKey(int id) throws Exception {
Position position = positionService.findByPrimaryKey(id);
return position;
}
/**
salary2.add(6000.00);
salary2.add(8500.00);
salary2.add(25000.00);
e2.setSalary(salary2);
EchDepartmentSalary e3 = new EchDepartmentSalary();
e3.setDepartment("策划部");
List<Double> salary3 = new ArrayList<Double>();
salary3.add(6000.00);
salary3.add(8800.00);
salary3.add(23000.00);
e3.setSalary(salary3);
echDepartmentSalaryList.add(e1);
echDepartmentSalaryList.add(e2);
echDepartmentSalaryList.add(e3);
stringListMap.put("list",echDepartmentSalaryList);
return stringListMap;*/
return echartsService.getDepartmentSalary(date);
}
@RequestMapping(value = "/showSalaryPercent.do")
@ResponseBody
public Map<String,List<EchSalaryPercent>> showSalaryPercent(String date,int state){
/*List<EchSalaryPercent> echSalaryPercentList = new ArrayList<EchSalaryPercent>();
Map<String,List<EchSalaryPercent>> map = new HashMap<String,List<EchSalaryPercent>>();
EchSalaryPercent s1 = new EchSalaryPercent();
EchSalaryPercent s2 = new EchSalaryPercent();
s1.setDepartment("人事部");
s1.setSalary(1010010.00);
s2.setDepartment("科研部");
s2.setSalary(1510010.00);
echSalaryPercentList.add(s1);
echSalaryPercentList.add(s2);
map.put("list",echSalaryPercentList);*/
return echartsService.getSalaryPercent(date,state);
}
@RequestMapping(value = "/showMonthSalary.do")
@ResponseBody
public Map<String,List<EchMonthSalary>> showMonthSalary(){
/*
List<EchMonthSalary> echMonthSalaryList = new ArrayList<EchMonthSalary>();
Map<String,List<EchMonthSalary>> stringListMap = new HashMap<String, List<EchMonthSalary>>();
EchMonthSalary e1 = new EchMonthSalary();
List<Double> salary1 = new ArrayList<Double>();
salary1.add(5000.00);
public String doUpdate(int id,String rank,int bonus){
RankBonus rankBonus=service.findByName(rank);
if(rankBonus!=null&& !rankBonus.getRbId().equals(id)){
return "exist";
}
RankBonus rb=new RankBonus();
rb.setRbId(id);
rb.setRbBonus(bonus);
rb.setRankName(rank);
if(service.modifyRankName(rb)==true)
return "ok";
else
return "no";
}
}
/**
* @Description:
*/
@Controller
public class WorkYearController {
return keyValue;
}
@RequestMapping("/get_early_buckle_pay.do")
public @ResponseBody KeyValue get_early_buckle_pay(){
KeyValue keyValue=new KeyValue();
try {
keyValue=keyValueService.selectBykvKey("early_buckle_pay");
} catch (Exception e) {
e.printStackTrace();
}
return keyValue;
}
@RequestMapping("/get_missionallowance.do")
public @ResponseBody KeyValue get_missionallowance(){
KeyValue keyValue=new KeyValue();
try {
keyValue=keyValueService.selectBykvKey("missionallowance");
} catch (Exception e) {
e.printStackTrace();
}
return keyValue;
}
@RequestMapping("/get_full_attendance_pay.do")
public @ResponseBody KeyValue get_full_attendance_pay(){
KeyValue keyValue=new KeyValue();
try {
keyValue=keyValueService.selectBykvKey("full_attendance_pay");
} catch (Exception e) {
e.printStackTrace();
}
return keyValue;
}
}