| | |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class AdvisementPlayerService extends BaseServiceImpl<AdvisementPlayerMapper, AdvisementPlayer> { |
| | | private final AdvisementPlayerMapper advisementPlayerMapper ; |
| | | private final AdvisementPlayerMapper advisementPlayerMapper; |
| | | |
| | | /** |
| | | * 查询全部广告机 |
| | |
| | | */ |
| | | public List<AdvisementPlayer> listAdvisementPlayerParamByKeyword(AdvisementPlayerParam advisementPlayerParam) { |
| | | //设备状态:在线/离线/全部 |
| | | String equipmentState1; |
| | | String equipmentState2; |
| | | if ("全部".equals(advisementPlayerParam.getEquipmentState())) { |
| | | equipmentState1 = "在线"; |
| | | equipmentState2 = "离线"; |
| | | int equipmentState1; |
| | | int equipmentState2; |
| | | if (2 == advisementPlayerParam.getEquipmentState()) { |
| | | //在线 |
| | | equipmentState1 = 1; |
| | | //离线 |
| | | equipmentState2 = 0; |
| | | } else { |
| | | equipmentState1 = advisementPlayerParam.getEquipmentState(); |
| | | equipmentState2 = advisementPlayerParam.getEquipmentState(); |
| | | } |
| | | |
| | | //绑定状态:已绑定/未绑定/全部 |
| | | String bindingState1; |
| | | String bindingState2; |
| | | if ("全部".equals(advisementPlayerParam.getBindingState())) { |
| | | bindingState1 = "已绑定"; |
| | | bindingState2 = "未绑定"; |
| | | int bindingState1; |
| | | int bindingState2; |
| | | if (2 == advisementPlayerParam.getBindingState()) { |
| | | //已绑定 |
| | | bindingState1 = 1; |
| | | //未绑定 |
| | | bindingState2 = 0; |
| | | } else { |
| | | bindingState1 = advisementPlayerParam.getBindingState(); |
| | | bindingState2 = advisementPlayerParam.getBindingState(); |
| | |
| | | } |
| | | return removeById(Id); |
| | | } |
| | | |
| | | |
| | | |
| | | } |