update swagger online API
| | |
| | | import com.fgkj.services.Alarm_paramService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | @RequestMapping("alarmParam") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "alarmParam接口") |
| | | public class Alarm_paramController { |
| | | |
| | | @Resource |
| | |
| | | private User_logService uservice; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody Alarm_param param){ |
| | | ServiceModel model = service.add(param); |
| | | |
| | |
| | | |
| | | //编辑参数 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="编辑参数") |
| | | public ServiceModel update(@RequestBody Alarm_param param){ |
| | | ServiceModel model = service.update(param); |
| | | { |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | public ServiceModel del(@RequestBody Alarm_param param){ |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel del(@NotNull @RequestParam Integer num){ |
| | | Alarm_param param = new Alarm_param(); |
| | | param.setNum(num); |
| | | ServiceModel model = service.del(param); |
| | | |
| | | return model; |
| | | } |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model = service.searchAll(); |
| | | |
| | |
| | | } |
| | | |
| | | //7.1根据告警类型查告警参数 |
| | | @GetMapping("byCondition") |
| | | public ServiceModel serchByCondition(@RequestBody Alarm_param param){ |
| | | @PostMapping("/byCondition") |
| | | @ApiOperation(notes = "",value="根据告警类型查告警参数") |
| | | public ServiceModel serchByCondition(@NotNull @RequestParam Integer alm_id){ |
| | | System.out.println("alm_id = " + alm_id); |
| | | Alarm_param param =new Alarm_param(); |
| | | param.setAlm_id(alm_id); |
| | | ServiceModel model = service.serchByCondition(param); |
| | | |
| | | return model; |
| | |
| | | import com.fgkj.services.AnnounceService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | @RequestMapping("announce") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "announce接口") |
| | | public class AnnounceController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //0.6公告信息显示 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="公告信息显示") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | return model; |
| | |
| | | |
| | | //发布新公告 |
| | | @PostMapping("/") |
| | | public ServiceModel add(@RequestBody Announce a) { |
| | | @ApiOperation(notes = "KEY announce_time VALUE 2018/7/7 11:11:00",value="发布新公告") |
| | | public ServiceModel add(@RequestParam Date announce_time, @RequestParam String message, @RequestParam String note) { |
| | | Announce a= new Announce(); |
| | | a.setAnnounce_time(announce_time); |
| | | a.setMessage(message); |
| | | a.setNote(note); |
| | | // Announce a=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Announce.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | a.setUsr_id(uinf.getuId()); |
| | | ServiceModel model=service.add(a); |
| | | return model; |
| | | } |
| | | |
| | | //更新公告 |
| | | |
| | | //更新公告 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "{ \"num\": 13, \"usr_id\": \"1001\", \"announce_time\": \"2026-09-05 07:30:00\", \"message\": \"news\", \"note\": \" \" }",value="更新公告") |
| | | public ServiceModel update(@RequestBody Announce a) { |
| | | // Announce a=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Announce.class); |
| | | ServiceModel model=service.update(a); |
| | | return model; |
| | | } |
| | | ServiceModel model = service.update(a); |
| | | return model; |
| | | } |
| | | |
| | | //删除公告 |
| | | @DeleteMapping("/") |
| | | public ServiceModel delete(@RequestBody Announce a) { |
| | | // Announce a=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Announce.class); |
| | | @ApiOperation(notes = "",value="删除公告") |
| | | public ServiceModel delete(@RequestParam Integer num) { |
| | | Announce a= new Announce(); |
| | | a.setNum(num); |
| | | ServiceModel model=service.delete(a); |
| | | return model; |
| | | } |
| | | |
| | | //根据条件查询公告信息 |
| | | @GetMapping("byCondition") |
| | | public ServiceModel serchByCondition(@RequestBody Announce a){ |
| | | // Announce a=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Announce.class); |
| | | ServiceModel model=service.serchByCondition(a); |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "{ \"announce_time\":\"2000-09-05 07:30:00\", \"announce_time1\":\"2016-09-05 07:30:00\", \"message\":\"news\", \"usr_id\":\"1002\", \"pageBean\":{ \"pageNum\":\"1\", \"pageSize\":\"10\" } }",value="根据条件查询公告信息") |
| | | public ServiceModel serchByCondition(@RequestBody Announce a) { |
| | | ServiceModel model = service.serchByCondition(a); |
| | | return model; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.App_ParamService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("appParam") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "appParam接口") |
| | | public class App_ParamController{ |
| | | |
| | | @Resource |
| | | private App_ParamService service; |
| | | |
| | | @Autowired |
| | | private DatasourceConfig datasourceConfig; |
| | | |
| | | //根据discharge/charge/poweroff查询 |
| | | @GetMapping("byInfo") |
| | | public ServiceModel serchByInfo(@RequestBody App_Param param) { |
| | | // App_Param param = getGson().fromJson(json, App_Param.class); |
| | | @PostMapping("byInfo") |
| | | @ApiOperation(notes = "",value="byInfo") |
| | | public ServiceModel serchByInfo(@RequestParam String param_name) { |
| | | App_Param param = new App_Param(); |
| | | param.setParam_name(param_name); |
| | | ServiceModel model = service.serchByInfo(param); |
| | | |
| | | return model; |
| | | } |
| | | |
| | | //修改参数 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "[{ \"num\": 1, \"param_value\": 11 }]",value="修改参数") |
| | | public ServiceModel update(@RequestBody List<App_Param> params) { |
| | | // List<App_Param> params = getGson().fromJson(json, new TypeToken<List<App_Param>>(){}.getType()); |
| | | ServiceModel model = service.update(params); |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("ip") |
| | | @ApiOperation(notes = "",value="获取连接数据库的ip地址") |
| | | public ServiceModel searchIP(){ |
| | | //jdbc:mysql://localhost:3360/db_user?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true |
| | | String url = datasourceConfig.getUrl(); |
| | |
| | | * @return |
| | | */ |
| | | @PutMapping("ip") |
| | | @ApiOperation(notes = "设置服务器ip地址,TODO",value="设置服务器ip地址") |
| | | public ServiceModel updataIp(@RequestParam String json){ |
| | | |
| | | // ServiceModel model = DBUtil1.setIp(json); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Avoid_planService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | /**暂不编写*/ |
| | | @RequestMapping("avoidPlan") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "avoidPlan接口 暂不编写") |
| | | public class Avoid_planController{ |
| | | |
| | | @Resource |
| | | private Avoid_planService service; |
| | | |
| | | |
| | | //添加规避时间 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加规避时间") |
| | | public ServiceModel addPro(@RequestBody List<Avoid_plan> list){ |
| | | // List<Avoid_plan> list = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<Avoid_plan>>(){}.getType()); |
| | | ServiceModel model = service.addPro(list); |
| | |
| | | |
| | | //修改规避时间 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改规避时间") |
| | | public ServiceModel updatePro(@RequestBody List<Avoid_plan> list){ |
| | | // List<Avoid_plan> list = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<Avoid_plan>>(){}.getType()); |
| | | ServiceModel model = service.updatePro(list); |
| | |
| | | |
| | | //删除规避时间 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除规避时间") |
| | | public ServiceModel delPro(@RequestBody List<Avoid_plan> list){ |
| | | // List<Avoid_plan> list = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<Avoid_plan>>(){}.getType()); |
| | | ServiceModel model = service.delPro(list); |
| | |
| | | |
| | | //查询规避时间 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询规避时间") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model = service.searchAll(); |
| | | return model; |
| | |
| | | import com.fgkj.services.BadBatt_monService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("badBattMon") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "badBattMon接口") |
| | | public class BadBatt_monController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //查询落后单体总数 |
| | | @GetMapping("nums") |
| | | @ApiOperation(notes = "",value="查询落后单体总数") |
| | | public ServiceModel searchNums() { |
| | | User_inf userInf=(User_inf) ActionUtil.getUser(); |
| | | // User_inf userInf=new User_inf(); |
| | |
| | | |
| | | //落后单体查询:根据条件查询落后单体 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="落后单体查询:根据条件查询落后单体") |
| | | public ServiceModel serchByInfo(@RequestBody Batt_Maint_Dealarm bmd) { |
| | | // Batt_Maint_Dealarm bmd = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_Maint_Dealarm.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.BadBatt_mon_flagService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("badBattMonFlag") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "badBattMonFlag接口") |
| | | public class BadBatt_mon_flagController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //往标识表中插入一笔数据 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="往标识表中插入一笔数据") |
| | | public ServiceModel add(@RequestBody BadBatt_mon_flag monFlag) { |
| | | // BadBatt_mon_flag monflag = getGson().fromJson(json, BadBatt_mon_flag.class); |
| | | ServiceModel model = service.add(monFlag); |
| | |
| | | import com.fgkj.services.BattDischarge_paramService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battDischargeParam") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battDischargeParam接口") |
| | | public class BattDischarge_paramController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //8.1添加新的参数 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加新的参数") |
| | | public ServiceModel add(@RequestBody BattDischarge_param param){ |
| | | // BattDischarge_param param = getGson("yyyy-MM-dd").fromJson(json, BattDischarge_param.class); |
| | | ServiceModel model = service.add(param); |
| | |
| | | |
| | | //8.1修改参数信息 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改参数信息") |
| | | public ServiceModel update(@RequestBody BattDischarge_param param){ |
| | | // BattDischarge_param param = getGson("yyyy-MM-dd").fromJson(json, BattDischarge_param.class); |
| | | ServiceModel model = service.update(param); |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel del(@RequestBody BattDischarge_param param){ |
| | | // BattDischarge_param param = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattDischarge_param.class); |
| | | ServiceModel model = service.del(param); |
| | |
| | | |
| | | //8.1查询所有的参数 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有的参数") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model = service.searchAll(); |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="byCondition") |
| | | public ServiceModel serchByCondition(@RequestBody BattDischarge_param param){ |
| | | // BattDischarge_param param = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattDischarge_param.class); |
| | | ServiceModel model = service.serchByCondition(param); |
| | |
| | | import com.fgkj.dto.*; |
| | | import com.fgkj.services.BattDischarge_planService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battDischargePlan") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battDischargePlan接口") |
| | | public class BattDischarge_planController{ |
| | | |
| | | @Resource |
| | | private BattDischarge_planService service; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody BattDischarge_plan plan){ |
| | | // BattDischarge_plan plan = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattDischarge_plan.class); |
| | | ServiceModel model =service.add(plan); |
| | |
| | | |
| | | //8.1批量添加电池计划 |
| | | @PostMapping("/batch") |
| | | @ApiOperation(notes = "",value="批量添加电池计划") |
| | | public ServiceModel addPro(@RequestBody List<BattDischarge_plan> plans){ |
| | | // List<BattDischarge_plan> plans = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<BattDischarge_plan>>(){}.getType()); |
| | | ServiceModel model = service.addPro(plans); |
| | |
| | | } |
| | | |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody BattDischarge_plan plan){ |
| | | // BattDischarge_plan plan = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattDischarge_plan.class); |
| | | ServiceModel model = service.update(plan);///--------- |
| | |
| | | |
| | | //8.1批量修改放电计划的开始时间 |
| | | @PutMapping("/batch") |
| | | @ApiOperation(notes = "",value="批量修改放电计划的开始时间") |
| | | public ServiceModel updatePro(@RequestBody List<BattDischarge_plan> plans){ |
| | | // List<BattDischarge_plan> plans = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<BattDischarge_plan>>(){}.getType()); |
| | | ServiceModel model = service.updatePro(plans);///--------- |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel del(@RequestBody BattDischarge_plan plan){ |
| | | // BattDischarge_plan plan = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattDischarge_plan.class); |
| | | ServiceModel model = service.del(plan); |
| | |
| | | } |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model = service.searchAll(); |
| | | |
| | |
| | | |
| | | //8.1放电计划查询 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="放电计划查询") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | // Batt_Maint_Dealarm bmd = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_Maint_Dealarm.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | }*/ |
| | | //8.1放电计划管理中进页面查询 |
| | | @GetMapping("battGroupInfo") |
| | | @ApiOperation(notes = "",value="放电计划管理中进页面查询") |
| | | public ServiceModel serchBattgroupinfo(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serchBattgroupinfo(uinf); |
| | |
| | | } |
| | | //新版添加放电计划查询<排除设置过放电计划的电池组> |
| | | @GetMapping("battPlan") |
| | | @ApiOperation(notes = "",value="新版添加放电计划查询<排除设置过放电计划的电池组>") |
| | | public ServiceModel serchBattPlan(@RequestBody BattInf binf){ |
| | | // BattInf binf= getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,BattInf.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | } |
| | | //8.1查询未开始放电的放电计划总数 |
| | | @GetMapping("nums") |
| | | @ApiOperation(notes = "",value="查询未开始放电的放电计划总数") |
| | | public ServiceModel searchNums() { |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.searchNums(uinf); |
| | |
| | | *Preset_groupvol:放电失败 |
| | | *num: 总数*/ |
| | | @GetMapping("state") |
| | | @ApiOperation(notes = "",value="放电计划管理中饼状图(放电计划统计查询)") |
| | | public ServiceModel searchState(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.searchState(uinf); |
| | |
| | | *1.同机房(或设备)同一时间只能一组电池组放电 |
| | | *2.同机房(或设备)内电池组放电时间相隔至少3天*/ |
| | | @GetMapping("/judgePlan") |
| | | @ApiOperation(notes = "原则:\n" + |
| | | "\t\t\t *1.同机房(或设备)同一时间只能一组电池组放电\n" + |
| | | "\t\t\t *2.同机房(或设备)内电池组放电时间相隔至少3天",value="批量添加作业计划/修改作业计划时时先检测计划的可行性") |
| | | public ServiceModel judgePlan(@RequestBody List<BattDischarge_plan> listAll){ |
| | | // List<BattDischarge_plan> listAll= getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<BattDischarge_plan>>(){}.getType()); |
| | | ServiceModel model = service.judgePlan(listAll); |
| | |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.GsonBuilder; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("battInf") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battInf接口") |
| | | public class BattInfController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //添加新的电池组 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加新的电池组") |
| | | public ServiceModel add(@RequestBody List<BattInf> list) { |
| | | // List<BattInf> list= getGson("yyyy-MM-dd").fromJson(json, new TypeToken<List<BattInf>>(){}.getType()); |
| | | |
| | |
| | | } |
| | | //修改电池组信息 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改电池组信息") |
| | | public ServiceModel update(@RequestBody List<BattInf> list) { |
| | | // List<BattInf> list= getGson("yyyy-MM-dd").fromJson(json, new TypeToken<List<BattInf>>(){}.getType()); |
| | | return service.update(list); |
| | | } |
| | | //修改电池信息配置(ip地址,掩码和网关) |
| | | @PostMapping("/ip") |
| | | @ApiOperation(notes = "",value="修改电池信息配置(ip地址,掩码和网关)") |
| | | public ServiceModel updateIp(@RequestBody BattInf binf) { |
| | | // BattInf binf= getGson("yyyy-MM-dd").fromJson(json, BattInf.class); |
| | | //System.out.println(binf); |
| | |
| | | } |
| | | //删除电池组 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除电池组") |
| | | public ServiceModel delete(@RequestBody List<BattInf> list) { |
| | | // List<BattInf> list= getGson("yyyy-MM-dd").fromJson(json, new TypeToken<List<BattInf>>(){}.getType()); |
| | | |
| | |
| | | } |
| | | //根据维护区和机房名称查询电池组信息 |
| | | @GetMapping("inform") |
| | | @ApiOperation(notes = "",value="维护区和机房名称查询电池组信息") |
| | | public ServiceModel searchInform(@RequestBody Batt_Maint_Dealarm bmd) { |
| | | // Batt_Maint_Dealarm bmd = getGson().fromJson(json, Batt_Maint_Dealarm.class); |
| | | |
| | |
| | | } |
| | | //添加站点时返回最大的机房id,设备id,电池组id |
| | | @GetMapping("maxId") |
| | | @ApiOperation(notes = "",value="添加站点时返回最大的机房id,设备id,电池组id") |
| | | public ServiceModel searchmaxId() { |
| | | |
| | | return service.searchmaxId(); |
| | | } |
| | | |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "查capstdolstd/moncount/serstd",value="battgroupid查机房名称和电池组名称") |
| | | public ServiceModelOnce serchByCondition(@RequestBody BattInf bif) { |
| | | return service.serchByCondition(bif); |
| | | } |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll() { |
| | | return service.searchAll(); |
| | | } |
| | |
| | | |
| | | //根据电池id查询电池的基本信息 |
| | | @GetMapping("byBattGroupId") |
| | | @ApiOperation(notes = "",value="电池id查询电池的基本信息") |
| | | public ServiceModel searchBattBybattgroupid(@RequestBody BattInf bif){ |
| | | |
| | | return service.searchBattBybattgroupid(bif); |
| | |
| | | |
| | | //查询出当前存在内存中最大的设备的id(很重要**********) |
| | | @GetMapping("maxDevId") |
| | | @ApiOperation(notes = "",value="查询出当前存在内存中最大的设备的id(很重要**********)") |
| | | public ServiceModel searchMaxdevId_binf(){ |
| | | return service.searchMaxdevId_binf(); |
| | | } |
| | | |
| | | //----------根据StationName1(维护区) 查不重复的BattGroupName(蓄电池组) |
| | | @GetMapping("byStationName1") |
| | | @ApiOperation(notes = "",value="StationName1(维护区) 查不重复的BattGroupName(蓄电池组)") |
| | | public ServiceModelOnce serchByStationName1(@RequestBody BattInf bif){ |
| | | return service.serchByStationName1(bif); |
| | | } |
| | | //----------根据StationName1(维护区) 查不重复的StationName(站点) |
| | | @GetMapping("byStationName") |
| | | @ApiOperation(notes = "",value="StationName1(维护区) 查不重复的StationName(站点)") |
| | | public ServiceModelOnce serchByStationName(@RequestBody BattInf bif){ |
| | | return service.serchByStationName(bif); |
| | | } |
| | | //----------根据StationName1(维护区) 查不重复的StationName(站点)不包含91000000一期设备 |
| | | @GetMapping("byStationNameWithout91") |
| | | @ApiOperation(notes = "",value="StationName1(维护区) 查不重复的StationName(站点)不包含91000000一期设备") |
| | | public ServiceModelOnce serchByStationNameNot91(@RequestBody BattInf bif){ |
| | | return service.serchByStationNameNot91(bif); |
| | | } |
| | | //--查不重复的StationName1(维护区) |
| | | @GetMapping("byStation") |
| | | @ApiOperation(notes = "",value="查不重复的StationName1(维护区)") |
| | | public ServiceModelOnce serchByStation(){ |
| | | return service.serchByStation(); |
| | | } |
| | | //--查不重复的StationName1(维护区)不包含91000000一期设备 |
| | | @GetMapping("byStationWithout91") |
| | | @ApiOperation(notes = "",value="查不重复的StationName1(维护区)不包含91000000一期设备") |
| | | public ServiceModelOnce serchByStationNot91(){ |
| | | return service.serchByStationNot91(); |
| | | } |
| | | //-----------查询所有的省份 |
| | | @GetMapping("allStationName1") |
| | | @ApiOperation(notes = "",value="查询所有的省份") |
| | | public ServiceModel serchAllStationName1(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | return service.serchAllStationName1(uinf); |
| | | } |
| | | // ----------查询所有的市 |
| | | @GetMapping("allStationName2") |
| | | @ApiOperation(notes = "",value="查询所有的市") |
| | | public ServiceModel serchAllStationName2(@RequestBody BattInf binf){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | binf.setNum(uinf.getuId()); |
| | |
| | | } |
| | | //--查询所有的区县 |
| | | @GetMapping("allStationName5") |
| | | @ApiOperation(notes = "",value="查询所有的区县") |
| | | public ServiceModel serchAllStationName5(@RequestBody BattInf binf){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | binf.setNum(uinf.getuId()); |
| | |
| | | } |
| | | //--查询所有的机房 |
| | | @GetMapping("allStationName") |
| | | @ApiOperation(notes = "",value="查询所有的机房") |
| | | public ServiceModel serchAllStationName(@RequestBody BattInf binf){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | binf.setNum(uinf.getuId()); |
| | |
| | | |
| | | //--查询电池组信息 |
| | | @GetMapping("allBattInf") |
| | | @ApiOperation(notes = "",value="查询电池组信息") |
| | | public ServiceModel serchAllBattinf(@RequestBody BattInf binf){ |
| | | |
| | | return service.serchAllBattinf(binf); |
| | |
| | | |
| | | //----------根据StationName(站点) 查不重复的BattGroupName(蓄电池组) |
| | | @GetMapping("byBattGroupName") |
| | | @ApiOperation(notes = "",value="根据StationName(站点) 查不重复的BattGroupName(蓄电池组)") |
| | | public ServiceModelOnce serchByBattGroupName(@RequestBody BattInf bif){ |
| | | |
| | | return service.serchByBattGroupName(bif); |
| | | } |
| | | //查电池品牌 |
| | | @GetMapping("battProducer") |
| | | @ApiOperation(notes = "",value="查电池品牌") |
| | | public ServiceModelOnce serchByBattProducer(){ |
| | | |
| | | return service.serchByBattProducer(); |
| | | } |
| | | //查单体电压 |
| | | @GetMapping("monVolStd") |
| | | @ApiOperation(notes = "",value="查单体电压") |
| | | public ServiceModelOnce serchByMonVolStd(){ |
| | | |
| | | return service.serchByMonVolStd(); |
| | | } |
| | | //查电池容量 |
| | | @GetMapping("monCapStd") |
| | | @ApiOperation(notes = "",value="查电池容量") |
| | | public ServiceModelOnce serchByMonCapStd(){ |
| | | |
| | | return service.serchByMonCapStd(); |
| | |
| | | |
| | | //查询菜单 TODO |
| | | @GetMapping("menu") |
| | | @ApiOperation(notes = "TODO ",value="查询菜单") |
| | | public ServiceModel findMenu(){ |
| | | |
| | | return service.findMenu(); |
| | |
| | | |
| | | //判断新增的电池组是否存在 |
| | | @GetMapping("judgeBatt") |
| | | @ApiOperation(notes = "",value="判断新增的电池组是否存在") |
| | | public ServiceModel judgeBatt(@RequestBody BattInf binf){ |
| | | |
| | | return service.judgeBatt(binf); |
| | | } |
| | | |
| | | @GetMapping("byBattGroupId2") |
| | | @ApiOperation(notes = "",value="byBattGroupId2") |
| | | public ServiceModel findByBattGroupId(@RequestBody BattInf bif){ |
| | | ServiceModel model=service.findByBattGroupId(bif); |
| | | return model; |
| | |
| | | |
| | | //根据电池组id查询不重复的单体编号 |
| | | @GetMapping("monNumByBattGroupId") |
| | | @ApiOperation(notes = "",value="电池组id查询不重复的单体编号") |
| | | public ServiceModelOnce serchByMonNum(@RequestBody BattInf bif){ |
| | | |
| | | return service.serchByMonNum(bif); |
| | |
| | | |
| | | return service.serchBatt(bif); |
| | | } |
| | | |
| | | |
| | | //6.4.7按地域和标称电压分组统计蓄电池组服役超期的数量 |
| | | /* |
| | | * 区域层次放在stationid中 |
| | |
| | | * moncount中存放统计季度:一季度为1 以此类推 |
| | | * monnum 中存放年份*/ |
| | | @GetMapping("beyondTime") |
| | | @ApiOperation(notes = "区域层次放在stationid中 battgroupnum 中存放统计方式:年度统计为0 季度统计为1 moncount中存放统计季度:一季度为1 以此类推 monnum 中存放年份",value="按地域和标称电压分组统计蓄电池组服役超期的数量") |
| | | public ServiceModel serchBeyondTime(@RequestBody BattInf bif){ |
| | | // bif=ActionUtil.getGson("yyyy-MM-dd").fromJson(result,BattInf.class); |
| | | |
| | |
| | | |
| | | //6.4.8按地域和标称电压分组统计蓄电池组的数量(蓄电池组数量统计) |
| | | @GetMapping("battGroupCountByMonVolStdGroup") |
| | | @ApiOperation(notes = "",value="按地域和标称电压分组统计蓄电池组的数量(蓄电池组数量统计)") |
| | | public ServiceModel serchByMonVolStdGroup(@RequestBody BattInf bif){ |
| | | // bif=ActionUtil.getGson("yyyy-MM-dd").fromJson(result,BattInf.class); |
| | | |
| | |
| | | |
| | | //6.4.9按地域和标称电压分组统计蓄电池组品牌的数量(蓄电池供应商信息统计) |
| | | @GetMapping("battProducerCountByBattProducerGroup") |
| | | @ApiOperation(notes = "",value="按地域和标称电压分组统计蓄电池组品牌的数量(蓄电池供应商信息统计)") |
| | | public ServiceModel serchByBattProducerGroup(@RequestBody BattInf bif){ |
| | | // bif=ActionUtil.getGson("yyyy-MM-dd").fromJson(result,BattInf.class); |
| | | |
| | |
| | | |
| | | //6.4.10按地域和标称电压分组统计蓄电池组使用时间(蓄电池投产年限统计) |
| | | @GetMapping("battGroupTimeInUse") |
| | | @ApiOperation(notes = "",value="按地域和标称电压分组统计蓄电池组使用时间(蓄电池投产年限统计)") |
| | | public ServiceModel serchByBattInUseDateGroup(@RequestBody BattInf bif){ |
| | | // bif=ActionUtil.getGson("yyyy-MM-dd").fromJson(result,BattInf.class); |
| | | |
| | |
| | | |
| | | //1 根据机房id查询电池组id排序最小值 |
| | | @GetMapping("byIdLow") |
| | | @ApiOperation(notes = "",value="机房id查询电池组id排序最小值") |
| | | public ServiceModel serchByIdLow(@RequestBody BattInf bif){ |
| | | // bif=ActionUtil.getGson("yyyy-MM-dd").fromJson(result,BattInf.class); |
| | | |
| | |
| | | |
| | | //查询所有的机房 |
| | | @GetMapping("allStation") |
| | | @ApiOperation(notes = "",value="查询所有的机房") |
| | | public ServiceModel serchAllStation(){ |
| | | User_inf u = (User_inf)ActionUtil.getUser(); |
| | | |
| | |
| | | |
| | | //搜索机房或电池组 |
| | | @GetMapping("stationOrBattGroup") |
| | | @ApiOperation(notes = "",value="搜索机房或电池组") |
| | | public ServiceModel serchStationOrBattgroup(@RequestBody BattInf binf){ |
| | | // BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class); |
| | | |
| | |
| | | } |
| | | //根据机房id查询机房下的电池组信息 |
| | | @GetMapping("battByStationId") |
| | | @ApiOperation(notes = "",value="机房id查询机房下的电池组信息") |
| | | public ServiceModel serchBattByStation(@RequestBody BattInf binf){ |
| | | // BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class); |
| | | // result = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").toJson(model); |
| | |
| | | |
| | | //查询所有的电池组数 |
| | | @GetMapping("battCount") |
| | | @ApiOperation(notes = "",value="查询所有的电池组数") |
| | | public ServiceModel serchAllBatt(){ |
| | | User_inf u = (User_inf)ActionUtil.getUser(); |
| | | |
| | |
| | | } |
| | | //查站点下的所有设备名称 |
| | | @GetMapping("devNameByStationName3") |
| | | @ApiOperation(notes = "",value="查站点下的所有设备名称") |
| | | public ServiceModel searchDevByStationName3(@RequestBody BattInf binf){ |
| | | // BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class); |
| | | |
| | |
| | | |
| | | //首页上根据stationid查询电池组的机历卡 |
| | | @GetMapping("battAllInfoByStationId") |
| | | @ApiOperation(notes = "",value="首页上根据stationid查询电池组的机历卡") |
| | | public ServiceModel serchBattAllInfoByStationId(@RequestBody BattInf binf){ |
| | | // BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class); |
| | | |
| | |
| | | } |
| | | //跨域访问获取所有电池组的信息<-------跨域-----------> |
| | | @GetMapping("inform_ky") |
| | | @ApiOperation(notes = "跨域",value="跨域访问获取所有电池组的信息") |
| | | public ServiceModel searchInform_ky(){ |
| | | //isAllowHeaders(); //允许跨域访问 |
| | | |
| | |
| | | } |
| | | //添加新的电池组 |
| | | @PostMapping("ky") |
| | | @ApiOperation(notes = "",value="添加新的电池组") |
| | | public ServiceModel add_ky(@RequestBody List<BattInf> list) { |
| | | // List<BattInf> list= getGson("yyyy-MM-dd").fromJson(json, new TypeToken<List<BattInf>>(){}.getType()); |
| | | |
| | |
| | | } |
| | | //修改电池组信息<-------跨域-----------> |
| | | @PutMapping("ky") |
| | | @ApiOperation(notes = "跨域",value="修改电池组信息") |
| | | public ServiceModel update_ky(@RequestBody List<BattInf> list) { |
| | | // List<BattInf> list= getGson("yyyy-MM-dd").fromJson(json, new TypeToken<List<BattInf>>(){}.getType()); |
| | | |
| | |
| | | } |
| | | //删除电池组<-------跨域-----------> |
| | | @DeleteMapping("ky") |
| | | @ApiOperation(notes = "跨域",value="删除电池组") |
| | | public ServiceModel delete_ky(@RequestBody List<BattInf> list) { |
| | | // List<BattInf> list= getGson("yyyy-MM-dd").fromJson(json, new TypeToken<List<BattInf>>(){}.getType()); |
| | | |
| | |
| | | |
| | | //查询电池组信息<大屏显示> |
| | | @GetMapping("battOnBigScreen") |
| | | @ApiOperation(notes = "",value="查询电池组信息<大屏显示>") |
| | | public ServiceModel serchBatt_DP(@RequestBody BattInf binf){ |
| | | // BattInf binf= getGson("yyyy-MM-dd").fromJson(json, BattInf.class); |
| | | |
| | |
| | | } |
| | | //紫晶山西——---机房列表 |
| | | @GetMapping("stationList") |
| | | @ApiOperation(notes = "",value="紫晶山西——---机房列表") |
| | | public ServiceModel searchStationList(){ |
| | | |
| | | return service.searchStationList(); |
| | |
| | | import com.fgkj.services.BattMap_informationService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battMapInformation") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battMapInformation接口") |
| | | public class BattMap_informationController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //9.1录入机房信息 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="录入机房信息") |
| | | public ServiceModel add(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.add(binfo); |
| | |
| | | } |
| | | //9.1录入机房信息 |
| | | @PostMapping("dev") |
| | | @ApiOperation(notes = "",value="录入机房信息") |
| | | public ServiceModel addDev(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.addDev(binfo); |
| | |
| | | return model; |
| | | } |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.update(binfo); |
| | |
| | | } |
| | | //删除机房的位置信息 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除机房的位置信息") |
| | | public ServiceModel del(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.del(binfo); |
| | |
| | | |
| | | //9.1百度地图定位查询电池组信息 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="百度地图定位查询电池组信息") |
| | | public List searchAll(){ |
| | | List list = service.searchAll(); |
| | | return list; |
| | | } |
| | | //9.1地图上根据维护区查询机房经纬度 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="地图上根据维护区查询机房经纬度") |
| | | public ServiceModel serchByInfo(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.serchByInfo(binfo); |
| | |
| | | |
| | | //9.1百度地图定位根据省份查询所有该区域的机房 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="百度地图定位根据省份查询所有该区域的机房") |
| | | public List serchByCondition(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | List list = service.serchByCondition(binfo); |
| | |
| | | |
| | | //9.1机房详情显示机房具体落后和告警的信息(机房信息内容画图) |
| | | @GetMapping("monNum") |
| | | @ApiOperation(notes = "",value="机房详情显示机房具体落后和告警的信息(机房信息内容画图)") |
| | | public List serchMonNum(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | List list = service.serchMonNum(binfo); |
| | |
| | | |
| | | //9.1查询未添加物理信息的机房 |
| | | @GetMapping("notInBattMap") |
| | | @ApiOperation(notes = "",value="查询未添加物理信息的机房") |
| | | public ServiceModel serchNotInBattMap(){ |
| | | ServiceModel model = service.serchNotInBattMap(); |
| | | |
| | |
| | | } |
| | | //9.1查询未添加物理信息的机房(用户管理的) |
| | | @GetMapping("notInBattMapByUid") |
| | | @ApiOperation(notes = "",value="查询未添加物理信息的机房(用户管理的)") |
| | | public ServiceModel serchNotInBattMapByUid() { |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serchNotInBattMapByUid(uinf); |
| | |
| | | } |
| | | //9.1查询已经添加物理信息的机房(用户管理的) |
| | | @GetMapping("inBattMapByUid") |
| | | @ApiOperation(notes = "",value="查询已经添加物理信息的机房(用户管理的)") |
| | | public ServiceModel serchInBattMapByUid() { |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serchInBattMapByUid(uinf); |
| | |
| | | } |
| | | //9.1首页上查询已经添加物理信息的机房(用户管理的) 包括(告警总数落后总数延迟总数) |
| | | @GetMapping("userManageStation") |
| | | @ApiOperation(notes = "",value="首页上查询已经添加物理信息的机房(用户管理的) 包括(告警总数落后总数延迟总数)") |
| | | public List searchUserManageStation() { |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | List list = service.searchUserManageStation(uinf); |
| | |
| | | |
| | | //9.1电池寿命管理 |
| | | @GetMapping("byStationId") |
| | | @ApiOperation(notes = "",value="电池寿命管理") |
| | | public ServiceModel serchByStationid(@RequestBody BattMap_information bmap){ |
| | | // BattMap_information bmap = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.serchByStationid(bmap); |
| | |
| | | |
| | | //9.1查询机房所在的所有省份 |
| | | @GetMapping("stationName1") |
| | | @ApiOperation(notes = "",value="查询机房所在的所有省份") |
| | | public ServiceModel serchStationName1(){ |
| | | ServiceModel model = service.serchStationName1(); |
| | | |
| | |
| | | |
| | | //9.1根据省份查询机房所在的所有城市 |
| | | @GetMapping("stationName2") |
| | | @ApiOperation(notes = "",value="根据省份查询机房所在的所有城市") |
| | | public ServiceModel serchStationName2(@RequestBody BattMap_information bmap){ |
| | | // BattMap_information bmap = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.serchStationName2(bmap); |
| | |
| | | } |
| | | //根据省/市/区县查询所有的站点 |
| | | @GetMapping("stationName3") |
| | | @ApiOperation(notes = "",value="根据省/市/区县查询所有的站点") |
| | | public ServiceModel serchStationName3(@RequestBody BattInf binf){ |
| | | // BattInf binf = getGson().fromJson(json, BattInf.class); |
| | | ServiceModel model = service.serchStationName3(binf); |
| | |
| | | } |
| | | //9.1根据省份和城市查询机房所在的所有机房 |
| | | @GetMapping("stationName") |
| | | @ApiOperation(notes = "",value="根据省份和城市查询机房所在的所有机房") |
| | | public ServiceModel serchStationName(@RequestBody BattMap_information bmap){ |
| | | // BattMap_information bmap = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.serchStationName(bmap); |
| | |
| | | } |
| | | //查询站点的经纬度 |
| | | @GetMapping("addressByStationName3") |
| | | @ApiOperation(notes = "",value="查询站点的经纬度") |
| | | public ServiceModel serchAddressByStationName3(@RequestBody BattMap_information bmap){ |
| | | // BattMap_information bmap = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.serchAddressByStationName3(bmap); |
| | |
| | | import com.fgkj.dto.User_inf; |
| | | import com.fgkj.services.BattPower_offService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battPowerOff") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battPowerOff接口") |
| | | public class BattPower_offController{ |
| | | |
| | | @Resource |
| | | private BattPower_offService service; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody BattPower_off bpo) { |
| | | // BattPower_off bpo = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattPower_off.class); |
| | | ServiceModel model = service.add(bpo); |
| | |
| | | } |
| | | |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody BattPower_off bpo) { |
| | | // BattPower_off bpo = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattPower_off.class); |
| | | ServiceModel model = service.update(bpo); |
| | |
| | | return model; |
| | | } |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel delete(@RequestBody BattPower_off bpo) { |
| | | // BattPower_off bpo = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattPower_off.class); |
| | | ServiceModel model = service.delete(bpo); |
| | |
| | | /* |
| | | * 时间段选择放在:binf的battproductdate*/ |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "时间段选择放在:binf的battproductdate",value="机房断电统计查询") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | // Batt_Maint_Dealarm bmd = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_Maint_Dealarm.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | |
| | | //机房断电统计(首页上的饼状图) |
| | | @GetMapping("powerOff") |
| | | @ApiOperation(notes = "",value="机房断电统计(首页上的饼状图)") |
| | | public ServiceModel serchPowerOff(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serchPowerOff(uinf); |
| | |
| | | return model; |
| | | } |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model = service.searchAll(); |
| | | |
| | |
| | | import com.fgkj.services.BattTest_ResService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("battTestRes") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battTestRes接口") |
| | | public class BattTest_ResController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //电池充放电数据管理 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="电池充放电数据管理") |
| | | public List serchByCondition(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | // bmd = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_Maint_Dealarm.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | |
| | | //电池充放电数据管理(删除操作) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="电池充放电数据管理(删除操作)") |
| | | public ServiceModel delete(@RequestBody List<BattInf> list){ |
| | | // List<BattInf> list=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, new TypeToken<List<BattInf>>(){}.getType()); |
| | | ServiceModel model=service.delete(list); |
| | |
| | | import com.fgkj.services.Batt_DevdischargeService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("battDevDischarge") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battDevDischarge接口") |
| | | public class Batt_DevdischargeController{ |
| | | |
| | | @Resource |
| | |
| | | private User_logService uservice; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody Batt_Devdischarge bd){ |
| | | // Batt_Devdischarge bd = getGson("yyyy-MM-dd").fromJson(json, Batt_Devdischarge.class); |
| | | ServiceModel model = service.add(bd); |
| | |
| | | } |
| | | |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody Batt_Devdischarge bd){ |
| | | // Batt_Devdischarge bd = getGson("yyyy-MM-dd").fromJson(json, Batt_Devdischarge.class); |
| | | ServiceModel model = service.update(bd); |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel del(@RequestBody Batt_Devdischarge bd){ |
| | | // Batt_Devdischarge bd = getGson("yyyy-MM-dd").fromJson(json, Batt_Devdischarge.class); |
| | | ServiceModel model = service.del(bd); |
| | |
| | | } |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model = service.searchAll(); |
| | | |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Batt_MaintService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("battMaint") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battMaint接口") |
| | | public class Batt_MaintController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //1.3根据电池组id查询电池的电导和充放电信息 |
| | | @GetMapping("monNum") |
| | | @ApiOperation(notes = "",value="根据电池组id查询电池的电导和充放电信息") |
| | | public ServiceModel serchMon_num(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | ServiceModel model=service.serchMon_num(bmd); |
| | | return model; |
| | |
| | | import com.fgkj.services.Batt_Maint_DealarmService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("battMainDeAlarm") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battMainDeAlarm接口") |
| | | public class Batt_Maint_DealarmController{ |
| | | |
| | | |
| | |
| | | |
| | | //1.1电池信息统计分析查询 |
| | | @GetMapping("byConditionNew") |
| | | @ApiOperation(notes = "",value="电池信息统计分析查询") |
| | | public ServiceModel serchByConditionNew(@RequestBody Batt_Maint_Dealarm bd){ |
| | | // bd=ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_Maint_Dealarm.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | |
| | | //1.2电池组统计分析查询 |
| | | @GetMapping("low") |
| | | @ApiOperation(notes = "",value="电池组统计分析查询") |
| | | public ServiceModel serchLow(@RequestBody Batt_Maint_Dealarm bd){ |
| | | // bd = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_Maint_Dealarm.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | |
| | | //1.4电池组性能评估 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="电池组性能评估") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_Maint_Dealarm bd){ |
| | | // bd = ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_Maint_Dealarm.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | import com.fgkj.services.User_logService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("battAttention") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battAttention接口") |
| | | public class Batt_attentionController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //添加关注 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加关注") |
| | | public ServiceModel add(@RequestBody Batt_attention attention) { |
| | | // Batt_attention attention = getGson().fromJson(json, Batt_attention.class); |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | |
| | | |
| | | //取消关注 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="取消关注") |
| | | public ServiceModel delete(@RequestBody Batt_attention attention) { |
| | | // Batt_attention attention = getGson().fromJson(json, Batt_attention.class); |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | |
| | | |
| | | //根据电池组的筛选条件,查询单体的实际电压 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="根据电池组的筛选条件,查询单体的实际电压") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_Maint_Dealarm bmd) { |
| | | // Batt_Maint_Dealarm bmd = getGson().fromJson(json, Batt_Maint_Dealarm.class); |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | |
| | | } |
| | | //关注之前识别是否关注过 |
| | | @GetMapping("judge") |
| | | @ApiOperation(notes = "",value="关注之前识别是否关注过") |
| | | public ServiceModel judgeInOrNot(@RequestBody Batt_attention attention) { |
| | | // Batt_attention attention = getGson().fromJson(json, Batt_attention.class); |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | |
| | | import com.fgkj.services.Battalarm_dataService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("battDevAlarmData") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battDevAlarmData接口") |
| | | public class Batt_devalarm_dataController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //3.3设备告警实时查询 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="设备告警实时查询") |
| | | public ServiceModel getByInfo(@RequestBody Batt_devalarm_data bdd) { |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | bdd.setUinf(uinf); |
| | |
| | | |
| | | //3.4设备告警历史记录查询 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备告警历史记录查询") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_Maint_Dealarm bmd) { |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | bmd.setUinf(uinf); |
| | |
| | | |
| | | //3.4设备实时告警(确认告警)<多数据修改> |
| | | @PutMapping("/batch") |
| | | @ApiOperation(notes = "",value="设备实时告警(确认告警)<多数据修改>") |
| | | public ServiceModel updatePro(@RequestBody List<Batt_devalarm_data> list) { |
| | | ServiceModel model = service.updatePro(list); |
| | | |
| | |
| | | |
| | | //3.4设备实时告警(取消告警)<多数据修改> |
| | | @PutMapping("/cancelBatch") |
| | | @ApiOperation(notes = "",value="设备实时告警(取消告警)<多数据修改>") |
| | | public ServiceModel cancelPro(@RequestBody List<Batt_devalarm_data> list) { |
| | | ServiceModel model = service.cancelPro(list); |
| | | |
| | |
| | | |
| | | //3.4设备实时告警/历史告警(删除告警)<多数据删除> |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(notes = "",value="设备实时告警/历史告警(删除告警)<多数据删除>") |
| | | public ServiceModel deletePro(@RequestBody List<Batt_devalarm_data> list) { |
| | | ServiceModel model = service.deletePro(list); |
| | | |
| | |
| | | |
| | | //查询设备告警总数 |
| | | @GetMapping("nums") |
| | | @ApiOperation(notes = "",value="查询设备告警总数") |
| | | public ServiceModel searchNums() { |
| | | User_inf userInf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.searchNums(userInf); |
| | |
| | | |
| | | //点击项目下方的滚动,查询该设备告警的实时信息 |
| | | @GetMapping("devAlarm") |
| | | @ApiOperation(notes = "",value="点击项目下方的滚动,查询该设备告警的实时信息") |
| | | public ServiceModel serchDev_alarm(@RequestBody Batt_devalarm_data ddata) { |
| | | ServiceModel model = service.serchDev_alarm(ddata); |
| | | |
| | |
| | | |
| | | //根据设备id查询设备是否存在设备告警 |
| | | @GetMapping("levelDevAlarmOrBattAlarm_ky") |
| | | @ApiOperation(notes = "",value="设备id查询设备是否存在设备告警") |
| | | public ServiceModel serchlevelDev_alarmOrBatt_alarm_ky(@RequestBody BattInf binf){ |
| | | int level_d=service.serchlevelDev_alarm(binf); |
| | | int level_b=battAlarmDataService.serchlevelBatt_alarm(binf); |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("devAlarm_ky") |
| | | @ApiOperation(notes = "",value="查询设备实时告警记录(跨域新增)") |
| | | public ServiceModel searchDevAlarm_ky(@RequestBody Batt_devalarm_data ddata ) { |
| | | ServiceModel model = service.searchDevAlarm(ddata); |
| | | |
| | |
| | | |
| | | //3.4设备实时告警(确认告警)<多数据修改><-----------跨域-------------> |
| | | @PutMapping("ky") |
| | | @ApiOperation(notes = "跨域",value="设备实时告警(确认告警)<多数据修改>") |
| | | public ServiceModel updatePro_ky(@RequestBody List<Batt_devalarm_data> list) { |
| | | ServiceModel model = service.updatePro(list); |
| | | |
| | |
| | | |
| | | //3.4设备实时告警(取消告警)<多数据修改><-----------跨域-------------> |
| | | @PutMapping("/cancelBatch_ky") |
| | | @ApiOperation(notes = "跨域",value="设备实时告警(取消告警)<多数据修改>") |
| | | public ServiceModel cancelPro_ky(@RequestBody List<Batt_devalarm_data> list) { |
| | | // List<Batt_devalarm_data> list = getGson().fromJson(json,new TypeToken<List<Batt_devalarm_data>>(){}.getType()); |
| | | ServiceModel model = service.cancelPro(list); |
| | |
| | | |
| | | //3.4设备实时告警/(删除告警)<多数据删除><-----------跨域-------------> |
| | | @DeleteMapping("/batch_ky") |
| | | @ApiOperation(notes = "跨域",value="设备实时告警/(删除告警)<多数据删除>") |
| | | public ServiceModel deletePro_ky(@RequestBody List<Batt_devalarm_data> list) { |
| | | // List<Batt_devalarm_data> list = getGson().fromJson(json,new TypeToken<List<Batt_devalarm_data>>(){}.getType()); |
| | | ServiceModel model = service.deletePro(list); |
| | |
| | | //紫晶山西根据设备id和电池组id查询机房告警信息 |
| | | //TODO 暂不需要 |
| | | @GetMapping("stationAlarm") |
| | | @ApiOperation(notes = "TODO 暂不需要",value="紫晶山西根据设备id和电池组id查询机房告警信息") |
| | | public ServiceModel seachStationAlarm(@RequestBody BattInf binf) { |
| | | // BattInf binf = getGson(ActionUtil.time_yyyyMMddHHmmss).fromJson(json,BattInf.class); |
| | | ServiceModel model = service.seachStationAlarm(binf); |
| | |
| | | import com.fgkj.services.Batt_devalarm_data_historyService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("battDevAlarmDataHistory") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battDevAlarmDataHistory接口") |
| | | public class Batt_devalarm_data_historyController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //3.4设备告警历史记录查询 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备告警历史记录查询") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_Maint_Dealarm bmd) { |
| | | // Batt_Maint_Dealarm bmd = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_Maint_Dealarm.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | |
| | | //3.4设备历史告警(删除告警)<多数据删除> |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="设备历史告警(删除告警)<多数据删除>") |
| | | public ServiceModel deletePro(@RequestBody List<Batt_devalarm_data_history> list) { |
| | | // List<Batt_devalarm_data_history> list = getGson().fromJson(json,new TypeToken<List<Batt_devalarm_data_history>>(){}.getType()); |
| | | ServiceModel model = service.deletePro(list); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Batt_dischargeService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battDischarge") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battDischarge接口") |
| | | public class Batt_dischargeController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //批量添加 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="批量添加") |
| | | public ServiceModel add(@RequestBody List<Batt_discharge> list) { |
| | | // List<Batt_discharge> list=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, new TypeToken<List<Batt_discharge>>(){}.getType()); |
| | | ServiceModel model=service.add(list); |
| | |
| | | } |
| | | //移除黑名单 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="移除黑名单") |
| | | public ServiceModel del(@RequestBody List<Batt_discharge> list) { |
| | | // List<Batt_discharge> list=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, new TypeToken<List<Batt_discharge>>(){}.getType()); |
| | | ServiceModel model=service.del(list); |
| | |
| | | } |
| | | //根据设备id查询改设备是否被加入至黑名单 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备id查询改设备是否被加入至黑名单") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_discharge bd) { |
| | | // Batt_discharge bd=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_discharge.class); |
| | | ServiceModel model=service.serchByCondition(bd); |
| | |
| | | } |
| | | //根据省市区县机房信息查询出所有不能放电的站 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="省市区县机房信息查询出所有不能放电的站") |
| | | public ServiceModel searchAll() { |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | } |
| | | //根据省市区县机房信息查询出所有能放电的站 |
| | | @GetMapping("allNotIn") |
| | | @ApiOperation(notes = "",value="省市区县机房信息查询出所有能放电的站") |
| | | public ServiceModel searchAllNotIn() { |
| | | ServiceModel model=service.searchAllNotIn(); |
| | | |
| | |
| | | import com.fgkj.services.Batt_electricityService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("battElectricity") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battElectricity接口") |
| | | public class Batt_electricityController{ |
| | | |
| | | @Resource |
| | |
| | | private User_logService uservice; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody Batt_electricity be){ |
| | | // Batt_electricity be = getGson().fromJson(json, Batt_electricity.class); |
| | | ServiceModel model = service.add(be); |
| | |
| | | return model; |
| | | } |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody Batt_electricity be){ |
| | | // Batt_electricity be = getGson().fromJson(json, Batt_electricity.class); |
| | | ServiceModel model = service.update(be); |
| | |
| | | return model; |
| | | } |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel del(@RequestBody Batt_electricity be){ |
| | | // Batt_electricity be = getGson().fromJson(json, Batt_electricity.class); |
| | | ServiceModel model = service.del(be); |
| | |
| | | return model; |
| | | } |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model = service.searchAll(); |
| | | |
| | |
| | | * 统计方式放在battinf 的signalname 中 1 - 月 2-季度 3-年份 |
| | | * */ |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "根据设备id连battinf和batt_devdischarge表",value="查询电度") |
| | | public List serchByCondition(@RequestBody BattInf binf){ |
| | | // BattInf binf = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class); |
| | | List list = service.serchByCondition(binf); |
| | |
| | | |
| | | //9.1机房主控中用电量的统计的折线图 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="机房主控中用电量的统计的折线图") |
| | | public ServiceModel serchByInfo(@RequestBody BattInf binf){ |
| | | // BattInf binf = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class); |
| | | //System.out.println(binf); |
| | |
| | | import com.fgkj.services.Batt_historyService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("battHistory") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battHistory接口") |
| | | public class Batt_historyController{ |
| | | |
| | | @Resource |
| | |
| | | //查询所有的历史实时数据 |
| | | //TODO 数据库不同,使用这个表名测试 db_batt_history.tb_batt_910000001_2017_12 |
| | | @GetMapping("serchByCondition") |
| | | @ApiOperation(notes = "TODO 数据库不同表,待测",value="查询所有的历史实时数据") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_history batt_his){ |
| | | // Batt_history batt_his= ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_history.class); |
| | | ServiceModel model=service.serchByCondition(batt_his); |
| | |
| | | import com.fgkj.dto.*; |
| | | import com.fgkj.services.Batt_maint_infService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("battMaintInf") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battMaintInf接口") |
| | | public class Batt_maint_infController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //2.1电池故障维护记录查询 |
| | | @GetMapping("maint") |
| | | @ApiOperation(notes = "",value="电池故障维护记录查询") |
| | | public ServiceModel serchMaint(@RequestBody Batt_Maint_Dealarm bd){ |
| | | //System.out.println(bd); |
| | | // bd = ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_Maint_Dealarm.class); |
| | |
| | | * remark存放品牌 |
| | | */ |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="电池故障处理统计查询") |
| | | public List serchByCondition(@RequestBody Batt_User_Permit bup){ |
| | | // bup= ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_User_Permit.class); |
| | | List list=service.serchByCondition(bup); |
| | |
| | | |
| | | //0.3查询所有的维护记录(只传page对象) |
| | | @GetMapping("/") |
| | | @ApiOperation(notes = "",value="查询所有的维护记录(只传page对象)") |
| | | public ServiceModel search(){ |
| | | ServiceModel model=service.search(); |
| | | return model; |
| | |
| | | |
| | | //0.4电池组故障率 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="电池组故障率") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | return model; |
| | |
| | | |
| | | //0.4/0.8电池组故障率/维护率(最新) |
| | | @GetMapping("byStationName") |
| | | @ApiOperation(notes = "",value="电池组故障率/维护率(最新)") |
| | | public ServiceModel searchByStationName(@RequestBody Batt_Maint_Dealarm bd) { |
| | | ServiceModel model=service.searchByStationName(bd); |
| | | |
| | |
| | | |
| | | //根据电池组id查询电池的故障信息 |
| | | @GetMapping("byBattGroupId") |
| | | @ApiOperation(notes = "",value="电池组id查询电池的故障信息") |
| | | public ServiceModel searchByBattgroupId(@RequestBody Batt_maint_inf bmi){ |
| | | // bmi=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_maint_inf.class); |
| | | ServiceModel model=service.searchByBattgroupId(bmi); |
| | |
| | | |
| | | //2.1 电池维护记录查询(编辑记录) |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="电池维护记录查询(编辑记录)") |
| | | public ServiceModel update(@RequestBody Batt_maint_inf bmi,@RequestBody List<Batt_maint_process> process) { |
| | | // bmi=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_maint_inf.class); |
| | | // List<Batt_maint_process> process = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, new TypeToken<List<Batt_maint_process>>(){}.getType()); |
| | |
| | | } |
| | | //2.1 电池维护记录查询(删除记录) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="电池维护记录查询(删除记录)") |
| | | public ServiceModel delete(@RequestBody Batt_maint_inf bmi) { |
| | | // bmi=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_maint_inf.class); |
| | | ServiceModel model=service.delete(bmi); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Batt_maint_processService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("battMaintProcess") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battMaintProcess接口") |
| | | public class Batt_maint_processController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //3.1根据id查所有编辑信息 |
| | | @GetMapping("serchByCondition") |
| | | @ApiOperation(notes = "",value="根据id查所有编辑信息") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_maint_process bmp){ |
| | | // bmp=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_maint_process.class); |
| | | ServiceModel model=service.serchByCondition(bmp); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Batt_maintenance_infService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("battMaintenanceInf") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battMaintenanceInf接口") |
| | | public class Batt_maintenance_infController{ |
| | | |
| | | @Resource |
| | |
| | | // private Batt_maintenance_inf bmi; |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | return model; |
| | |
| | | import com.fgkj.services.Batt_param_lowService; |
| | | import com.google.gson.Gson; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battParamLow") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battParamLow接口") |
| | | public class Batt_param_lowController{ |
| | | |
| | | @Resource |
| | |
| | | // private String blowstr; |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | //System.out.println(result); |
| | |
| | | } |
| | | |
| | | @PutMapping("updateAll") |
| | | @ApiOperation(notes = "",value="全部更新") |
| | | public ServiceModel updateAll(@RequestBody List<Batt_param_low> list){ |
| | | Gson gson=new Gson(); |
| | | UserRole u=new UserRole(); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.history.Batt_realdataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("battRealData") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battRealData接口") |
| | | public class Batt_realdataController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //按照时间倒序查出具体电池组的所有信息 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="按照时间倒序查出具体电池组的所有信息") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_realdata realData) { |
| | | // Batt_realdata breal=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_realdata.class); |
| | | ServiceModel model=service.serchByCondition(realData); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Batt_rtService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @RequestMapping("battRt") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battRt接口") |
| | | public class Batt_rtController { |
| | | |
| | | private ServiceModel serviceModel; |
| | |
| | | |
| | | /**根据电池组id查询电池组实时状态和电池单体实时数据*/ |
| | | @GetMapping("byGroupId") |
| | | @ApiOperation(notes = "",value="电池组id查询电池组实时状态和电池单体实时数据") |
| | | public ServiceModel searchByGroupId(@RequestBody Batt_rtstate rtState){ |
| | | // Batt_rtstate rtState = getGson().fromJson(json, Batt_rtstate.class); |
| | | serviceModel =batt_rtService.searchByGroupId(rtState.getBattGroupId()); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Batt_rtdataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @RequestMapping("battRtData") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battRtData接口") |
| | | public class Batt_rtdataController{ |
| | | |
| | | @Resource |
| | | private Batt_rtdataService service; |
| | | |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="实时监测") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_rtdata rtdata){ |
| | | // Batt_rtdata rtdata=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_rtdata.class); |
| | | ServiceModel model=service.serchByCondition(rtdata); |
| | |
| | | } |
| | | //历史监测中查询出电池组的实时内阻并将其导出报表 |
| | | @GetMapping("resById") |
| | | @ApiOperation(notes = "",value="历史监测中查询出电池组的实时内阻并将其导出报表") |
| | | public ServiceModel serchResById(@RequestBody Batt_rtdata rtdata){ |
| | | // Batt_rtdata rtdata=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_rtdata.class); |
| | | ServiceModel model=service.serchResById(rtdata); |
| | |
| | | } |
| | | //跨域访问查询电池组的单体数据 < ! ---- ---- 跨域访问 ------------> |
| | | @GetMapping("byCondition_ky") |
| | | @ApiOperation(notes = "跨域访问",value="跨域访问查询电池组的单体数据") |
| | | public ServiceModel serchByCondition_ky(@RequestBody Batt_rtdata rtdata){ |
| | | //ActionUtil.isAllowHeaders(); |
| | | ServiceModel model = new ServiceModel(); |
| | |
| | | import com.fgkj.services.Batt_rtstateService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("battRtState") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battRtState接口") |
| | | public class Batt_rtstateController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //实时监测中的查询实时组端信息 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="实时监测中的查询实时组端信息") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_rtstate rtstate){ |
| | | //System.out.println("开始查询rtstate"); |
| | | ServiceModel model=service.serchByCondition(rtstate); |
| | |
| | | |
| | | //9.1根据查询电池组单体的实时数据(电池单体实时信息) |
| | | @GetMapping("byMons") |
| | | @ApiOperation(notes = "",value="查询电池组单体的实时数据(电池单体实时信息)") |
| | | public ServiceModel serchByMons(@RequestBody BattInf binf){ |
| | | // BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class); |
| | | ServiceModel model = service.serchByMons(binf); |
| | |
| | | |
| | | //根据电池组id查询该电池组/单体的实时情况(电池续航能力) |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="电池组id查询该电池组/单体的实时情况(电池续航能力)") |
| | | public ServiceModel serchByInfo(@RequestBody BattInf binf){ |
| | | // BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class); |
| | | ServiceModel model = service.serchByInfo(binf); |
| | |
| | | // } |
| | | //首页上饼状图电池状态比例 |
| | | @GetMapping("battStateRate") |
| | | @ApiOperation(notes = "",value="首页上饼状图电池状态比例") |
| | | public ServiceModel serchBattStateRate(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serchBattStateRate(uinf); |
| | |
| | | |
| | | //电池组实时情况+实时电池续航能力查询 |
| | | @GetMapping("battLife") |
| | | @ApiOperation(notes = "",value="电池组实时情况+实时电池续航能力查询") |
| | | public ServiceModel serchBattLife(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | System.out.println("bmd = " + bmd); |
| | | // Batt_Maint_Dealarm bmd = ActionUtil.getGson().fromJson(json, Batt_Maint_Dealarm.class); |
| | |
| | | |
| | | //测试数据——实时查询中左下角的充放电统计(旧) |
| | | @GetMapping("disOrCharge") |
| | | @ApiOperation(notes = "",value="测试数据——实时查询中左下角的充放电统计(旧)") |
| | | public ServiceModel serchDisOrChargr(){ |
| | | ServiceModel model = service.serchDisOrChargr(); |
| | | return model; |
| | |
| | | |
| | | //测试数据——实时查询中左下角的充放电统计(用户管理的机房) |
| | | @GetMapping("disOrCharge2") |
| | | @ApiOperation(notes = "",value="测试数据——实时查询中左下角的充放电统计(用户管理的机房)") |
| | | public ServiceModel serchDisOrChargrNew(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serchDisOrChargrNew(uinf); |
| | |
| | | } |
| | | //实时监测中的查询实时组端信息 <!-- 跨域访问 ---> |
| | | @GetMapping("byCondition_ky") |
| | | @ApiOperation(notes = "跨域访问",value="实时监测中的查询实时组端信息") |
| | | public ServiceModel serchByCondition_ky(@RequestBody Batt_rtstate rtstate){ |
| | | //ActionUtil.isAllowHeaders(); //允许跨域访问 |
| | | // rtstate = ActionUtil.getGson().fromJson(json, Batt_rtstate.class); |
| | |
| | | import com.fgkj.services.Battalarm_dataService; |
| | | import com.fgkj.util.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battAlarmData") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battAlarmData接口") |
| | | public class Battalarm_dataController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //3.1电池告警实时查询 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="电池告警实时查询") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | bmd.setUinf(uinf); |
| | |
| | | |
| | | //3.2电池告警历史记录查询 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="电池告警历史记录查询") |
| | | public ServiceModel serchByInfo(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | // bmd = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_Maint_Dealarm.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | |
| | | //0.5查询实时告警数 |
| | | @GetMapping("alm") |
| | | @ApiOperation(notes = "",value="查询实时告警数") |
| | | public ServiceModel serchAlm(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | bmd.setUinf(uinf); |
| | |
| | | |
| | | //0.10实时告警记录总数查询 |
| | | @GetMapping("realTime") |
| | | @ApiOperation(notes = "",value="实时告警记录总数查询") |
| | | public ServiceModel serchRealTime(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model=service.serchRealTime(uinf); |
| | |
| | | }*/ |
| | | // 3.1电池告警实时查询(确认告警) |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="电池告警实时查询(确认告警)") |
| | | public ServiceModel update(@RequestBody List<Battalarm_data> list) { |
| | | /*if(bads!=null && bads.length()>0){ |
| | | Gson gson=new Gson(); |
| | |
| | | }*/ |
| | | // 3.1电池告警实时查询(取消告警) |
| | | @PutMapping("/cancel") |
| | | @ApiOperation(notes = "",value="电池告警实时查询(取消告警)") |
| | | public ServiceModel cancelalarm(@RequestBody List<Battalarm_data> list) { |
| | | /*ServiceModel model=new ServiceModel(); |
| | | if(bads!=null && bads.length()>0){ |
| | |
| | | } |
| | | //3.1/3.2电池告警查询(删除记录) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="电池告警查询(删除记录)") |
| | | public ServiceModel delete(@RequestBody List<Battalarm_data> list) { |
| | | /*ServiceModel model=new ServiceModel(); |
| | | if(bads!=null && bads.length()>0){ |
| | |
| | | |
| | | //饼状图电池单体健康率 |
| | | @GetMapping("healthRate") |
| | | @ApiOperation(notes = "",value="饼状图电池单体健康率") |
| | | public ServiceModel serchGood(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serchGood(uinf);//单体容量告警和单体告警告警 |
| | |
| | | } |
| | | //项目下方的滚动,查询最新电池告警(电池告警和设备告警筛选出最新的一条)(旧版本) |
| | | @GetMapping("topAlm") |
| | | @ApiOperation(notes = "",value="项目下方的滚动,查询最新电池告警(电池告警和设备告警筛选出最新的一条)(旧版本)") |
| | | public ServiceModel serchTopAlm(){ |
| | | ServiceModel model=service.serchTopAlm(); |
| | | return model; |
| | |
| | | |
| | | //项目下方的滚动,查询最新电池告警(电池告警和设备告警筛选出最新的五条) |
| | | @GetMapping("topAlmTen") |
| | | @ApiOperation(notes = "",value="项目下方的滚动,查询最新电池告警(电池告警和设备告警筛选出最新的五条)") |
| | | public ServiceModel serchTopAlmTen(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model=service.serchTopAlmTen(uinf); |
| | |
| | | |
| | | //点击项目下方的滚动,查询该条告警的实时信息 |
| | | @GetMapping("battAlarm") |
| | | @ApiOperation(notes = "",value="点击项目下方的滚动,查询该条告警的实时信息") |
| | | public ServiceModel serchBatt_alarm(@RequestBody Battalarm_data data){ |
| | | // Battalarm_data adata=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Battalarm_data.class); |
| | | ServiceModel model=service.serchBatt_alarm(data); |
| | |
| | | } |
| | | //3.1电池告警实时查询<***********跨域专用**************> |
| | | @GetMapping("byCondition_ky") |
| | | @ApiOperation(notes = "跨域专用",value="电池告警实时查询") |
| | | public ServiceModel serchByCondition_ky(@RequestBody BattInf binf){ |
| | | // BattInf binf=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class); |
| | | ServiceModel model=service.serchByCondition_ky(binf); |
| | |
| | | } |
| | | // 3.1电池告警实时查询(确认告警)<***********跨域专用**************> |
| | | @PutMapping("/ky") |
| | | @ApiOperation(notes = "跨域专用",value="电池告警实时查询(确认告警)") |
| | | public ServiceModel update_ky(@RequestBody List<Battalarm_data> list) { |
| | | /*ServiceModel model=new ServiceModel(); |
| | | if(bads!=null && bads.length()>0){ |
| | |
| | | } |
| | | // 3.1电池告警实时查询(取消告警)<***********跨域专用**************> |
| | | @PutMapping("/cancelAlarm_ky") |
| | | @ApiOperation(notes = "跨域专用",value="电池告警实时查询(取消告警)") |
| | | public ServiceModel cancelalarm_ky(@RequestBody List<Battalarm_data> list) { |
| | | /*ServiceModel model=new ServiceModel(); |
| | | if(bads!=null && bads.length()>0){ |
| | |
| | | } |
| | | //3.1/3.2电池告警查询(删除记录)<***********跨域专用**************> |
| | | @DeleteMapping("/ky") |
| | | @ApiOperation(notes = "跨域专用",value="电池告警查询(删除记录)") |
| | | public ServiceModel delete_ky(@RequestBody List<Battalarm_data> list) { |
| | | /*ServiceModel model=new ServiceModel(); |
| | | if(bads!=null && bads.length()>0){ |
| | |
| | | import com.fgkj.dto.User_inf; |
| | | import com.fgkj.services.Battalarm_data_historyService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battAlarmDataHistory") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battAlarmDataHistory接口") |
| | | public class Battalarm_data_historyController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //3.2电池告警查询(删除记录) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="电池告警查询(删除记录)") |
| | | public ServiceModel delete(@RequestBody List<Battalarm_data_history> list) { |
| | | // List<Battalarm_data_history> list=getGson().fromJson(json, new TypeToken<List<Battalarm_data_history>>(){}.getType()); |
| | | ServiceModel model=service.delete(list); |
| | |
| | | } |
| | | //3.2电池告警历史记录查询 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="电池告警历史记录查询") |
| | | public ServiceModel serchByInfo(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | // Batt_Maint_Dealarm bmd = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_Maint_Dealarm.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.BattresdataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battResData") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battResData接口") |
| | | public class BattresdataController { |
| | | |
| | | @Resource |
| | |
| | | |
| | | //根据电池组id和单体id查询内阻历史信息 |
| | | @GetMapping("monHistory") |
| | | @ApiOperation(notes = "",value="电池组id和单体id查询内阻历史信息") |
| | | public ServiceModel serchByMonHistory(@RequestBody BattInf binf) { |
| | | // BattInf binf=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class); |
| | | ServiceModel model = service.serchByMonHistory(binf); |
| | |
| | | } |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody Battresdata brd) { |
| | | ServiceModel model = service.add(brd); |
| | | return model; |
| | | } |
| | | |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody Battresdata brd) { |
| | | ServiceModel model = service.update(brd); |
| | | return model; |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel delete(@RequestBody Battresdata brd) { |
| | | ServiceModel model = service.delete(brd); |
| | | return model; |
| | | } |
| | | |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="byCondition") |
| | | public ServiceModel serchByCondition(@RequestBody Battresdata brd) { |
| | | |
| | | ServiceModel model = service.serchByCondition(brd); |
| | |
| | | } |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll(@RequestBody Battresdata brd) { |
| | | ServiceModel model = service.searchAll(brd); |
| | | return model; |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Battresdata_infService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battResDataInf") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battResDataInf接口") |
| | | public class Battresdata_infController{ |
| | | |
| | | @Resource |
| | |
| | | // private Battresdata_inf brdi; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody Battresdata_inf brdi) { |
| | | model = service.add(brdi); |
| | | return model; |
| | | } |
| | | |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody Battresdata_inf brdi) { |
| | | model = service.update(brdi); |
| | | |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel delete(@RequestBody Battresdata_inf brdi) { |
| | | model = service.delete(brdi); |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="筛选存在battresdata_inf表中的数据") |
| | | public ServiceModel serchByCondition(@RequestBody Battresdata_inf brdi) { |
| | | model = service.serchByCondition(brdi); |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll() { |
| | | model = service.searchAll(); |
| | | |
| | |
| | | |
| | | //6.4.1根据条件查询符合条件的测试完成的电池组(蓄电池电导测试完成率) |
| | | @GetMapping("complete") |
| | | @ApiOperation(notes = "",value="条件查询符合条件的测试完成的电池组(蓄电池电导测试完成率)") |
| | | public ServiceModel serchComplete(@RequestBody Battresdata_inf b){ |
| | | // Battresdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Battresdata_inf.class); |
| | | ServiceModel model=service.serchComplete(b); |
| | |
| | | |
| | | //6.4.3根据条件查询符合条件的测试完成的电池组(蓄电池电导合格率) |
| | | @GetMapping("serRate") |
| | | @ApiOperation(notes = "",value="条件查询符合条件的测试完成的电池组(蓄电池电导合格率)") |
| | | public ServiceModel serchSer(@RequestBody Battresdata_inf b){ |
| | | // Battresdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Battresdata_inf.class); |
| | | ServiceModel model=service.serchSer(b); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.BatttestdataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @RequestMapping("battTestData") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battTestData接口") |
| | | public class BatttestdataController{ |
| | | |
| | | @Resource |
| | |
| | | // private Batttestdata btd; |
| | | |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="byInfo") |
| | | public ServiceModel findByInfo(@RequestBody Batttestdata btd) { |
| | | ServiceModel model = service.serchByCondition(btd); |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("history") |
| | | @ApiOperation(notes = "",value="历史数据查询") |
| | | public ServiceModel findhistory(@RequestBody Batttestdata btd){ |
| | | // Batttestdata btd = ActionUtil.getGson().fromJson(json, Batttestdata.class); |
| | | ServiceModel model = service.serchByCondition(btd); |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("history_ky") |
| | | @ApiOperation(notes = "跨域访问",value="历史数据查询") |
| | | public ServiceModel findhistory_ky(@RequestBody Batttestdata btd){ |
| | | // btd = ActionUtil.getGson().fromJson(json, Batttestdata.class); |
| | | ServiceModel model = service.serchByCondition_ky(btd); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Batttestdata_infService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @RequestMapping("battTestDataInf") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battTestDataInf接口") |
| | | public class Batttestdata_infController{ |
| | | |
| | | ServiceModel model = new ServiceModel(); |
| | |
| | | // private Batt_Maint_Dealarm bmd; |
| | | |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="历史数据查询") |
| | | public ServiceModel findByInfo(@RequestBody Batttestdata_inf bti){ |
| | | model=service.serchByCondition(bti); |
| | | |
| | |
| | | * 根据电池组id查询电池组的inf表中的放电信息 |
| | | */ |
| | | @GetMapping("battTestInfDataById") |
| | | @ApiOperation(notes = "",value="电池组id查询电池组的inf表中的放电信息") |
| | | public ServiceModel searchBattTestInfDataById(@RequestBody Batttestdata_inf bti){ |
| | | // Batttestdata_inf bti = ActionUtil.getGson().fromJson(json, Batttestdata_inf.class); |
| | | model=service.serchByCondition(bti); |
| | |
| | | |
| | | //0.7电测放电测试比例 |
| | | @GetMapping("testScale") |
| | | @ApiOperation(notes = "",value="电测放电测试比例") |
| | | public ServiceModel searchTestsCale(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | try { |
| | | model=service.serchByInfo(bmd); |
| | |
| | | |
| | | //0.10电池健康率 |
| | | @GetMapping("healthRate") |
| | | @ApiOperation(notes = "",value="电池健康率") |
| | | public ServiceModel searchGood(){ |
| | | model=service.serchGood(); |
| | | |
| | |
| | | |
| | | //6.4.2根据条件查询符合条件的测试完成的电池组(蓄电池放电测试完成率) |
| | | @GetMapping("completeRate") |
| | | @ApiOperation(notes = "",value="条件查询符合条件的测试完成的电池组(蓄电池放电测试完成率)") |
| | | public ServiceModel serchComplete(@RequestBody Batttestdata_inf b){ |
| | | // Batttestdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batttestdata_inf.class); |
| | | ServiceModel model=service.serchComplete(b); |
| | |
| | | |
| | | //6.4.4根据条件查询符合条件的测试完成的电池组(蓄电池容量预警) |
| | | @GetMapping("capWarning") |
| | | @ApiOperation(notes = "",value="条件查询符合条件的测试完成的电池组(蓄电池容量预警)") |
| | | public ServiceModel serchCap(@RequestBody Batttestdata_inf b){ |
| | | // Batttestdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batttestdata_inf.class); |
| | | ServiceModel model=service.serchCap(b); |
| | |
| | | |
| | | //电池组历史放电数据续航能力查询 |
| | | @GetMapping("battLife") |
| | | @ApiOperation(notes = "",value="电池组历史放电数据续航能力查询") |
| | | public ServiceModel serchBattLife(@RequestBody BattInf binf){ |
| | | // BattInf binf = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, BattInf.class); |
| | | ServiceModel model = new ServiceModel(); |
| | |
| | | /* 根据电池组id查询电池组的inf表中的放电信息 <!------ 跨域访问 ---------> |
| | | */ |
| | | @GetMapping("battTestInfDataById_ky") |
| | | @ApiOperation(notes = "跨域访问",value="根据电池组id查询电池组的inf表中的放电信息") |
| | | public ServiceModel searchBattTestInfDataById_ky(@RequestBody Batttestdata_inf bti){ |
| | | // Batttestdata_inf bti = ActionUtil.getGson().fromJson(json, Batttestdata_inf.class); |
| | | model=service.serchByCondition_ky(bti); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.BatttestdatastopService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @RequestMapping("battTestDataStop") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battTestDataStop接口") |
| | | public class BatttestdatastopController{ |
| | | |
| | | @Resource |
| | |
| | | // private Batttestdatastop btds; |
| | | |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="历史监测单体电压折线图") |
| | | public ServiceModel findByInfo(@RequestBody Batttestdatastop btds){ |
| | | //System.out.println(btds); |
| | | ServiceModel model=service.serchByCondition(btds); |
| | |
| | | |
| | | //7.1电池放电落后单体筛选,并将电容告警的电池组加到告警表中 |
| | | @GetMapping("badBatt") |
| | | @ApiOperation(notes = "",value="电池放电落后单体筛选,并将电容告警的电池组加到告警表中") |
| | | public ServiceModel serchBadBatt(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | // Batt_Maint_Dealarm bmd = ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_Maint_Dealarm.class); |
| | | //System.out.println(bmd); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.history.BtsStateChangeInfService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("btsStateChange") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "btsStateChange接口") |
| | | public class BtsStateChangeInfController { |
| | | |
| | | @Resource |
| | |
| | | |
| | | //按照时间顺序显示设备的事件信息 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="按照时间顺序显示设备的事件信息") |
| | | public ServiceModel serchByCondition(@RequestBody BtsStateChangeInf binf) { |
| | | // BtsStateChangeInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BtsStateChangeInf.class); |
| | | ServiceModel model=service.serchByCondition(binf); |
| | |
| | | import com.fgkj.dto.User_Chart; |
| | | import com.fgkj.services.User_ChartService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @RequestMapping("chart") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "chart接口") |
| | | public class ChartController{ |
| | | |
| | | private static Map<String,String> fileUtil = new HashMap<String, String>(){ |
| | |
| | | } |
| | | |
| | | @PutMapping("form") |
| | | @ApiOperation(notes = "",value="form") |
| | | public boolean uploadform(@RequestBody User_Chart uchart,@RequestBody List<File> files,@RequestBody List<String> filesFileName){ |
| | | // User_Chart uchart=ActionUtil.getGson().fromJson(json, User_Chart.class); |
| | | boolean res=false; |
| | |
| | | |
| | | //修改班组的logo |
| | | @PutMapping("serverRootLogo") |
| | | @ApiOperation(notes = "",value="修改班组的logo") |
| | | public boolean updateServerRootLogo(HashMap<String,String> s){ |
| | | boolean res=false; |
| | | boolean isSuccess = false; |
| | |
| | | import com.fgkj.services.Chart_ColorService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("chartColor") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "chartColor接口") |
| | | public class Chart_ColorController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //修改用户的颜色组 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改用户的颜色组") |
| | | public ServiceModel update(@RequestBody Chart_Color ccolor) { |
| | | // Chart_Color ccolor=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Chart_Color.class); |
| | | Object obj = ActionUtil.getUser(); |
| | |
| | | |
| | | //查询用户对应得颜色组 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="查询用户对应得颜色组") |
| | | public ServiceModel serchByCondition() { |
| | | Object obj = (User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = new ServiceModel(); |
| | |
| | | |
| | | import com.fgkj.mapper.CheckMobile; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | |
| | | @RequestMapping("checkClient") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "checkClient接口") |
| | | public class CheckClientController{ |
| | | /** |
| | | * 检查访问方式是否为移动端 |
| | |
| | | * @Date : 2014-7-7 下午03:55:19 |
| | | */ |
| | | @GetMapping("check") |
| | | @ApiOperation(notes = "",value="检查访问方式是否为移动端") |
| | | public boolean check(){ |
| | | boolean isFromMobile=false; |
| | | |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Cmcc_Power_DataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("cmccPowerData") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "cmccPowerData接口") |
| | | public class Cmcc_Power_DataController{ |
| | | |
| | | @Resource |
| | | private Cmcc_Power_DataService service; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody Cmcc_Power_Data cpd) { |
| | | // Cmcc_Power_Data cpd = getGson().fromJson(json, Cmcc_Power_Data.class); |
| | | ServiceModel model = service.add(cpd); |
| | |
| | | } |
| | | |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody Cmcc_Power_Data cpd) { |
| | | // Cmcc_Power_Data cpd = getGson().fromJson(json, Cmcc_Power_Data.class); |
| | | ServiceModel model = service.update(cpd); |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel delete(@RequestBody Cmcc_Power_Data cpd) { |
| | | // Cmcc_Power_Data cpd = getGson().fromJson(json, Cmcc_Power_Data.class); |
| | | ServiceModel model = service.delete(cpd); |
| | |
| | | |
| | | //根据电池组id查询cmcc实时表中的实时电流画柱状图 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="电池组id查询cmcc实时表中的实时电流画柱状图") |
| | | public ServiceModel serchByCondition(@RequestBody BattInf binf){ |
| | | // BattInf binf = getGson().fromJson(json, BattInf.class); |
| | | ServiceModel model = service.serchByCondition(binf); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.CustompageService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("customPage") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "customPage接口") |
| | | public class CustompageController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //页面定制下添加导航或者子页面 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="页面定制下添加导航或者子页面") |
| | | public ServiceModel add(@RequestBody Custompage cust) { |
| | | // cust=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result,Custompage.class); |
| | | ServiceModel model=service.add(cust); |
| | |
| | | |
| | | //页面定制可以看到的子菜单和子模块 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="页面定制可以看到的子菜单和子模块") |
| | | public ServiceModel update(@RequestBody List<Custompage> list) { |
| | | // List<Custompage> list = ActionUtil.getGson().fromJson(result, new TypeToken<ArrayList<Custompage>>(){}.getType() ); |
| | | ServiceModel model=service.update(list); |
| | |
| | | } |
| | | //页面定制修改主导航下子页面的顺序 |
| | | @PutMapping("order") |
| | | @ApiOperation(notes = "",value="页面定制修改主导航下子页面的顺序") |
| | | public ServiceModel updateOrder(@RequestBody List<Custompage> list) { |
| | | // List<Custompage> list = ActionUtil.getGson().fromJson(result, new TypeToken<ArrayList<Custompage>>(){}.getType() ); |
| | | ServiceModel model=service.updateOrder(list); |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel delete(@RequestBody Custompage cust) { |
| | | ServiceModel model=service.delete(cust); |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="页面查询子模块/子菜单") |
| | | public ServiceModel serchByCondition(@RequestBody Custompage cust){ |
| | | // cust=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result,Custompage.class); |
| | | ServiceModel model=service.serchByCondition(cust); |
| | |
| | | |
| | | //查询所有的菜单(页面定制可以看到的子菜单和子模块) |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有的菜单(页面定制可以看到的子菜单和子模块)") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | setCust(model); |
| | |
| | | |
| | | //根据主导航的名字查询所有的子页面 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="主导航的名字查询所有的子页") |
| | | public ServiceModel serchByInfo(@RequestBody Custompage cust){ |
| | | // cust=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result,Custompage.class); |
| | | ServiceModel model=service.serchByInfo(cust); |
| | |
| | | } |
| | | //将导航对象数组存入session |
| | | @PostMapping("custom2Session") |
| | | @ApiOperation(notes = "",value="将导航对象数组存入session") |
| | | public static void setCust(ServiceModel obj){ |
| | | if(obj!=null){ |
| | | ServiceModel model=(ServiceModel) obj; |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Database_backupService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("databaseBackup") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "databaseBackup接口") |
| | | public class Database_backupController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //根据数据库名和表名修改备份数据库的使能(多笔记录) |
| | | @PutMapping("pro") |
| | | @ApiOperation(notes = "",value="数据库名和表名修改备份数据库的使能(多笔记录)") |
| | | public ServiceModel updatePro(@RequestBody List<Database_backup> list) { |
| | | ServiceModel model=new ServiceModel(); |
| | | /*if(json!=null&&json.length()>0){ |
| | |
| | | |
| | | //根据数据库名和表名修改备份数据库的使能(多笔记录) |
| | | @PutMapping("all") |
| | | @ApiOperation(notes = "",value="数据库名和表名修改备份数据库的使能(多笔记录)") |
| | | public ServiceModel updateProAll() { |
| | | ServiceModel model=service.updateProAll(); |
| | | |
| | |
| | | |
| | | //查询所有数据库备份信息 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有数据库备份信息") |
| | | public ServiceModel searchAll() { |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | |
| | | //查询数据库备份表中所有的数据库 |
| | | @GetMapping("allDatabase") |
| | | @ApiOperation(notes = "",value="查询数据库备份表中所有的数据库") |
| | | public ServiceModel searchAllDatabase() { |
| | | ServiceModel model=service.searchAllDatabase(); |
| | | |
| | |
| | | |
| | | //根据数据库名查询所有的表 |
| | | @GetMapping("allTable") |
| | | @ApiOperation(notes = "",value="数据库名查询所有的表") |
| | | public ServiceModel searchAllTable(@RequestBody Database_backup baseup) { |
| | | // Database_backup baseup=getGson().fromJson(json, Database_backup.class); |
| | | ServiceModel model=service.searchAllTable(baseup); |
| | |
| | | |
| | | //查询个数 |
| | | @GetMapping("num") |
| | | @ApiOperation(notes = "",value="查询个数") |
| | | public ServiceModelOnce searchNum() { |
| | | ServiceModelOnce model=service.searchNum(); |
| | | |
| | |
| | | import com.fgkj.services.Dev_paramService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("devParam") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "devParam接口") |
| | | public class Dev_paramController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //修改所有设备的所有的告警参数 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改所有设备的所有的告警参数") |
| | | public ServiceModel update(@RequestBody Dev_param dparam){ |
| | | // Dev_param dparam=ActionUtil.getGson().fromJson(json, Dev_param.class); |
| | | ServiceModel model=service.update(dparam); |
| | |
| | | } |
| | | //查询所有设备的所有的告警参数 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有设备的所有的告警参数") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | } |
| | | //根据设备id和告警类型查设备告警参数 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备id和告警类型查设备告警参数") |
| | | public ServiceModel serchByCondition(@RequestBody Dev_param dparam){ |
| | | // Dev_param dparam=ActionUtil.getGson().fromJson(json, Dev_param.class); |
| | | ServiceModel model=service.serchByCondition(dparam); |
| | |
| | | } |
| | | //查询所有存在设备告警参数的机房 |
| | | @GetMapping("allDevId") |
| | | @ApiOperation(notes = "",value="查询所有存在设备告警参数的机房") |
| | | public ServiceModel serchAllDevId(){ |
| | | ServiceModel model=service.serchAllDevId(); |
| | | |
| | |
| | | } |
| | | //根据设备id查询设备对应的告警参数种类 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="设备id查询设备对应的告警参数种类") |
| | | public ServiceModel serchByInfo(@RequestBody Dev_param dparam){ |
| | | // Dev_param dparam=ActionUtil.getGson().fromJson(json, Dev_param.class); |
| | | ServiceModel model=service.serchByInfo(dparam); |
| | |
| | | } |
| | | //根据设备id查询设备所有的参数 |
| | | @GetMapping("paramById") |
| | | @ApiOperation(notes = "",value="设备id查询设备所有的参数") |
| | | public ServiceModel serchParamById(@RequestBody Dev_param dparam){ |
| | | // Dev_param dparam=ActionUtil.getGson().fromJson(json, Dev_param.class); |
| | | ServiceModel model=service.serchParamById(dparam); |
| | |
| | | import com.fgkj.dto.User_inf; |
| | | import com.fgkj.services.Devstate_usrService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("devStateUsr") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "devStateUsr接口") |
| | | public class Devstate_usrController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //添加 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加") |
| | | public ServiceModel add(@RequestBody Devstate_usr dev_usr) { |
| | | // Devstate_usr dev_usr=getGson().fromJson(json, Devstate_usr.class); |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | |
| | | |
| | | //修改 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody Devstate_usr dev_usr) { |
| | | // Devstate_usr dev_usr=getGson().fromJson(json, Devstate_usr.class); |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | |
| | | } |
| | | //删除 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel del(@RequestBody Devstate_usr dev_usr) { |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | | // Devstate_usr dev_usr=getGson().fromJson(json, Devstate_usr.class); |
| | |
| | | } |
| | | //根据用户id查询 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="用户id查询") |
| | | public ServiceModel serchByCondition() { |
| | | User_inf uinf = (User_inf)ActionUtil.getUser(); |
| | | Devstate_usr dev_usr = new Devstate_usr(); |
| | |
| | | import com.google.gson.Gson; |
| | | import io.swagger.annotations.Api; |
| | | import com.fgkj.util.*; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("fboDataUpload") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fboDataUpload接口") |
| | | public class FboDataUploadController { |
| | | |
| | | // private String tableRowData; |
| | |
| | | |
| | | // 文件上传 |
| | | @PostMapping("uploadFile") |
| | | @ApiOperation(notes = "",value="文件上传") |
| | | public boolean uploadFile(@RequestParam String tableRowData,@RequestParam int battgroupid, |
| | | @RequestParam File[] file,@RequestParam String[] fileFileName) { |
| | | boolean res=false; |
| | |
| | | |
| | | // 停止上传 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="停止上传") |
| | | public DLG_Progress stopUpload() { |
| | | HttpSession session = ActionUtil.getSession(); |
| | | DLG_Progress progress = (DLG_Progress) session.getAttribute("progress"); |
| | |
| | | |
| | | // 查询进度 |
| | | @GetMapping("progress") |
| | | @ApiOperation(notes = "",value="查询进度") |
| | | public ServiceModel selectprogress() { |
| | | ServiceModel model = new ServiceModel(); |
| | | HttpSession session = ActionUtil.getSession(); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Fbsdev_Statechange_infService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @RequestMapping("fbsDevStateChangeInf") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fbsDevStateChangeInf接口") |
| | | public class Fbsdev_Statechange_infController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //根据设备id,时间等条件筛选设备 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="根据设备id,时间等条件筛选设备") |
| | | public ServiceModel serchByCondition(@RequestBody Fbsdev_Statechange_inf state_inf){ |
| | | // Fbsdev_Statechange_inf state_inf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbsdev_Statechange_inf.class); |
| | | ServiceModel model=service.serchByCondition(state_inf); |
| | |
| | | import com.fgkj.util.*; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | |
| | | @RequestMapping("fileDownload") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fileDownload接口") |
| | | public class FileDownloadController{ |
| | | /*private String PageName; |
| | | private String filename; |
| | | private String arr_Td; |
| | | private String arr_Th; |
| | | private String contentLength;*/ |
| | | //返回一个输入流,作为一个客户端来说是一个输入流,但对于服务器端是一个 输出流 |
| | | public InputStream getDownloadFile(@RequestParam String filename,String contentLength){ |
| | | //返回一个输入流,作为一个客户端来说是一个输入流,但对于服务器端是一个 输出流 |
| | | @PostMapping("downloadFile") |
| | | @ApiOperation(notes = "TODO ",value="downloadFile") |
| | | public InputStream getDownloadFile(@RequestParam String filename,@RequestParam String contentLength){ |
| | | InputStream is = null; |
| | | filename = "spket-1.6.23.jar"; |
| | | try { |
| | |
| | | import com.fgkj.mapper.impl.BattInfMapper; |
| | | import com.fgkj.services.FileService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | |
| | | @RequestMapping("fileUpload") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fileUpload接口") |
| | | public class FileUploadController { |
| | | |
| | | @Resource |
| | |
| | | |
| | | //上传fbo/idc文件 |
| | | @PostMapping("uploadFboFile") |
| | | @ApiOperation(notes = "TODO ",value="上传fbo/idc文件") |
| | | public List UploadFboFile(@RequestParam File[] file, @RequestParam String[] fileFileName, |
| | | @RequestParam int battgroupid) throws FileNotFoundException { |
| | | //String path = ServletActionContext.getRequest().getRealPath("/upload"); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.util.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | |
| | | @RequestMapping("i18n") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "i18n接口") |
| | | public class I18nController{ |
| | | |
| | | // private String lanuage; |
| | |
| | | |
| | | //切换中英文环境 |
| | | @PutMapping("locale") |
| | | @ApiOperation(notes = "",value="切换中英文环境") |
| | | public boolean SetLocale(@RequestParam String lanuage){ |
| | | boolean res=false; |
| | | Locale local = Locale.getDefault(); |
| | |
| | | package com.fgkj.controller; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping |
| | | @Controller |
| | | @Api |
| | | @Api(tags = "index接口") |
| | | @Deprecated |
| | | public class IndexController { |
| | | |
| | | @GetMapping("/") |
| | | @ApiOperation(notes = "",value="index") |
| | | public String index(HttpServletRequest request, HttpServletResponse response){ |
| | | return "index"; |
| | | /*try { |
| | |
| | | import com.fgkj.services.Ld9.BadLd9_monService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | */ |
| | | @RequestMapping("badLd9Mon") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "badLd9Mon接口") |
| | | public class BadLd9_monController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //查询落后单体总数 |
| | | @GetMapping("num") |
| | | @ApiOperation(notes = "",value="查询落后单体总数") |
| | | public ServiceModel searchNums() { |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.searchNums(uinf); |
| | |
| | | |
| | | //落后单体查询:根据条件查询落后单体 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="落后单体查询:根据条件查询落后单体") |
| | | public ServiceModel serchByInfo(@RequestBody Batt_Maint_Dealarm bmd) { |
| | | // Batt_Maint_Dealarm bmd = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_Maint_Dealarm.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Ld9.BadLd9_mon_flagService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("BadLd9MonFlag") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "BadLd9MonFlag接口") |
| | | public class BadLd9_mon_flagController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //往标识表中插入一笔数据 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "TODO 接口暂未使用",value="往标识表中插入一笔数据") |
| | | public ServiceModel add(@RequestBody BadLd9_mon_flag monflag) { |
| | | // BadLd9_mon_flag monflag = getGson().fromJson(json, BadLd9_mon_flag.class); |
| | | ServiceModel model = service.add(monflag); |
| | |
| | | import com.fgkj.services.Ld9.LD9_setparamService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("ld9SetParam") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "ld9SetParam接口") |
| | | public class LD9_setparamController{ |
| | | |
| | | @Resource |
| | |
| | | //根据电池组id和单体编号查询参数 |
| | | //根据设备id和单体编号查询参数 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="电池组id/设备id 和单体编号查询参数") |
| | | public ServiceModel serchByCondition(@RequestBody BattInf binf) { |
| | | // BattInf binf=ActionUtil.getGson().fromJson(json, BattInf.class); |
| | | ServiceModel model=service.serchByCondition(binf); |
| | |
| | | } |
| | | //根据设备id修改参数 |
| | | @PutMapping("byDevId") |
| | | @ApiOperation(notes = "",value="设备id修改参数") |
| | | public ServiceModel update(@RequestBody LD9_setparam ld9) { |
| | | // LD9_setparam ld9=ActionUtil.getGson().fromJson(json, LD9_setparam.class); |
| | | ServiceModel model=service.update(ld9); |
| | |
| | | } |
| | | |
| | | //右键查看参数和弹出框的刷新按钮 |
| | | @GetMapping("byDevId") |
| | | @PostMapping("byDevId") |
| | | @ApiOperation(notes = "",value="右键查看参数和弹出框的刷新按钮") |
| | | public ServiceModel serchbyDev_id(@RequestBody LD9_setparam ld9) { |
| | | // LD9_setparam ld9=ActionUtil.getGson().fromJson(json, LD9_setparam.class); |
| | | ServiceModel model = service.serchbyDev_id(ld9); |
| | |
| | | * @param binf |
| | | * @return |
| | | */ |
| | | @GetMapping("byThirdBatt") |
| | | @PostMapping("byThirdBatt") |
| | | @ApiOperation(notes = "根据数据层代码表明,显示的是前十组数据",value="池组id查询电池组内前五的内阻数据") |
| | | public ServiceModel serchByThirdBatt(@RequestBody BattInf binf){ |
| | | ServiceModel model = service.serchByThirdBatt(binf); |
| | | return model; |
| | |
| | | import com.fgkj.services.Ld9.LD9_stateService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("ld9State") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "ld9State接口") |
| | | public class LD9_stateController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //查询ld9实时数据 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询ld9实时数据") |
| | | public ServiceModel searchAll() { |
| | | ServiceModel model=service.searchAll(); |
| | | return model; |
| | | } |
| | | |
| | | //11.1LD9设备通信状态查询 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备通信状态查询") |
| | | public ServiceModel serchByCondition(@RequestBody LD9_state ld9){ |
| | | // LD9_state ld9= getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, LD9_state.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Ld9.Ld9testdataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("ld9TestData") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "ld9TestData接口") |
| | | public class Ld9testdataController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //历史数据查询 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "Table 'db_ld9_testdata.tb_ld9testdata_0' doesn't exist",value="历史数据查询") |
| | | public ServiceModel serchByCondition(@RequestBody Ld9testdata ld9) { |
| | | // Ld9testdata ld9=ActionUtil.getGson().fromJson(json, Ld9testdata.class); |
| | | ServiceModel model=service.serchByCondition(ld9); |
| | |
| | | } |
| | | //查询某次测试下电池组节数放电情况 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="查询某次测试下电池组节数放电情况") |
| | | public ServiceModel serchByInfo(@RequestBody Ld9testdata ld9) { |
| | | // Ld9testdata ld9=ActionUtil.getGson().fromJson(json, Ld9testdata.class); |
| | | ServiceModel model=service.serchByInfo(ld9); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Ld9.Ld9testdata_infService; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("ld9TestDataInf") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "ld9TestDataInf接口") |
| | | public class Ld9testdata_infController{ |
| | | |
| | | @Resource |
| | | private Ld9testdata_infService service; |
| | | |
| | | //历史数据查询 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="历史数据查询") |
| | | public ServiceModel serchByCondition(@RequestBody Ld9testdata_inf ld9_inf) { |
| | | // Ld9testdata_inf ld9_inf=ActionUtil.getGson().fromJson(json, Ld9testdata_inf.class); |
| | | ServiceModel model=service.serchByCondition(ld9_inf); |
| | | return model; |
| | | } |
| | | //历史数据查询(根据电池组id查询所有的放电单体) |
| | | @GetMapping("byInfo") |
| | | @PostMapping("byInfo") |
| | | @ApiOperation(notes = "",value="历史数据查询(根据电池组id查询所有的放电单体)") |
| | | public ServiceModel serchByInfo(@RequestBody Ld9testdata_inf ld9_inf) { |
| | | // Ld9testdata_inf ld9_inf=ActionUtil.getGson().fromJson(json, Ld9testdata_inf.class); |
| | | ServiceModel model=service.serchByInfo(ld9_inf); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Ld9.Ld9testdatastopService; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("ld9TestDataStop") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "ld9TestDataStop接口") |
| | | public class Ld9testdatastopController{ |
| | | |
| | | @Resource |
| | | private Ld9testdatastopService service; |
| | | |
| | | //历史监测容量的柱状图 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="历史监测容量的柱状图") |
| | | public ServiceModel serchByCondition(@RequestBody Ld9testdatastop ld9){ |
| | | ServiceModel model=service.serchByCondition(ld9); |
| | | return model; |
| | | } |
| | | |
| | | //根据电池组id;单体编号,test_record_count查询测试结束的信息 |
| | | @GetMapping("byInfo") |
| | | @PostMapping("byInfo") |
| | | @ApiOperation(notes = "",value="电池组id;单体编号,test_record_count查询测试结束的信息") |
| | | public ServiceModel serchByInfo(@RequestBody Ld9testdatastop ld9){ |
| | | ServiceModel model=service.serchByInfo(ld9); |
| | | return model; |
| | |
| | | import com.fgkj.services.User_logService; |
| | | import com.fgkj.services.Vip_userService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("login") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "login接口") |
| | | public class LoginController{ |
| | | |
| | | // private User_inf uinf; |
| | |
| | | |
| | | //web版登录 |
| | | @PostMapping("login") |
| | | @ApiOperation(notes = "",value="web版登录") |
| | | public ServiceModel login(@RequestBody User_inf uinf) { |
| | | model=vservice.login(uinf); |
| | | //System.out.println(model); |
| | |
| | | |
| | | //手机端登录action |
| | | @PostMapping("mobileLogin") |
| | | @ApiOperation(notes = "",value="手机端登录action") |
| | | public ServiceModel MobileLogin(@RequestBody User_inf uinf){ |
| | | System.out.println(uinf); |
| | | String usnId64=(String) ActionUtil.EncryptionBase64(uinf.getUpassword()); |
| | |
| | | |
| | | //检查超级管理员是否 |
| | | @GetMapping("checkVip") |
| | | @ApiOperation(notes = "",value="检查超级管理员是否") |
| | | public ServiceModel checkVip(){ |
| | | Map<String, UserClient> map = (Map) ActionUtil.getApplication().getAttribute("vips"); |
| | | model=vservice.checkVip(); |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("check") |
| | | @ApiOperation(notes = "",value="判断是否有另一同一账号登陆的用户") |
| | | public ServiceModel check(){ |
| | | //System.out.println("开始检查"); |
| | | model=service.checkUser(); |
| | |
| | | * @return |
| | | */ |
| | | @PutMapping("/userExit") |
| | | @ApiOperation(notes = "",value="退出登录") |
| | | public ServiceModel exitUser(){ |
| | | //将当前用户从所有的登陆用户中移除 |
| | | Map<String, UserClient> map = (Map) ActionUtil.getApplication().getAttribute("users"); |
| | |
| | | import com.fgkj.dto.User_inf; |
| | | import com.fgkj.services.MapService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | |
| | | @RequestMapping("map") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "map接口") |
| | | public class MapController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | |
| | | //0.7/0.8根据uid查map信息 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="uid查map信息") |
| | | public ServiceModel serchByCondition(){ |
| | | User_inf user=(User_inf)ActionUtil.getSession().getAttribute("user"); |
| | | ServiceModel model=new ServiceModel(); |
| | |
| | | import com.fgkj.util.*; |
| | | import com.google.gson.Gson; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.imageio.ImageIO; |
| | |
| | | |
| | | @RequestMapping("myFile") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "myFile接口") |
| | | public class MyFileController{ |
| | | |
| | | |
| | |
| | | |
| | | //上传文件 |
| | | @PostMapping("/uploadTestFile") |
| | | @ApiOperation(notes = "",value="byInfo") |
| | | public ServiceModel UploadTestFile(@RequestParam File[] file,String[] fileFileName,String battName){ |
| | | HttpServletResponse res = ActionUtil.getResponse(); |
| | | res.setHeader("Access-Control-Allow-Origin", "*"); //允许跨域访问 |
| | |
| | | } |
| | | |
| | | @PostMapping("uploadIphoneFile") |
| | | @ApiOperation(notes = "",value="byInfo") |
| | | public ServiceModel UploadIphoneFile(@RequestParam String filestr,String fname,String battname){ |
| | | HttpServletResponse res = ActionUtil.getResponse(); |
| | | res.setHeader("Access-Control-Allow-Origin", "*"); //允许跨域访问 |
| | |
| | | |
| | | //上传机房视频接口 |
| | | @PostMapping("uploadStationFile") |
| | | @ApiOperation(notes = "",value="上传机房视频接口") |
| | | public ServiceModel uploadStationFile(@RequestBody BattInf binf,@RequestParam File[] file,String[] fileFileName){ |
| | | // BattInf binf = getGson().fromJson(json, BattInf.class); |
| | | String fileRoot = "stationsrc"; |
| | |
| | | * |
| | | * 获取指定机房得资源 |
| | | */ |
| | | @GetMapping("stationSource") |
| | | @PostMapping("stationSource") |
| | | @ApiOperation(notes = "",value="获取指定机房得资源") |
| | | public ServiceModel searchStationSource(@RequestBody BattInf binf){ |
| | | String fileRoot = "stationsrc"; //存放机房资源文件的文件夹 |
| | | // BattInf binf = getGson().fromJson(json, BattInf.class); |
| | |
| | | |
| | | //上传机房视频接口(手机端) |
| | | @PostMapping("uploadStationFile4Mobile") |
| | | @ApiOperation(notes = "",value="上传机房视频接口(手机端)") |
| | | public ServiceModel uploadStationFile_mobile(@RequestBody BattInf binf,@RequestParam File[] file,String[] fileFileName){ |
| | | // BattInf binf = getGson().fromJson(json, BattInf.class); |
| | | String fileRoot = "stationsrc"; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("readAllStation") |
| | | @ApiOperation(notes = "",value="读取所有上传过图片和视频的机房id文件夹") |
| | | public ServiceModel ReadAllStation() { |
| | | String fileRoot = "stationsrc"; |
| | | ServiceModel model = new ServiceModel(); |
| | |
| | | * @return |
| | | */ |
| | | @DeleteMapping("file") |
| | | @ApiOperation(notes = "",value="删除指定的资源文件") |
| | | public ServiceModel deleteFile(@RequestBody MyFile myFile) { |
| | | ServiceModel model = new ServiceModel(); |
| | | // MyFile myfile = getGson().fromJson(json, MyFile.class); |
| | |
| | | |
| | | return model; |
| | | } |
| | | |
| | | /* |
| | | public static void main(String[] args) { |
| | | /*String filePath = "D:/test/a/a.txt"; |
| | | *//*String filePath = "D:/test/a/a.txt"; |
| | | //ActionUtil.createFileRootIFNotExist(filePath); |
| | | |
| | | File file = new File(filePath); |
| | | System.out.println(ActionUtil.tojson(file));*/ |
| | | System.out.println(ActionUtil.tojson(file));*//* |
| | | //GraphicsFile("我是鲁星伟","D:\\1.jpg","D:\\2.jpg",0,new Color(255,0,0),"JPG"); |
| | | BattMap_information binfmation=new BattMap_information(); |
| | | binfmation.setStationId("42000001"); |
| | |
| | | String filePath = "D:\\2.jpg"; |
| | | //String filename="2.jpg"; |
| | | GraphicsFile(binfmation,file,filePath); |
| | | } |
| | | }*/ |
| | | } |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.PageParamService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("pageParam") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "pageParam接口") |
| | | public class PageParamController{ |
| | | |
| | | @Resource |
| | | private PageParamService service; |
| | | |
| | | @GetMapping("byCategoryId") |
| | | @PostMapping("byCategoryId") |
| | | @ApiOperation(notes = "",value="byCategoryId") |
| | | public ServiceModel findByCategoryId(@RequestParam int categoryId){ |
| | | //前端传参: json字符串 json={categoryId:1} |
| | | ServiceModel model = service.findByCategoryId(categoryId); |
| | |
| | | |
| | | //编辑单个参数 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="编辑单个参数") |
| | | public ServiceModel update(@RequestBody PageParam param){ |
| | | ServiceModel model = service.update(param.getId(),param.getStatus()); |
| | | |
| | |
| | | import com.fgkj.services.Positiomap_usrService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("positionMapUsr") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "positionMapUsr接口") |
| | | public class PositionMapUsrController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //使用replace into实现添加数据 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="使用replace into实现添加数据") |
| | | public ServiceModel add(@RequestBody Positiomap_usr pusr) { |
| | | // Positiomap_usr pusr=ActionUtil.getGson().fromJson(json, Positiomap_usr.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | |
| | | //根据用户查询地图对应的中心坐标 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="用户查询地图对应的中心坐标") |
| | | public ServiceModel serchByCondition(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serchByCondition(uinf); |
| | |
| | | import com.fgkj.services.Process_surveyService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("processSurvey") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "processSurvey接口") |
| | | public class Process_surveyController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //查询所有进程的运行情况 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有进程的运行情况") |
| | | public ServiceModel searchAll() { |
| | | ServiceModel model=service.searchAll(); |
| | | return model; |
| | | } |
| | | //界面修改进程名字和超时时间 |
| | | @PutMapping("all") |
| | | @ApiOperation(notes = "",value="界面修改进程名字和超时时间") |
| | | public ServiceModel updateAll(@RequestBody Process_survey process) { |
| | | // Process_survey process = getGson().fromJson(json, Process_survey.class); |
| | | ServiceModel model = service.updateAll(process); |
| | |
| | | } |
| | | //界面修改进程同服务对应的标识位 |
| | | @PutMapping("flag") |
| | | @ApiOperation(notes = "",value="界面修改进程同服务对应的标识位") |
| | | public ServiceModel updateFlag(@RequestBody Process_survey process) { |
| | | // Process_survey process = getGson().fromJson(json, Process_survey.class); |
| | | ServiceModel model = service.updateFlag(process); |
| | |
| | | } |
| | | //验证重启密码 |
| | | @PutMapping("judgeRestart") |
| | | @ApiOperation(notes = "",value="验证重启密码") |
| | | public ServiceModel judgeRestart(@RequestParam String json){ |
| | | ServiceModel model = service.judgeRestart(json); |
| | | |
| | |
| | | import com.fgkj.util.*; |
| | | import com.google.gson.Gson; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("resDataUpload") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "resDataUpload接口") |
| | | public class ResDataUploadController{ |
| | | |
| | | /*private String tableRowData; |
| | |
| | | private ResDataUploadService service; |
| | | |
| | | @PostMapping("uploadResFile") |
| | | @ApiOperation(notes = "",value="上传文件") |
| | | public boolean uploadResfile(@RequestParam String tableRowData,int battgroupid,File[] file,String[] fileFileName){ |
| | | boolean res=false; |
| | | |
| | |
| | | |
| | | // 停止上传 |
| | | @PutMapping("stopResUpload") |
| | | @ApiOperation(notes = "",value="停止上传") |
| | | public DLG_Progress stopResUpload() { |
| | | HttpSession session = ActionUtil.getSession(); |
| | | DLG_Progress progress = (DLG_Progress) session.getAttribute("Resprogress"); |
| | |
| | | |
| | | // 查询进度 |
| | | @GetMapping("resProgress") |
| | | @ApiOperation(notes = "",value="查询进度") |
| | | public ServiceModel selectResprogress() { |
| | | ServiceModel model = new ServiceModel(); |
| | | |
| | |
| | | import com.fgkj.dto.User; |
| | | import com.fgkj.services.UserService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("user") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "user接口") |
| | | public class UserController { |
| | | |
| | | @Resource |
| | | UserService service; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody User user) { |
| | | ServiceModel model= new ServiceModel(); |
| | | model=service.addUser(user); |
| | |
| | | return model; |
| | | } |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody User user) { |
| | | ServiceModel model= new ServiceModel(); |
| | | model=service.updateUser(user); |
| | |
| | | return model; |
| | | } |
| | | @PutMapping("pass") |
| | | @ApiOperation(notes = "",value="修改pass") |
| | | public ServiceModel updatePass(@RequestBody User user){ |
| | | ServiceModel model= new ServiceModel(); |
| | | //user.setUpass(ActionUtil.Encryption(user.getUpass()).toString()); |
| | |
| | | return model; |
| | | } |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel del(@RequestBody User user) { |
| | | ServiceModel model= new ServiceModel(); |
| | | model=service.delUser(user); |
| | |
| | | } |
| | | |
| | | @GetMapping("/") |
| | | @ApiOperation(notes = "",value="查找") |
| | | public ServiceModel find(@RequestBody User user) { |
| | | ServiceModel model= new ServiceModel(); |
| | | model=service.findUser(user); |
| | |
| | | return model; |
| | | } |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel findAll() { |
| | | ServiceModel model= new ServiceModel(); |
| | | model=service.findUserAll(); |
| | |
| | | return model; |
| | | } |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="byInfo") |
| | | public ServiceModel findByInfo(@RequestBody User user){ |
| | | ServiceModel model= new ServiceModel(); |
| | | model=service.findByInfo(user); |
| | |
| | | return model; |
| | | } |
| | | @GetMapping("byPage") |
| | | @ApiOperation(notes = "",value="byPage") |
| | | public ServiceModel findByPage(@RequestParam int currentPage,@RequestParam int pageSize){ |
| | | ServiceModel model= new ServiceModel(); |
| | | model=service.findByAge(currentPage, pageSize); |
| | |
| | | import com.fgkj.dto.User_sms; |
| | | import com.fgkj.services.User_smsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @RequestMapping("userSms") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "userSms接口") |
| | | public class UserSmsController{ |
| | | @Resource |
| | | private User_smsService service; |
| | | |
| | | //4.9短信息查询 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="短信息查询") |
| | | public ServiceModel serchByCondition(@RequestBody User_sms us){ |
| | | ServiceModel model=service.serchByCondition(us); |
| | | return model; |
| | |
| | | import com.fgkj.services.User_ChartService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("userChart") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "userChart接口") |
| | | public class User_ChartController{ |
| | | @Resource |
| | | private User_ChartService service; |
| | |
| | | |
| | | //添加图标 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加图标") |
| | | public ServiceModel add(@RequestBody User_Chart uchart,@RequestBody List<File> file,List<String> filetype){ |
| | | suitFiles(file,filetype,uchart); |
| | | ServiceModel model =service.add(uchart); |
| | |
| | | |
| | | //修改图标信息 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改图标信息") |
| | | public ServiceModel update(@RequestBody User_Chart uchart,@RequestBody List<File>file,@RequestBody List<String>filetype){ |
| | | suitFiles(file,filetype,uchart); //设置对象的属性值 |
| | | ServiceModel model =service.update(uchart); |
| | |
| | | } |
| | | //删除图标 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除图标") |
| | | public ServiceModel del(@RequestBody User_Chart uchart){ |
| | | ServiceModel model =service.del(uchart); |
| | | { |
| | |
| | | |
| | | //查询所有图标 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有图标") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model =service.searchAll(); |
| | | |
| | |
| | | |
| | | //根据用户id查图表 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="用户id查图表") |
| | | public ServiceModel serchByCondition(@RequestBody User_inf uinf){ |
| | | ServiceModel model =service.serchByCondition(uinf); |
| | | |
| | |
| | | |
| | | //根据chartfile和列名查具体的图片 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="chartfile和列名查具体的图片") |
| | | public void serchByInfo(@RequestBody User_Chart uc){ |
| | | //System.out.println(json); |
| | | InputStream is = null; |
| | |
| | | import com.fgkj.services.User_battgroup_baojigroupService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("baojiGroup") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "baojiGroup接口") |
| | | public class User_battgroup_baojigroupController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | // 5.3删除包机组 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除包机组") |
| | | public ServiceModel delete(@RequestBody User_battgroup_baojigroup us) { |
| | | ServiceModel model=service.delete(us); |
| | | // { |
| | |
| | | } |
| | | |
| | | //5.3根据包机组id查对应的机房和电池组 |
| | | @GetMapping("byInfo") |
| | | @PostMapping("byInfo") |
| | | @ApiOperation(notes = "",value="包机组id查对应的机房和电池组") |
| | | public ServiceModel serchByInfo(@RequestBody User_battgroup_baojigroup us){ |
| | | ServiceModel model=service.serchByInfo(us); |
| | | |
| | |
| | | } |
| | | |
| | | //5.3根据包机组id查包机组对应的用户 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="包机组id查包机组对应的用户") |
| | | public ServiceModel serchByCondition(@RequestBody User_battgroup_baojigroup us){ |
| | | ServiceModel model=service.serchByCondition(us); |
| | | |
| | |
| | | |
| | | //5.3查所有包机组 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查所有包机组") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | |
| | | // 5.3添加新包机组 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加新包机组") |
| | | public ServiceModel add(@RequestBody User_battgroup_baojigroup us) { |
| | | ServiceModel model=service.add(us); |
| | | { |
| | |
| | | |
| | | // 5.3修改包机组名 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改包机组名") |
| | | public ServiceModel update(@RequestBody User_battgroup_baojigroup us) { |
| | | ServiceModel model=service.update(us); |
| | | { |
| | |
| | | import com.fgkj.dto.User_inf; |
| | | import com.fgkj.services.User_battgroup_baojigroup_battgroupService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("baojiGroupBattGroup") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "baojiGroupBattGroup接口") |
| | | public class User_battgroup_baojigroup_battgroupController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //根据用户UId查询对应的机房以及电池组 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="用户UId查询对应的机房以及电池组") |
| | | public ServiceModel serchByCondition(@RequestBody User_inf userInf) { |
| | | // userInf.setuId(1003); |
| | | // User_inf user_inf = new User_inf(); |
| | |
| | | }*/ |
| | | //5.3删除选取的电池组(根据baoji_group_id,battgroupid,stationid) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除选取的电池组(根据baoji_group_id,battgroupid,stationid)") |
| | | public ServiceModel delete(@RequestBody List<User_battgroup_baojigroup_battgroup> list) { |
| | | ServiceModel model=service.delPro(list); |
| | | |
| | |
| | | } |
| | | //5.3包机组重做(穿梭框)删除 |
| | | @DeleteMapping("proCs") |
| | | @ApiOperation(notes = "",value="包机组重做(穿梭框)删除") |
| | | public ServiceModel delPro_CS(@RequestBody List<User_battgroup_baojigroup_battgroup> list) { |
| | | ServiceModel model=service.delPro_CS(list); |
| | | |
| | |
| | | } |
| | | //5.3添加选取电池组或者机房或者维护区(点击应用) |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加选取电池组或者机房或者维护区(点击应用)") |
| | | public ServiceModel add(@RequestBody List<User_battgroup_baojigroup_battgroup> list){ |
| | | ServiceModel model=service.add(list); |
| | | |
| | |
| | | } |
| | | //包机组重做(穿梭框)查询所有的用户 |
| | | @PostMapping("proCs") |
| | | @ApiOperation(notes = "",value="包机组重做(穿梭框)查询所有的用户") |
| | | public ServiceModel addPro_CS(@RequestBody List<User_battgroup_baojigroup_battgroup> list){ |
| | | ServiceModel model=service.addPro_CS(list); |
| | | return model; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("myBatts") |
| | | @ApiOperation(notes = "",value="查询当前用户所属包机组中的所有的电池组") |
| | | public ServiceModel searchMyBatts(){ |
| | | User_inf u = (User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serchByCondition(u); |
| | |
| | | |
| | | //放电测试(查询用户管理的维护区) |
| | | @GetMapping("stationName1InGroup") |
| | | @ApiOperation(notes = "",value="放电测试(查询用户管理的维护区)") |
| | | public ServiceModel serchStationName1InGroup(){ |
| | | User_inf u = (User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serchStationName1InGroup(u); |
| | |
| | | return model; |
| | | } |
| | | //放电测试(查询用户管理的维护区对应的机房) |
| | | @GetMapping("stationNameInGroup") |
| | | @PostMapping("stationNameInGroup") |
| | | @ApiOperation(notes = "",value="放电测试(查询用户管理的维护区对应的机房)") |
| | | public ServiceModel serchStationNameInGroup(@RequestBody User_inf user){ |
| | | //System.out.println(json+"***********"); |
| | | User_inf u = (User_inf) ActionUtil.getUser(); |
| | |
| | | return model; |
| | | } |
| | | //放电测试(查询用户管理的维护区对应的机房对应的battgroupid) |
| | | @GetMapping("battGroupIdInGroup") |
| | | @PostMapping("battGroupIdInGroup") |
| | | @ApiOperation(notes = "",value="放电测试(查询用户管理的维护区对应的机房对应的battgroupid)") |
| | | public ServiceModel serchBattgroupidInGroup(@RequestBody User_inf user){ |
| | | User_inf u = (User_inf) ActionUtil.getUser(); |
| | | user.setuId(u.getuId()); |
| | |
| | | } |
| | | //6185下拉(查询用户管理的维护区对应的机房对应的battgroupid) |
| | | @GetMapping("61850DevidInGroup") |
| | | @ApiOperation(notes = "",value="6185下拉(查询用户管理的维护区对应的机房对应的battgroupid)") |
| | | public ServiceModel serch61850DevidInGroup(){ |
| | | User_inf u = (User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serch61850DevidInGroup(u); |
| | |
| | | } |
| | | |
| | | //首页(查询用户管理的维护区对应的机房和机房ID以及设备id) |
| | | @GetMapping("stationByStationName1") |
| | | @PostMapping("stationByStationName1") |
| | | @ApiOperation(notes = "",value="首页(查询用户管理的维护区对应的机房和机房ID以及设备id)") |
| | | public ServiceModel serchStationByStationName1(@RequestBody User_inf user){ |
| | | User_inf u = (User_inf) ActionUtil.getUser(); |
| | | user.setuId(u.getuId()); |
| | |
| | | } |
| | | |
| | | //首页(查询用户管理的维护区对应的机房信息) ->首页左侧的导航显示 |
| | | @GetMapping("stationInfoByStationName1") |
| | | @PostMapping("stationInfoByStationName1") |
| | | @ApiOperation(notes = "首页左侧的导航显示",value="首页(查询用户管理的维护区对应的机房信息)") |
| | | public ServiceModel serchStationInfoByStationName1(@RequestBody User_inf user){ |
| | | User_inf u = (User_inf) ActionUtil.getUser(); |
| | | user.setuId(u.getuId()); |
| | |
| | | return model; |
| | | } |
| | | //首页左侧的导航实时刷新 |
| | | @GetMapping("stationInfoNow") |
| | | @PostMapping("stationInfoNow") |
| | | @ApiOperation(notes = "",value="首页左侧的导航实时刷新") |
| | | public ServiceModel serchStationInfoNow(@RequestBody List<BattInf> list){ |
| | | ServiceModel model = service.serchStationInfoNow(list); |
| | | |
| | |
| | | import com.fgkj.services.User_battgroup_baojigroup_usrService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("baojiGroupUser") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "baojiGroupUser接口") |
| | | public class User_battgroup_baojigroup_usrController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | // 5.3添加(包机组中添加用户) |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加(包机组中添加用户)") |
| | | public ServiceModel add(@RequestBody List<User_battgroup_baojigroup_usr> addList) { |
| | | ServiceModel model=new ServiceModel(); |
| | | model=service.add(addList); |
| | |
| | | } |
| | | |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody User_battgroup_baojigroup_usr ubbu) { |
| | | ServiceModel model=service.update(ubbu); |
| | | |
| | |
| | | |
| | | // 5.3删除(删除包机组中的用户) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除(删除包机组中的用户)") |
| | | public ServiceModel delete(@RequestBody User_battgroup_baojigroup_usr ubbu) { |
| | | ServiceModel model=service.delete(ubbu); |
| | | { |
| | |
| | | |
| | | //穿梭框包机组删除多个用户 |
| | | @DeleteMapping("pro") |
| | | @ApiOperation(notes = "",value="穿梭框包机组删除多个用户") |
| | | public ServiceModel delPro(@RequestBody List<User_battgroup_baojigroup_usr> delList) { |
| | | ServiceModel model = service.delPro(delList); |
| | | |
| | | return model; |
| | | } |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="byCondition") |
| | | public ServiceModel serchByCondition(@RequestBody User_battgroup_baojigroup_usr ubbu) { |
| | | ServiceModel model=service.serchByCondition(ubbu); |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll() { |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | } |
| | | |
| | | //5.3查询不在某包机组下的用户 |
| | | @GetMapping("byInfo") |
| | | @PostMapping("byInfo") |
| | | @ApiOperation(notes = "",value="查询不在某包机组下的用户") |
| | | public ServiceModel serchByInfo(@RequestBody User_battgroup_baojigroup_usr ubbu){ |
| | | ServiceModel model=service.serchByInfo(ubbu); |
| | | |
| | |
| | | import com.fgkj.services.User_battmaint_checkService; |
| | | import com.google.gson.Gson; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("maintCheck") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "maintCheck接口") |
| | | public class User_battmaint_checkController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //作业抽查(新建抽查作业) |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="作业抽查(新建抽查作业)") |
| | | public ServiceModel add(@RequestBody User_battmaint_check ubc){ |
| | | ServiceModel model=service.add(ubc); |
| | | |
| | |
| | | |
| | | //作业抽查管理(编辑抽查作业) |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="作业抽查管理(编辑抽查作业)") |
| | | public ServiceModel update(@RequestBody User_battmaint_check ubc){ |
| | | System.out.println(ubc); |
| | | ServiceModel model=service.update(ubc); |
| | |
| | | } |
| | | //4.10作业抽查管理(编辑记录)(user_battmaint_check表修改时User_battmaint_check_process表就新增一条记录) |
| | | @PutMapping("pro") |
| | | @ApiOperation(notes = "user_battmaint_check表修改时User_battmaint_check_process表就新增一条记录",value="作业抽查管理(编辑记录)") |
| | | public ServiceModel updatePro(@RequestBody User_battmaint_check ubc) { |
| | | ServiceModel model=new ServiceModel(); |
| | | User_inf user=(User_inf)ActionUtil.getUser(); |
| | |
| | | |
| | | //TODO 数据不足待测试 |
| | | //4.10作业抽查管理 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "数据不足待测试",value="作业抽查管理") |
| | | public ServiceModel serchByCondition(@RequestBody Task_Batt_Test tbt){ |
| | | ServiceModel model=service.serchByCondition(tbt); |
| | | |
| | |
| | | |
| | | //作业抽查(删除记录) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="作业抽查(删除记录)") |
| | | public ServiceModel delete(@RequestBody User_battmaint_check ubc){ |
| | | ServiceModel model=service.delete(ubc); |
| | | |
| | |
| | | |
| | | //4.10作业抽查管理(删除记录(并且删除操作记录)) |
| | | @DeleteMapping("pro") |
| | | @ApiOperation(notes = "",value="作业抽查管理(删除记录(并且删除操作记录))") |
| | | public ServiceModel deletePro(@RequestBody User_battmaint_check ubc) { |
| | | ServiceModel model=service.deletePro(ubc); |
| | | |
| | |
| | | import com.fgkj.dto.User_battmaint_check; |
| | | import com.fgkj.services.User_battmaint_check_processService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("mainCheckProcess") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "mainCheckProcess接口") |
| | | public class User_battmaint_check_processController{ |
| | | @Resource |
| | | private User_battmaint_check_processService service; |
| | | |
| | | //4.10根据User_battmaint_check的num查询User_battmaint_check_process对应的数据 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="根据User_battmaint_check的num查询User_battmaint_check_process对应的数据") |
| | | public ServiceModel serchByCondition(@RequestBody User_battmaint_check ubc){ |
| | | ServiceModel model=service.serchByCondition(ubc); |
| | | return model; |
| | |
| | | import com.fgkj.services.User_logService; |
| | | import com.google.gson.Gson; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("userInf") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "userInf接口") |
| | | public class User_infController{ |
| | | @Resource |
| | | private User_infService service; |
| | |
| | | |
| | | //添加用户 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加用户") |
| | | public ServiceModel add(@RequestBody User_inf uif) { |
| | | System.out.println("uif = " + uif); |
| | | uif.setUpassword(ActionUtil.EncryptionMD5(uif.getUpassword()).toString()); |
| | |
| | | } |
| | | //修改用户信息 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改用户信息") |
| | | public ServiceModel update(@RequestBody User_inf uif) { |
| | | ServiceModel model = new ServiceModel(); |
| | | model = service.update(uif); |
| | |
| | | } |
| | | //删除用户信息 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除用户信息") |
| | | public ServiceModel delete(@RequestBody User_inf uif) { |
| | | ServiceModel model = new ServiceModel(); |
| | | if(uif!=null){ |
| | |
| | | |
| | | return model; |
| | | } |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="byCondition") |
| | | public ServiceModel serchByCondition(@RequestBody User_inf uif) { |
| | | return service.serchByCondition(uif); |
| | | } |
| | | |
| | | @GetMapping("all") |
| | | @PostMapping("all") |
| | | @ApiOperation(notes = "TODO 待测",value="all") |
| | | public ServiceModel searchAll(@RequestBody Batt_User_Permit bup) { |
| | | ServiceModel model = new ServiceModel(); |
| | | System.out.println("bup = " + bup); |
| | |
| | | return model; |
| | | } |
| | | //根据员工信息和员工编号去匹配合适的员工 |
| | | @GetMapping("byNameOrId") |
| | | @PostMapping("byNameOrId") |
| | | @ApiOperation(notes = "",value="员工信息和员工编号去匹配合适的员工") |
| | | public ServiceModel searchByNameOrId(@RequestBody Batt_User_Permit bup) { |
| | | ServiceModel model = service.searchByNameOrId(bup); |
| | | |
| | |
| | | } |
| | | //重置用户密码 |
| | | @PutMapping("resetPassword") |
| | | @ApiOperation(notes = "",value="重置用户密码") |
| | | public ServiceModel resetPassword(@RequestBody User_inf uif){ |
| | | ServiceModel model = new ServiceModel(); |
| | | model=service.resetPassword(uif); |
| | |
| | | } |
| | | |
| | | //根据用户的id查询用户所在的包机组 |
| | | @GetMapping("byInfo") |
| | | @PostMapping("byInfo") |
| | | @ApiOperation(notes = "",value="用户的id查询用户所在的包机组") |
| | | public ServiceModel serchByInfo(@RequestBody User_inf uif){ |
| | | ServiceModel model=service.serchByInfo(uif); |
| | | |
| | |
| | | |
| | | //添加新的用户模板 |
| | | @PostMapping("newUser") |
| | | @ApiOperation(notes = "",value="添加新的用户模板") |
| | | public ServiceModel createNewUser(){ |
| | | User_inf uinf=utilityFactoryService.CreateUinf(); |
| | | System.out.println("uinf = " + uinf); |
| | |
| | | |
| | | //更新多个用户 |
| | | @PutMapping("user") |
| | | @ApiOperation(notes = "",value="更新多个用户") |
| | | public ServiceModel updateUser(@RequestBody List<User_inf> addlist){ |
| | | Gson gson=ActionUtil.getGson("yyyy-MM-dd"); |
| | | String msg=""; |
| | |
| | | |
| | | //修改多个用户 |
| | | @PostMapping("user") |
| | | @ApiOperation(notes = "",value="修改多个用户") |
| | | public ServiceModel addUser(@RequestBody List<Battalarm_data> list){ |
| | | ServiceModel model = new ServiceModel(); |
| | | /*if(addjson!=null && addjson.length()>0){ |
| | |
| | | |
| | | //修改密码 |
| | | @PutMapping("password") |
| | | @ApiOperation(notes = "",value="修改密码") |
| | | public ServiceModel updatePassword(@RequestBody User_inf uif){ |
| | | ServiceModel model = new ServiceModel(); |
| | | User_inf uinf=(User_inf)ActionUtil.getUser(); |
| | |
| | | |
| | | //查询当前用户的信息 |
| | | @GetMapping("userFromSession") |
| | | @ApiOperation(notes = "",value="查询当前用户的信息") |
| | | public ServiceModel serchUserfromSession(){ |
| | | ServiceModel model = new ServiceModel(); |
| | | User_inf uif= (User_inf) ActionUtil.getUser(); |
| | |
| | | |
| | | //检查用户的密码 |
| | | @GetMapping("checkUserPass") |
| | | @ApiOperation(notes = "",value="检查用户的密码") |
| | | public ServiceModel checkUserPass(@RequestParam String addjson){ |
| | | User_inf user = (User_inf)ActionUtil.getUser(); |
| | | ServiceModel model = new ServiceModel(); |
| | |
| | | |
| | | //查询当前用户的用户名 |
| | | @GetMapping("uName") |
| | | @ApiOperation(notes = "",value="查询当前用户的用户名") |
| | | public ServiceModelImpl searchUname(){ |
| | | User_inf user = (User_inf)ActionUtil.getUser(); |
| | | ServiceModelImpl model = new ServiceModelImpl(); |
| | |
| | | } |
| | | |
| | | //界面请求监测服务是否断开 |
| | | @GetMapping("checkService") |
| | | @PostMapping("checkService") |
| | | @ApiOperation(notes = "",value="界面请求监测服务是否断开") |
| | | public ServiceModel checkService(@RequestBody ServiceModel model){ |
| | | return model; |
| | | } |
| | | |
| | | //包机组重做(穿梭框)查询所有的用户 |
| | | @GetMapping("csAll") |
| | | @ApiOperation(notes = "",value="包机组重做(穿梭框)查询所有的用户") |
| | | public ServiceModel searchCS_All() { |
| | | ServiceModel model=service.searchCS_All(); |
| | | |
| | |
| | | import com.fgkj.dto.User_jiejiari; |
| | | import com.fgkj.services.User_jiejiariService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("holiday") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "holiday接口") |
| | | public class User_jiejiariController{ |
| | | @Resource |
| | | private User_jiejiariService service; |
| | | |
| | | //4.3节假日管理(增加) |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="节假日管理(增加)") |
| | | public ServiceModel add(@RequestBody User_jiejiari ujjr) { |
| | | ServiceModel model=service.add(ujjr); |
| | | |
| | |
| | | } |
| | | //4.3节假日管理(修改) |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="节假日管理(修改)") |
| | | public ServiceModel update(@RequestBody User_jiejiari ujjr) { |
| | | ServiceModel model=service.update(ujjr); |
| | | |
| | |
| | | |
| | | //4.3节假日管理(删除) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="节假日管理(删除)") |
| | | public ServiceModel delete(@RequestBody User_jiejiari ujjr) { |
| | | ServiceModel model=service.delete(ujjr); |
| | | |
| | |
| | | |
| | | //查询所有节假日 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有节假日") |
| | | public ServiceModel serchAll(){ |
| | | ServiceModel model=service.serchAll(); |
| | | |
| | |
| | | } |
| | | |
| | | //根据公历和农历以及全部查询节假日 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="公历和农历以及全部查询节假日") |
| | | public ServiceModel serchByCondition(@RequestBody User_jiejiari ujjr){ |
| | | ServiceModel model=service.serchByCondition(ujjr); |
| | | |
| | |
| | | import com.fgkj.services.User_logService; |
| | | import com.fgkj.services.User_permitgroupService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("userPermitGroup") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "userPermitGroup接口") |
| | | public class User_permitgroupController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | |
| | | //5.1根据uid查对应的所有权限组 |
| | | @GetMapping("permitNameByUid") |
| | | @PostMapping("permitNameByUid") |
| | | @ApiOperation(notes = "",value="uid查对应的所有权限组") |
| | | public ServiceModel serchPermitName(@RequestBody User_inf uinf){ |
| | | ServiceModel model=service.serchPermitName(uinf); |
| | | |
| | |
| | | |
| | | //5.2查所有的权限组 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查所有的权限组") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | } |
| | | |
| | | //5.2根据权限id查用户 |
| | | @GetMapping("UserByPermitId") |
| | | @PostMapping("UserByPermitId") |
| | | @ApiOperation(notes = "",value="权限id查用户") |
| | | public ServiceModel serchByPermit(@RequestBody User_permitgroup up){ |
| | | ServiceModel model=service.serchByPermit(up); |
| | | |
| | |
| | | } |
| | | |
| | | //5.2根据权限组id查对应的所有权限 |
| | | @GetMapping("byPermitGroupId") |
| | | @PostMapping("byPermitGroupId") |
| | | @ApiOperation(notes = "",value="权限组id查对应的所有权限") |
| | | public ServiceModel serchByInfo(@RequestBody User_permitgroup up){ |
| | | ServiceModel model=service.serchByInfo(up); |
| | | |
| | |
| | | |
| | | //5.2删除指定id的权限组 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除指定id的权限组") |
| | | public ServiceModel delete(@RequestBody User_permitgroup up){ |
| | | ServiceModel model=service.delete(up); |
| | | { |
| | |
| | | |
| | | //5.2添加权限组 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加权限组") |
| | | public ServiceModel add(@RequestBody User_permitgroup up){ |
| | | ServiceModel model=service.add(up); |
| | | |
| | |
| | | |
| | | //更新权限组 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="更新权限组") |
| | | public ServiceModel update(@RequestBody User_permitgroup up){ |
| | | ServiceModel model=service.update(up); |
| | | |
| | |
| | | |
| | | //5.2重命名(修改权限名) |
| | | @PutMapping("name") |
| | | @ApiOperation(notes = "",value="重命名(修改权限名)") |
| | | public ServiceModel updateName(@RequestBody User_permitgroup up){ |
| | | ServiceModel model=service.updateName(up); |
| | | { |
| | |
| | | |
| | | //更新并且添加权限 |
| | | @PutMapping("permit") |
| | | @ApiOperation(notes = "",value="更新并且添加权限") |
| | | public ServiceModel updatePermit(){ |
| | | String msg=""; |
| | | ServiceModel model=new ServiceModel(); |
| | |
| | | } |
| | | |
| | | //5.2查询所有的权限 |
| | | @GetMapping("role") |
| | | @PostMapping("role") |
| | | @ApiOperation(notes = "",value="查询所有的权限") |
| | | public ServiceModel serchRole(){ |
| | | ServiceModel model=service.serchRole(); |
| | | |
| | |
| | | import com.fgkj.services.User_logService; |
| | | import com.fgkj.services.User_permitgroup_dataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("userPermitGroupData") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "userPermitGroupData接口") |
| | | public class User_permitgroup_dataController{ |
| | | @Resource |
| | | private User_permitgroup_dataService service; |
| | |
| | | |
| | | //5.2添加(给权限组添加用户) |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加(给权限组添加用户)") |
| | | public ServiceModel add(@RequestBody List<User_permitgroup_data> list){ |
| | | ServiceModel model=service.addPro(list); |
| | | |
| | |
| | | } |
| | | |
| | | //5.2查询不存在权限组中的用户 |
| | | @GetMapping("byInfo") |
| | | @PostMapping("byInfo") |
| | | @ApiOperation(notes = "",value="查询不存在权限组中的用户") |
| | | public ServiceModel serchByInfo(@RequestBody User_permitgroup_data upd) { |
| | | ServiceModel model=service.serchByInfo(upd); |
| | | |
| | |
| | | |
| | | //5.2删除(给权限组删除用户) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除(给权限组删除用户)") |
| | | public ServiceModel delete(@RequestBody User_permitgroup_data upd) { |
| | | ServiceModel model=service.delete(upd); |
| | | //System.out.println(upd); |
| | |
| | | import com.fgkj.services.User_taskService; |
| | | import com.google.gson.reflect.TypeToken; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("userTask") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "userTask接口") |
| | | public class User_taskController{ |
| | | @Resource |
| | | private User_taskService service; |
| | | |
| | | //添加作业 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加作业") |
| | | public ServiceModel add(@RequestBody User_task_param utparam,@RequestBody List<BattInf> addlist, |
| | | @RequestBody User_inf uinf) throws ParseException{ |
| | | ServiceModel model=new ServiceModel(); |
| | |
| | | |
| | | //4.1作业管理(修改作业名称,作业使能,作业开始时间,作业提醒次数,作业提醒时间,作业主管提醒使能,确认作业,完成作业,完成作业确认) |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "修改作业名称,作业使能,作业开始时间,作业提醒次数,作业提醒时间,作业主管提醒使能,确认作业,完成作业,完成作业确认",value="作业管理") |
| | | public ServiceModel update(@RequestBody User_task utask) { |
| | | ServiceModel model=service.update(utask); |
| | | |
| | |
| | | |
| | | //4.1删除指定的作业 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除指定的作业") |
| | | public ServiceModel delete(@RequestBody User_task utask){ |
| | | ServiceModel model=service.delete(utask); |
| | | |
| | |
| | | } |
| | | |
| | | //4.1作业管理查询user_task所有信息 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="作业管理查询user_task所有信息") |
| | | public ServiceModel serchByCondition(@RequestBody Task_Batt_Test tbt){ |
| | | ServiceModel model=service.serchByCondition(tbt); |
| | | |
| | |
| | | |
| | | //4.1根据task_id查询user_task_test/user_task_check |
| | | @GetMapping("byInfo") |
| | | public ServiceModel serchByInfo(@RequestBody User_task utask){ |
| | | @ApiOperation(notes = "",value="task_id查询user_task_test/user_task_check") |
| | | public ServiceModel serchByInfo(Integer task_id){ |
| | | User_task utask= new User_task(); |
| | | utask.setTask_id(task_id); |
| | | ServiceModel model=service.serchByInfo(utask); |
| | | |
| | | return model; |
| | | } |
| | | |
| | | //4.1查询符合条件的电池组信息 |
| | | @GetMapping("battGroup") |
| | | @PostMapping("battGroup") |
| | | @ApiOperation(notes = "",value="查询符合条件的电池组信息") |
| | | public ServiceModel serchBattgroup(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | ServiceModel model = new ServiceModel(); |
| | | |
| | |
| | | } |
| | | |
| | | //0.1查询指定用户的作业信息 |
| | | @GetMapping("byUid") |
| | | @PostMapping("byUid") |
| | | @ApiOperation(notes = "",value="查询指定用户的作业信息") |
| | | public ServiceModelOnce serchByUid(@RequestBody Task_Batt_Test tbt){ |
| | | User_inf user=(User_inf)ActionUtil.getUser(); |
| | | // User_inf user= new User_inf(); |
| | |
| | | } |
| | | |
| | | //0.1作业管理查询user_task所有信息 |
| | | @GetMapping("byTask") |
| | | @PostMapping("byTask") |
| | | @ApiOperation(notes = "",value="作业管理查询user_task所有信息") |
| | | public ServiceModel serchByTask(@RequestBody Task_Batt_Test tbt){ |
| | | ServiceModel model=service.serchByTask(tbt); |
| | | |
| | | return model; |
| | | } |
| | | //4.1根据维护区查询所有的电池组和对应的包机人(模板创建)和维护人员信息以及各类作业对应的电池组信息 |
| | | @GetMapping("byTemplate") |
| | | @PostMapping("serchBytemplate") |
| | | @ApiOperation(notes = "",value="根据维护区查询所有的电池组和对应的包机人(模板创建)和维护人员信息以及各类作业对应的电池组信息") |
| | | public ServiceModel serchBytemplate(@RequestBody User_task_batt_template utbt){ |
| | | ServiceModel model=new ServiceModel(); |
| | | |
| | |
| | | } |
| | | |
| | | //4.1由模板添加作业(向utask,utest,ucheck中添加数据) |
| | | @PostMapping("byTemplate") |
| | | @PostMapping("addBytemplate") |
| | | @ApiOperation(notes = "",value="由模板添加作业(向utask,utest,ucheck中添加数据)") |
| | | public ServiceModel addBytemplate(@RequestBody AllModel allmodel){ |
| | | User_inf uinf=(User_inf)ActionUtil.getSession().getAttribute("user"); |
| | | //System.out.println(allmodel.getPmodel()); |
| | |
| | | import com.fgkj.dto.User_task_batt_check; |
| | | import com.fgkj.services.User_task_batt_checkService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("UserTaskBattCheck") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "UserTaskBattCheck接口") |
| | | public class User_task_batt_checkController{ |
| | | |
| | | @Resource |
| | | private User_task_batt_checkService service; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody User_task_batt_check utbc) { |
| | | ServiceModel model=service.add(utbc); |
| | | |
| | |
| | | } |
| | | //4.1提交,复查作业 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="提交,复查作业") |
| | | public ServiceModel update(@RequestBody User_task_batt_check utbc) { |
| | | ServiceModel model=service.update(utbc); |
| | | |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel delete(@RequestBody User_task_batt_check utbc) { |
| | | ServiceModel model=service.delete(utbc); |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="task_id查询user_task_batt_check信息") |
| | | public ServiceModel serchByCondition(@RequestBody User_task_batt_check utbc){ |
| | | ServiceModel model=service.serchByCondition(utbc); |
| | | |
| | | return model; |
| | | } |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | import com.fgkj.dto.User_task_batt_template; |
| | | import com.fgkj.services.User_task_batt_templateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("UserTaskBattTemplate") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "UserTaskBattTemplate接口") |
| | | public class User_task_batt_templateController{ |
| | | @Resource |
| | | private User_task_batt_templateService service; |
| | | |
| | | //4.4 作业模板管理(新建模板) |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="作业模板管理(新建模板)") |
| | | public ServiceModel add(@RequestBody User_task_batt_template utbt){ |
| | | ServiceModel model=service.add(utbt); |
| | | |
| | |
| | | |
| | | //4.4 作业模板管理(修改模板/重命名) |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="作业模板管理(修改模板/重命名)") |
| | | public ServiceModel update(@RequestBody List<User_task_batt_template> uplist) { |
| | | ServiceModel model=service.update(uplist); |
| | | |
| | |
| | | |
| | | //4.4 作业模板管理(删除) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="作业模板管理(删除)") |
| | | public ServiceModel delete(@RequestBody User_task_batt_template utbt){ |
| | | ServiceModel model=service.delete(utbt); |
| | | |
| | |
| | | } |
| | | |
| | | //4.4根据模板id查询模板的信息 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="模板id查询模板的信息") |
| | | public ServiceModel serchByCondition(@RequestBody User_task_batt_template utbt){ |
| | | ServiceModel model=service.serchByCondition(utbt); |
| | | |
| | |
| | | |
| | | //4.4查询所有的模板 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有的模板") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | import com.fgkj.dto.Task_Batt_Test; |
| | | import com.fgkj.services.User_task_batt_testService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @RequestMapping("userTaskBattTest") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "userTaskBattTest接口") |
| | | public class User_task_batt_testrController{ |
| | | @Resource |
| | | private User_task_batt_testService service; |
| | | |
| | | //4.6作业报表(根据电池组信息以及统计方式查询user_task_batt_test信息) |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "根据电池组信息以及统计方式查询user_task_batt_test信息",value="作业报表") |
| | | public ServiceModel serchByInfo(@RequestBody Task_Batt_Test tbt){ |
| | | ServiceModel model=new ServiceModel(); |
| | | List list=service.serchByInfo(tbt); |
| | |
| | | import com.fgkj.dto.User_task_change; |
| | | import com.fgkj.services.User_task_changeService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("userTaskChange") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "userTaskChange接口") |
| | | public class User_task_changeController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //4.1作业变更申请 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="作业变更申请") |
| | | public ServiceModel add(@RequestBody User_task_change utc) { |
| | | ServiceModel model=service.add(utc); |
| | | |
| | |
| | | } |
| | | //4.5作业变更查询(审批) |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="作业变更查询(审批)") |
| | | public ServiceModel update(@RequestBody User_task_change utc) { |
| | | ServiceModel model=service.update(utc); |
| | | |
| | |
| | | } |
| | | //4.5作业变更查询(删除记录) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="作业变更查询(删除记录)") |
| | | public ServiceModel delete(@RequestBody User_task_change utc) { |
| | | ServiceModel model=service.delete(utc); |
| | | |
| | |
| | | } |
| | | |
| | | //4.5作业变更查询 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="作业变更查询") |
| | | public ServiceModel serchByCondition(@RequestBody Task_Batt_Test tbt){ |
| | | ServiceModel model=service.serchByCondition(tbt); |
| | | |
| | |
| | | |
| | | //查询所有 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | import com.fgkj.dto.User_task_param; |
| | | import com.fgkj.services.User_task_paramService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("userTaskParam") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "userTaskParam接口") |
| | | public class User_task_paramController{ |
| | | @Resource |
| | | private User_task_paramService service; |
| | | |
| | | //4.2作业参数(新增作业参数) |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="作业参数(新增作业参数)") |
| | | public ServiceModel add(@RequestBody User_task_param utp) { |
| | | ServiceModel model=service.add(utp); |
| | | |
| | |
| | | } |
| | | //4.2作业参数(重命名操作) |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="作业参数(重命名操作)") |
| | | public ServiceModel update(@RequestBody User_task_param utp) { |
| | | // System.out.println("utp = " + utp); |
| | | ServiceModel model=service.update(utp); |
| | |
| | | |
| | | //4.2作业参数(重命名操作) |
| | | @PutMapping("pro") |
| | | @ApiOperation(notes = "",value="作业参数(重命名操作)") |
| | | public ServiceModel updatePro(@RequestBody List<User_task_param> uplist) { |
| | | ServiceModel model=service.updatePro(uplist); |
| | | |
| | |
| | | |
| | | //4.2作业参数(删除) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="作业参数(删除)") |
| | | public ServiceModel delete(@RequestBody User_task_param utp) { |
| | | ServiceModel model=service.delete(utp); |
| | | |
| | |
| | | |
| | | //4.2查询所有参数种类 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有参数种类") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | |
| | | //4.2根据参数id查基本参数和模板参数 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="参数id查基本参数和模板参数") |
| | | public ServiceModel serchByCondition(@RequestBody User_task_param utp){ |
| | | ServiceModel model=service.serchByCondition(utp); |
| | | |
| | |
| | | import com.fgkj.services.bts61850.BTS_61850_setparamService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | |
| | | ///根据电池组信息查询参数 |
| | | //data: "json="+json |
| | | @RequestMapping("/serchByCondition") |
| | | @ApiOperation(tags = "条件查询方法",notes = "条件查询方法的notes",value="条件查询方法的value",httpMethod = "GET") |
| | | @GetMapping("/serchByCondition") |
| | | // @ApiOperation(notes = "条件查询方法的notes",value="条件查询方法的value") |
| | | @ApiOperation(notes = "Table 'db_ram_db.tb_bts_61850_setparm' doesn't exist",value="电池组信息查询参数") |
| | | public ServiceModel serchByCondition(@RequestBody BattInf binf) { |
| | | ServiceModel model=service.serchByCondition(binf); |
| | | return model; |
| | | } |
| | | //根据设备id修改参数 |
| | | @RequestMapping("/update") |
| | | @ApiOperation(tags = "设备id修改参数方法",notes = "设备id修改参数方法的notes",value="设备id修改参数方法的value",httpMethod = "UPDATE") |
| | | @PutMapping("/update") |
| | | @ApiOperation(notes = "设备id修改参数方法的notes",value="根据设备id修改参数") |
| | | public ServiceModel update(@RequestBody BTS_61850_setparam bts) { |
| | | ServiceModel model=service.update(bts); |
| | | { String msg=""; |
| | |
| | | return model; |
| | | } |
| | | //根据设备id修改参数 |
| | | @RequestMapping("/updateCmd") |
| | | @ApiOperation(tags = "设备id修改参数方法2",notes = "设备id修改参数方法2的notes",value="设备id修改参数方法2的value",httpMethod = "UPDATE") |
| | | @PutMapping("/updateCmd") |
| | | @ApiOperation(notes = "",value="根据设备id修改参数2") |
| | | public ServiceModel updateCMd(@RequestBody BTS_61850_setparam bts) { |
| | | ServiceModel model=service.updateCMd(bts); |
| | | { String msg=""; |
| | |
| | | return model; |
| | | } |
| | | //右键查看参数和弹出框的刷新按钮 |
| | | @RequestMapping("/serchByDev_id") |
| | | @ApiOperation(tags = "根据设备Id条件查询方法",notes = "根据设备Id条件查询方法的notes",value="根据设备Id条件查询方法的value",httpMethod = "GET") |
| | | @GetMapping("/serchByDev_id") |
| | | @ApiOperation(notes = "",value="右键查看参数和弹出框的刷新按钮") |
| | | public ServiceModel serchbyDev_id(@RequestBody BTS_61850_setparam bts) { |
| | | ServiceModel model = service.serchbyDev_id(bts); |
| | | return model; |
| | |
| | | |
| | | |
| | | //根据电池组id查询电池组内前五的内阻数据 |
| | | @RequestMapping("/serchByThirdBatt") |
| | | @ApiOperation(tags = "根据电池Id查询电池组内前五的内阻数据方法",notes = "根据电池Id查询电池组内前五的内阻数据方法的notes",value="根据电池Id查询电池组内前五的内阻数据方法的value",httpMethod = "GET") |
| | | @GetMapping("/serchByThirdBatt") |
| | | @ApiOperation(notes = "",value="根据电池Id查询电池组内前五的内阻数据方法的value") |
| | | public ServiceModel serchByThirdBatt(@RequestBody BattInf binf){ |
| | | ServiceModel model = service.serchByThirdBatt(binf); |
| | | |
| | |
| | | import com.fgkj.dto.User_inf; |
| | | import com.fgkj.services.bts61850.BTS_61850_stateService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("bts61850State") |
| | | @RestController |
| | | @Api(tags = "bts61850State接口") |
| | | public class BTS_61850_stateController { |
| | | |
| | | @Resource |
| | |
| | | |
| | | //查询BTS_61850_stateService实时数据 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询BTS_61850_stateService实时数据") |
| | | public ServiceModel searchAll() { |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="BTS_61850设备通信状态查询") |
| | | //11.1BTS_61850设备通信状态查询 |
| | | public ServiceModel serchByCondition(@RequestBody BTS_61850_state bts){ |
| | | // BTS_61850_state bts= ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BTS_61850_state.class); |
| | |
| | | import com.fgkj.dto.User_inf; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | |
| | | @RequestMapping("broadcast") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "broadcast接口") |
| | | public class BroadcastController{ |
| | | private static int createCount = 0; //生成音频文件计数 |
| | | |
| | | @RequestMapping("create") |
| | | @ApiOperation(notes = "",value="生成音频文件") |
| | | public ServiceModel createBroadcast(@RequestBody MyMultiMedia media){ |
| | | MSTTSSpeech speech=new MSTTSSpeech(); |
| | | // MyMultiMedia media = ActionUtil.getGson().fromJson(json, MyMultiMedia.class); |
| | |
| | | import com.fgkj.services.User_logService; |
| | | import com.fgkj.services.ram.Fbs9100_setparamService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("fbs9100SetParam") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fbs9100SetParam接口") |
| | | public class Fbs9100_setparamController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //根据机房编号和维护区查询放电机房的信息和放电参数 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="机房编号和维护区查询放电机房的信息和放电参数") |
| | | public ServiceModel serchByCondition(@RequestBody BattInf binf){ |
| | | // BattInf binf = getGson().fromJson(json, BattInf.class); |
| | | ServiceModel model = service.serchByCondition(binf); |
| | |
| | | |
| | | //根据设备id查询设备的放电参数 |
| | | @GetMapping("devParamById") |
| | | @ApiOperation(notes = "",value="设备id查询设备的放电参数") |
| | | public ServiceModel serchdevParam(@RequestBody BattInf binf){ |
| | | ServiceModel model = service.serchdevParam(binf); |
| | | return model; |
| | |
| | | |
| | | //弹出框的确定操作 |
| | | @PutMapping("update") |
| | | @ApiOperation(notes = "",value="弹出框的确定操作") |
| | | public ServiceModel update(@RequestBody Fbs9100_setparam fbs) { |
| | | ServiceModel model = service.update(fbs); |
| | | { String msg=""; |
| | |
| | | |
| | | //离线养护功能 |
| | | @PutMapping("maintain") |
| | | @ApiOperation(notes = "",value="离线养护功能") |
| | | public ServiceModel updateMaintain(@RequestBody Fbs9100_setparam fbs) { |
| | | ServiceModel model = service.updateMaintain(fbs); |
| | | { String msg=""; |
| | |
| | | |
| | | //点击弹出框的设定按钮,修改ld6测试参数 |
| | | @PutMapping("ld6Param") |
| | | @ApiOperation(notes = "",value="点击弹出框的设定按钮,修改ld6测试参数") |
| | | public ServiceModel updateld6Param(@RequestBody Fbs9100_setparam fbs){ |
| | | ServiceModel model = service.updateld6Param(fbs); |
| | | { String msg=""; |
| | |
| | | |
| | | //点击弹出框的设定按钮,修改61850测试参数 |
| | | @PutMapping("61850Param") |
| | | @ApiOperation(notes = "",value="点击弹出框的设定按钮,修改61850测试参数") |
| | | public ServiceModel update61850Param(@RequestBody Fbs9100_setparam fbs){ |
| | | ServiceModel model = service.update61850Param(fbs); |
| | | { String msg=""; |
| | |
| | | |
| | | //右键查看参数和弹出框的刷新按钮 |
| | | @GetMapping("byDevId") |
| | | @ApiOperation(notes = "",value="右键查看参数和弹出框的刷新按钮") |
| | | public ServiceModel serchbyDev_id(@RequestBody Fbs9100_setparam fsparam) { |
| | | ServiceModel model = service.serchbyDev_id(fsparam); |
| | | return model; |
| | |
| | | |
| | | //实时刷新放电表格的电池组状态(集合) |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="实时刷新放电表格的电池组状态(集合)") |
| | | public ServiceModel serchByInfo(@RequestBody List<BattInf> binf){ |
| | | // List<BattInf> binf = getGson().fromJson(json, new TypeToken<List<BattInf>>(){}.getType()); |
| | | ServiceModel model = service.serchByInfo(binf); |
| | |
| | | |
| | | //根据电池组id查询电池组内前五的内阻数据(修改为前10) |
| | | @GetMapping("byThirdBatt") |
| | | @ApiOperation(notes = "",value="电池组id查询电池组内前五的内阻数据(修改为前10)") |
| | | public ServiceModel serchByThirdBatt(@RequestBody BattInf binf){ |
| | | ServiceModel model = service.serchByThirdBatt(binf); |
| | | return model; |
| | |
| | | |
| | | //-----------跨域实现(启动,停止)设备放电 |
| | | @PutMapping("update_ky") |
| | | @ApiOperation(notes = "",value="跨域实现(启动,停止)设备放电") |
| | | public ServiceModel update_ky(@RequestBody Fbs9100_setparam fbs) { |
| | | { String msg=""; |
| | | if(fbs.getNum()==FBS9100_ComBase.CMD_SetDischargeParm){ |
| | |
| | | |
| | | //-----------跨域根据机房编号和维护区查询放电机房的信息和放电参数 |
| | | @GetMapping("byCondition_ky") |
| | | @ApiOperation(notes = "",value="跨域根据机房编号和维护区查询放电机房的信息和放电参数") |
| | | public ServiceModel serchByCondition_ky(@RequestBody BattInf binf){ |
| | | ServiceModel model = service.serchByCondition(binf); |
| | | return model; |
| | |
| | | import com.fgkj.services.ram.Fbs9100_stateService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("fbs9100State") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fbs9100State接口") |
| | | public class Fbs9100_stateController{ |
| | | |
| | | @Resource |
| | | private Fbs9100_stateService service; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加") |
| | | public ServiceModel add(@RequestBody Fbs9100_state state) { |
| | | // Fbs9100_state state = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100_state.class); |
| | | ServiceModel model = service.add(state); |
| | |
| | | } |
| | | |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody Fbs9100_state state) { |
| | | // Fbs9100_state state = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100_state.class); |
| | | ServiceModel model = service.update(state); |
| | |
| | | |
| | | //fbs9600设备内阻测试 |
| | | @PutMapping("/updatePro") |
| | | @ApiOperation(notes = "",value="fbs9600设备内阻测试") |
| | | public ServiceModel updatePro(@RequestBody List<Fbs9100_state> list) { |
| | | // List<Fbs9100_state> list =getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, new TypeToken<List<Fbs9100_state>>(){}.getType()); |
| | | ServiceModel model = service.updatePro(list); |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel delete(@RequestBody Fbs9100_state state) { |
| | | // Fbs9100_state state = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100_state.class); |
| | | ServiceModel model = service.delete(state); |
| | |
| | | |
| | | //FBS9600设备内阻测试显示全部9600设备的信息 |
| | | @GetMapping("byUid") |
| | | @ApiOperation(notes = "",value="FBS9600设备内阻测试显示全部9600设备的信息") |
| | | public ServiceModel searchByUid(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.searchByUid(uinf); |
| | |
| | | |
| | | //11.1FBS9100设备通信状态查询 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="FBS9100设备通信状态查询") |
| | | public ServiceModel serchByCondition(@RequestBody Fbs9100_state state){ |
| | | // Fbs9100_state state = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100_state.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | |
| | | //实时监测界面根据dev_alarmstate状态判断接触器状态 |
| | | @GetMapping("contactorState") |
| | | @ApiOperation(notes = "",value="实时监测界面根据dev_alarmstate状态判断接触器状态") |
| | | public ServiceModel serchContactorState(@RequestBody Fbs9100_state state) { |
| | | // Fbs9100_state state = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100_state.class); |
| | | ServiceModel model = service.serchContactorState(state); |
| | |
| | | |
| | | //放电测试界面根据设备id查询网络拓扑图 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="放电测试界面根据设备id查询网络拓扑图") |
| | | public ServiceModel serchByInfo(@RequestBody BattInf binf) { |
| | | // BattInf binf = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class); |
| | | ServiceModel model = service.serchByInfo(binf); |
| | |
| | | } |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model = service.searchAll(); |
| | | |
| | |
| | | |
| | | //实时界面左侧导航实时查询61850设备是否存在4种告警 |
| | | @GetMapping("by61850Alarms") |
| | | @ApiOperation(notes = "",value="实时界面左侧导航实时查询61850设备是否存在4种告警") |
| | | public ServiceModel serchBy61850Alarms(){ |
| | | ServiceModel model = service.serchBy61850Alarms(); |
| | | |
| | |
| | | |
| | | //查询61850设备的6种工作状态 |
| | | @GetMapping("devWorkState") |
| | | @ApiOperation(notes = "",value="查询61850设备的6种工作状态") |
| | | public ServiceModel searchDevWorkstate(@RequestBody Fbs9100_state state){ |
| | | // Fbs9100_state state = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100_state.class); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | |
| | | |
| | | //导航上实时查询61850设备的处于核容测试的数据 |
| | | @GetMapping("61850NuclearCap") |
| | | @ApiOperation(notes = "",value="导航上实时查询61850设备的处于核容测试的数据") |
| | | public ServiceModel seach6185Nuclear_cap(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.seach6185Nuclear_cap(uinf, FBS9100_ComBase.DEV_NUCLEAR_CAP); |
| | |
| | | |
| | | //11.1FBS9100设备通信状态查询 <-- 跨域 --> |
| | | @GetMapping("byConditionKy") |
| | | @ApiOperation(notes = "跨域",value="FBS9100设备通信状态查询") |
| | | public ServiceModel serchByCondition_ky(){ |
| | | //isAllowHeaders(); //允许跨域访问 |
| | | ServiceModel model = service.serchByCondition_ky(); |
| | |
| | | import com.fgkj.services.User_logService; |
| | | import com.fgkj.services.ram.Fbs9100_sysparamService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("fbs9100SysParam") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fbs9100SysParam接口") |
| | | public class Fbs9100_sysparamController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //修改系统参数 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改系统参数") |
| | | public ServiceModel update(@RequestBody Fbs9100_sysparam sys) { |
| | | // Fbs9100_sysparam sys = getGson().fromJson(json, Fbs9100_sysparam.class); |
| | | ServiceModel model = service.update(sys); |
| | |
| | | |
| | | //修改61850系统参数 |
| | | @PutMapping("update61850") |
| | | @ApiOperation(notes = "",value="修改61850系统参数") |
| | | public ServiceModel update61850(@RequestBody Fbs9100_sysparam sys) { |
| | | // Fbs9100_sysparam sys = getGson().fromJson(json, Fbs9100_sysparam.class); |
| | | ServiceModel model = service.update61850(sys); |
| | |
| | | |
| | | //批量设置系统参数 |
| | | @PutMapping("updatePro") |
| | | @ApiOperation(notes = "",value="批量设置系统参数") |
| | | public ServiceModel updatePro(@RequestBody List<Fbs9100_sysparam> list, @RequestParam(required = false) String json_msg) { |
| | | // List<Fbs9100_sysparam> list=getGson().fromJson(json, new TypeToken<List<Fbs9100_sysparam>>(){}.getType()); |
| | | ServiceModel model = service.updatePro(list); |
| | |
| | | }*/ |
| | | |
| | | //根据设备id查询系统参数(一定是被管理的) |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备id查询系统参数(一定是被管理的)") |
| | | public ServiceModel serchByCondition(@RequestBody Fbs9100_sysparam sys){ |
| | | // Fbs9100_sysparam sys= getGson().fromJson(json, Fbs9100_sysparam.class); |
| | | ServiceModel model = service.serchByCondition(sys); |
| | |
| | | }*/ |
| | | |
| | | //批量读取系统参数 |
| | | @GetMapping("readPL") |
| | | @PostMapping("readPL") |
| | | @ApiOperation(notes = "",value="批量读取系统参数") |
| | | public ServiceModel readPL(@RequestBody List<Fbs9100_sysparam> list) { |
| | | // List<Fbs9100_sysparam> list=getGson().fromJson(json, new TypeToken<List<Fbs9100_sysparam>>(){}.getType()); |
| | | ServiceModel model = service.readPL(list); |
| | |
| | | import com.fgkj.dto.ram.FBS9100; |
| | | import com.fgkj.services.ram.Fbs9100s_dcdc_stateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("fbs9100sDcDcState") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fbs9100sDcDcState接口") |
| | | public class Fbs9100s_dcdc_stateController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //根据设备id查询设备的充放电设备模块的参数信息 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备id查询设备的充放电设备模块的参数信息") |
| | | public ServiceModel serchByCondition(@RequestBody FBS9100 fbs9100){ |
| | | // FBS9100 fbs9100 = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, FBS9100.class); |
| | | ServiceModel model = service.serchByCondition(fbs9100); |
| | |
| | | } |
| | | //刷新dcdc模块信息表格中数据 |
| | | @PutMapping("refreshTable") |
| | | @ApiOperation(notes = "",value="刷新dcdc模块信息表格中数据") |
| | | public ServiceModel refreshTable(@RequestBody List<FBS9100> list){ |
| | | // List<FBS9100> list= getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, new TypeToken<List<FBS9100>>(){}.getType()); |
| | | ServiceModel model = service.refreshTable(list); |
| | |
| | | import com.fgkj.services.User_logService; |
| | | import com.fgkj.services.ram.Fbs9100s_fod_paramService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("fbs9100sFodParam") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fbs9100sFodParam接口") |
| | | public class Fbs9100s_fod_paramController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //发送命令修改参数 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="发送命令修改参数") |
| | | public ServiceModel update(@RequestBody Fbs9100s_fod_param fod) { |
| | | ServiceModel model = new ServiceModel(); |
| | | { String msg=""; |
| | |
| | | |
| | | //根据设备id查询设备养护除硫的参数信息 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备id查询设备养护除硫的参数信息") |
| | | public ServiceModel serchByCondition(@RequestBody Fbs9100s_fod_param fod){ |
| | | ServiceModel model=service.serchByCondition(fod); |
| | | |
| | |
| | | import com.fgkj.dto.ram.Fbs9100s_fod_state; |
| | | import com.fgkj.services.ram.Fbs9100s_fod_stateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("fbs9100sFodState") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fbs9100sFodState接口") |
| | | public class Fbs9100s_fod_stateController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //根据设备id查询设备养护除硫的参数信息 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备id查询设备养护除硫的参数信息") |
| | | public ServiceModel serchByCondition(@RequestBody Fbs9100s_fod_state fod){ |
| | | ServiceModel model=service.serchByCondition(fod); |
| | | |
| | |
| | | import com.fgkj.dto.ram.Fbs9100s_nibian_state; |
| | | import com.fgkj.services.ram.Fbs9100s_nibian_stateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("fbs9100sNibianState") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fbs9100sNibianState接口") |
| | | public class Fbs9100s_nibian_stateController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //根据设备 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备ID查询") |
| | | public ServiceModel serchByCondition(@RequestBody Fbs9100s_nibian_state fstate) { |
| | | ServiceModel model=service.serchByCondition(fstate); |
| | | |
| | |
| | | import com.fgkj.services.ram.Fbs9600_stateService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("fbs9600State") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fbs9600State接口") |
| | | public class Fbs9600_stateController{ |
| | | |
| | | @Resource |
| | |
| | | private User_logService uservice; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加") |
| | | public ServiceModel add(@RequestBody Fbs9600_state state) { |
| | | ServiceModel model = service.add(state); |
| | | |
| | |
| | | |
| | | //bts显示屏启动放电 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="bts显示屏启动放电") |
| | | public ServiceModel update(@RequestBody Fbs9600_state state) { |
| | | ServiceModel model = service.update(state); |
| | | { String msg=""; |
| | |
| | | |
| | | //fbs9600设备内阻测试 |
| | | @PutMapping("updatePro") |
| | | @ApiOperation(notes = "",value="fbs9600设备内阻测试") |
| | | public ServiceModel updatePro(@RequestBody List<Fbs9600_state> list) { |
| | | ServiceModel model = service.updatePro(list); |
| | | |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel delete(@RequestBody Fbs9600_state state) { |
| | | ServiceModel model = service.delete(state); |
| | | |
| | |
| | | |
| | | //11.1FBS9600设备通信状态查询 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="FBS9600设备通信状态查询") |
| | | public ServiceModel serchByCondition(@RequestBody Fbs9600_state state){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | state.setNum(uinf.getuId());//将用户id存放在Fbs9100_state的num中用于处理用户管理的机房问题 |
| | |
| | | |
| | | //放电测试添加fbs9600设备的添加电池组的操作 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="放电测试添加fbs9600设备的添加电池组的操作") |
| | | public ServiceModel serchByInfo(@RequestBody BattInf binf){ |
| | | ServiceModel model= service.serchByInfo(binf); |
| | | |
| | |
| | | |
| | | //FBS9600设备内阻测试显示全部9600设备的信息(改为将9600内阻数据放在9100state表中) |
| | | @GetMapping("byUid") |
| | | @ApiOperation(notes = "",value="FBS9600设备内阻测试显示全部9600设备的信息(改为将9600内阻数据放在9100state表中)") |
| | | public ServiceModel searchByUid(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.searchByUid(uinf); |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.ram.Hard_dev_sms_stateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | |
| | | @RequestMapping("hardDevSmsState") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "hardDevSmsState接口") |
| | | public class Hard_dev_sms_stateController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //4.8查询所有的短信设备状态 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有的短信设备状态") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | return model; |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.ram.JhStateService; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("jhState") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "jhState接口") |
| | | public class JhStateController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | |
| | | //根据设备id查询设备均衡供电模块的信息 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="byInfo") |
| | | public ServiceModel serchByCondition(@RequestBody JhState jh) { |
| | | ServiceModel model=service.serchByCondition(jh); |
| | | |
| | |
| | | import com.fgkj.dto.ram.Server_state; |
| | | import com.fgkj.services.ram.Server_stateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("serverState") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "serverState接口") |
| | | public class Server_stateController{ |
| | | |
| | | @Resource |
| | | private Server_stateService service; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody Server_state state) { |
| | | ServiceModel model = service.add(state); |
| | | return model; |
| | |
| | | } |
| | | |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody Server_state state) { |
| | | ServiceModel model = service.update(state); |
| | | |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel delete(@RequestBody Server_state state) { |
| | | ServiceModel model = service.delete(state); |
| | | |
| | | return model; |
| | | } |
| | | |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="byCondition") |
| | | public ServiceModel serchByCondition(@RequestBody Server_state state){ |
| | | ServiceModel model = service.serchByCondition(state); |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询系统的cpu,内存使用率") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model = service.searchAll(); |
| | | |
| | |
| | | import com.fgkj.dto.rt.Batt_rtdataRt; |
| | | import com.fgkj.services.rt.Batt_rtdataRtService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("battRtDataRT") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battRtDataRT接口 @Deprecated") |
| | | @Deprecated |
| | | public class Batt_rtdataRtController{ |
| | | |
| | |
| | | |
| | | //实时监测——点击电池组查看实时数据 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="实时监测——点击电池组查看实时数据") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_rtdataRt rt){ |
| | | ServiceModel model = service.serchByCondition(rt); |
| | | return model; |
| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.rt.Rtstate_rtService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("rtStateRt") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "rtStateRt接口 Deprecated") |
| | | @Deprecated |
| | | public class Rtstate_rtController{ |
| | | |
| | |
| | | |
| | | //测试数据——实时查询中左下角的充放电统计 |
| | | @GetMapping("disOrCharge") |
| | | @ApiOperation(notes = "",value="测试数据——实时查询中左下角的充放电统计") |
| | | public ServiceModel serchDisOrChargr(){ |
| | | ServiceModel model= service.serchDisOrChargr(); |
| | | return model; |
| | |
| | | |
| | | //电池组实时情况+实时电池续航能力查询 |
| | | @GetMapping("battLife") |
| | | @ApiOperation(notes = "",value="电池组实时情况+实时电池续航能力查询") |
| | | public ServiceModel serchBattLife(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | // Batt_Maint_Dealarm bmd = getGson().fromJson(json, Batt_Maint_Dealarm.class); |
| | | ServiceModel model = service.serchBattLife(bmd); |
| | |
| | | |
| | | //首页上饼状图电池状态比例 |
| | | @GetMapping("battStateRate") |
| | | @ApiOperation(notes = "",value="首页上饼状图电池状态比例") |
| | | public ServiceModel serchBattStateRate(){ |
| | | ServiceModel model = service.serchBattStateRate(); |
| | | return model; |
| | |
| | | |
| | | public Alarm_param() { |
| | | super(); |
| | | // TODO Auto-generated constructor stub |
| | | } |
| | | public Integer getNum() { |
| | | return num; |
| | |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.apache.ibatis.type.Alias; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | |
| | | //根据discharge/charge/poweroff查询 |
| | | @GetMapping("byInfo") |
| | | public ServiceModel serchByInfo(App_Param param) { |
| | | ServiceModel model = new ServiceModel(); |
| | | List list=mapper.serchByInfo(param); |
| | | if(list!=null&&list.size()>0){ |
| | | model.setCode(1); |
| | |
| | | //修改参数 |
| | | @PutMapping("/") |
| | | public ServiceModel update(List<App_Param> params) { |
| | | |
| | | ServiceModel model = new ServiceModel(); |
| | | boolean bl=mapper.updatePro(params)>0; |
| | | |
| | | if(bl){ |
| | |
| | | |
| | | //添加规避时间 |
| | | public ServiceModel addPro(List<Avoid_plan> list){ |
| | | |
| | | |
| | | ServiceModel model = new ServiceModel(); |
| | | |
| | | List<User_log> listU=new ArrayList<User_log>();//存放user_log |
| | | if(list!=null&&list.size()>0){ |
| | |
| | | return model; |
| | | } |
| | | //根据机房编号和维护区查询放电机房的信息和放电参数 |
| | | public ServiceModel serchByCondition(Object obj){ |
| | | public ServiceModel serchByCondition(BattInf binf){ |
| | | ServiceModel model =new ServiceModel(); |
| | | BattInf binf=(BattInf) obj; |
| | | List list=mapper.serchByCondition(binf); |
| | | if(list!=null&&list.size()>0){ |
| | | model.setCode(1); |
| | |
| | | LEFT OUTER JOIN |
| | | db_ram_db.tb_bts_61850_state on db_ram_db.tb_bts_61850_state.FBSDeviceId=db_battinf.tb_battinf.FBSDeviceId |
| | | where |
| | | db_battinf.tb_battinf.StationName1 like #{StationName1} |
| | | and db_battinf.tb_battinf.StationName LIKE #{StationName} |
| | | and db_battinf.tb_battinf.battgroupid= #{BattGroupId} |
| | | db_battinf.tb_battinf.StationName1 like #{stationName1} |
| | | and db_battinf.tb_battinf.StationName LIKE #{stationName} |
| | | and db_battinf.tb_battinf.battgroupid= #{battGroupId} |
| | | </select> |
| | | |
| | | <update id="sendCmdTo61850Dev"> |