| | |
| | | } |
| | | |
| | | @PostMapping("updateStationList") |
| | | @ApiOperation(value = "包机组添加机房和锁|移除机房和电源",notes = "operationFlag为1,添加;-1,移除") |
| | | @ApiOperation(value = "包机组添加机房和电源|移除机房和电源",notes = "operationFlag为1,添加;-1,移除") |
| | | public Response updateStationAndLockList(@RequestBody List<BaojigroupPower> baoJiGroupLockList, @RequestParam int operationFlag){ |
| | | service.updateStationAndLockList(baoJiGroupLockList,operationFlag); |
| | | if(operationFlag==1) { |
| | |
| | | |
| | | <delete id="deleteStationAndLockList"> |
| | | <foreach collection="list" item="item" separator=";"> |
| | | delete from db_user.tb_baojigroup_power where baoji_group_id = #{item.baojiId} and |
| | | delete from db_user.tb_baojigroup_power where baoji_group_id = #{item.baojiGroupId} and |
| | | station_id = #{item.stationId} and power_id=#{item.powerId} |
| | | </foreach> |
| | | </delete> |