| | |
| | | return service.getAllInf(101, devInfDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取设备信息(不分页用于包机组)") |
| | | @GetMapping("getDinf") |
| | | public Response getDinf(){ |
| | | return service.getDinf(); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取左侧列表") |
| | | @GetMapping("getDevBytype") |
| | | public Response getDevBytype(@RequestParam(required = false) Integer devType){ |
| | |
| | | return service.getAllUser(pageCurr,pageSize); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询所有用户信息(不分页用于包机组)") |
| | | @GetMapping("getUinf") |
| | | public Response getUinf(){ |
| | | return service.getUinf(); |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑用户权限和用户名") |
| | | @GetMapping("updateUser") |
| | | public Response updateUser(@RequestParam int uid,@RequestParam(required = false) String uname,@RequestParam(required = false) int udownloadRole){ |
| | |
| | | public Response resetSnId(@RequestParam int uid){ |
| | | return service.resetSnId( uid); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.whyc.pojo.db_lithium_ram_db.A200Realstate; |
| | | import com.whyc.pojo.db_lithium_ram_db.ActmRealstate; |
| | | import com.whyc.pojo.db_lithium_ram_db.DevInf; |
| | | import com.whyc.pojo.db_user.UserInf; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | int flag=mapper.update(dinf,wrapper); |
| | | return new Response().set(1,flag>0,"编辑设备信息"); |
| | | } |
| | | //获取设备信息(不分页用于包机组) |
| | | public Response getDinf() { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.orderByAsc("dev_id"); |
| | | List<UserInf> list=mapper.selectList(wrapper); |
| | | return new Response().setII(1,list!=null,list,"获取设备信息(不分页用于包机组)"); |
| | | } |
| | | } |
| | |
| | | } |
| | | return model; |
| | | } |
| | | //查询所有用户信息(不分页用于包机组) |
| | | public Response getUinf() { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.select("uid","uname","udownload_role"); |
| | | wrapper.orderByAsc("uid"); |
| | | List<UserInf> list=mapper.selectList(wrapper); |
| | | return new Response().setII(1,list!=null,list,"查询所有用户信息(不分页用于包机组)"); |
| | | } |
| | | } |