新能源场站高低电压穿越新增下拉用于测点台账时维护
This commit is contained in:
@@ -18,6 +18,8 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -65,5 +67,14 @@ public class NewStationController extends BaseController {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.QUERY)
|
||||
@DeleteMapping("/selectDown")
|
||||
@ApiOperation("获取新能源场站高低电压穿越信息下拉框(用于监测点维护界面)")
|
||||
public HttpResult<List<Map>> selectDown(@RequestParam(name = "name",required = false) String name) {
|
||||
String methodDescribe = getMethodDescribe("selectDown");
|
||||
LogUtil.njcnDebug(log, "{},远程搜索值为:{}", methodDescribe, name);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, iNewStationService.selectDown(name), methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.device.pq.pojo.param.NewStationQueryParam;
|
||||
import com.njcn.device.pq.pojo.po.NewStation;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -19,4 +21,6 @@ public interface NewStationMapper extends BaseMapper<NewStation> {
|
||||
|
||||
Page<NewStation> queryPage(IPage<NewStation> page, @Param("newStationQueryParam") NewStationQueryParam newStationQueryParam);
|
||||
|
||||
List<Map> selectDown( @Param("name") String name);
|
||||
|
||||
}
|
||||
|
||||
@@ -27,4 +27,12 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectDown" parameterType="string" resultType="map">
|
||||
select id as value,name from pq_new_station ns
|
||||
where state = 1
|
||||
<if test="name != null and name !=''">
|
||||
and ns.name like concat('%',#{name},'%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.njcn.device.pq.pojo.param.NewStationQueryParam;
|
||||
import com.njcn.device.pq.pojo.po.NewStation;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -31,10 +33,16 @@ public interface INewStationService extends IService<NewStation> {
|
||||
|
||||
/***
|
||||
* 新能源场站高低电压穿越表删除
|
||||
* @author wr
|
||||
* @param ids
|
||||
* @return Boolean
|
||||
*/
|
||||
Boolean delNewStation(String ids);
|
||||
|
||||
/***
|
||||
* 获取新能源场站高低电压穿越信息下拉框(用于监测点维护界面)
|
||||
* @param name
|
||||
* @return List
|
||||
*/
|
||||
List<Map> selectDown(String name);
|
||||
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -55,4 +57,10 @@ public class NewStationServiceImpl extends ServiceImpl<NewStationMapper, NewStat
|
||||
boolean update = this.update(lambdaUpdateWrapper);
|
||||
return update;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> selectDown(String name) {
|
||||
return this.baseMapper.selectDown(name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user