package com.sandu.ximon.admin.service; import com.sandu.common.service.impl.BaseServiceImpl; import com.sandu.ximon.admin.param.PoleBindingParam; import com.sandu.ximon.dao.domain.PoleBinding; import com.sandu.ximon.dao.enums.PoleBindingEnums; import com.sandu.ximon.dao.mapper.PoleBindingMapper; import lombok.AllArgsConstructor; import org.springframework.stereotype.Service; /** * @author chenjiantian * @date 2021/12/14 11:48 */ @Service @AllArgsConstructor public class PoleBindingService extends BaseServiceImpl { private final LightReportDataService lightReportDataService; public boolean bindPole(Long poleId, PoleBindingParam param) { Integer deviceType = param.getDeviceType(); // if (PoleBindingEnums.LIGHT.getCode().equals(deviceType)) { // } PoleBinding poleBinding = new PoleBinding(); poleBinding.setPoleId(poleId); poleBinding.setDeviceType(deviceType); poleBinding.setDeviceName(param.getDeviceName()); poleBinding.setDeviceCode(param.getDeviceCode()); return save(poleBinding); // return false; } }