| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/selectList") |
| | | public R selectList(String routeName, HttpServletResponse response) { |
| | | public R selectList(String routeName,String id, HttpServletResponse response) { |
| | | response.setHeader("Access-Control-Allow-Origin", "*"); |
| | | response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); |
| | | response.setHeader("Access-Control-Allow-Credentials", "true"); |
| | | return R.data(routeinService.selectList(routeName)); |
| | | return R.data(routeinService.selectList(routeName,id)); |
| | | } |
| | | } |
| | |
| | | List<RouteinVO> tree(); |
| | | void insertlx(Routein routein); |
| | | void updatelx(Integer id, String routeName, String regionId, String a, String rTime, String creatName, String remarks); |
| | | List<RouteinVO> selectList(String routeName); |
| | | List<RouteinVO> selectList(String routeName,String id); |
| | | } |
| | |
| | | <if test="routeName!=null and routeName!=''"> |
| | | and r.routeName like '%${routeName}%' |
| | | </if> |
| | | <if test="id!=null and id!=''"> |
| | | AND d.snumber = #{id} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | List<RouteinVO> tree(); |
| | | void insertlx(Routein routein); |
| | | void updatelx(Integer id, String routeName, String regionId, String a, String rTime, String creatName, String remarks); |
| | | List<RouteinVO> selectList(String routeName); |
| | | List<RouteinVO> selectList(String routeName,String id); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<RouteinVO> selectList(String routeName) { |
| | | return baseMapper.selectList(routeName); |
| | | public List<RouteinVO> selectList(String routeName,String id) { |
| | | return baseMapper.selectList(routeName,id); |
| | | } |
| | | |
| | | } |
| | |
| | | public R update(@Valid @RequestBody User user) { |
| | | CacheUtil.clear(USER_CACHE); |
| | | |
| | | if (user.getOnline_status() == null || user.getOnline_status().equals("")){ |
| | | user.setOnline_status("0"); |
| | | if (user.getExamination_type() == null || user.getExamination_type().equals("")){ |
| | | user.setExamination_type("0"); |
| | | } |
| | | if (user.getWork_status() == null || user.getWork_status().equals("")){ |
| | | user.setWork_status("0"); |
| | | |
| | | if (user.getExamination_mx() == null || user.getExamination_mx().equals("")){ |
| | | user.setExamination_mx("正常"); |
| | | } |
| | | |
| | | return R.status(userService.updateUser(user)); |