田间灌溉项目管理 灌溉制度模块  修改查询流浪灌溉单元和已绑定灌溉单元接口返回id类型
作物分页查询增加返回备注字段
3个文件已修改
22 ■■■■■ 已修改文件
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voIr/VoCrop.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrCropMapper.xml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-web/pipIrr-web-irrigate/src/main/java/com/dy/pipIrrIrrigate/irrigateGroup/IrrigateGroupCtrl.java 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voIr/VoCrop.java
@@ -19,4 +19,7 @@
    @Schema(description = "作物名称")
    private String cropName;
    @Schema(description = "备注")
    private String remarks;
}
pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrCropMapper.xml
@@ -84,7 +84,8 @@
    <select id="getCrops" resultType="com.dy.pipIrrGlobal.voIr.VoCrop">
        SELECT
        CAST(cro.id AS char)AS id,
        cro.crop_name  AS  cropName
        cro.crop_name  AS  cropName,
        cro.remarks
        FROM ir_crop cro
        <where>
            cro.deleted = 0
pipIrr-platform/pipIrr-web/pipIrr-web-irrigate/src/main/java/com/dy/pipIrrIrrigate/irrigateGroup/IrrigateGroupCtrl.java
@@ -319,15 +319,15 @@
    @GetMapping(path = "bind_units")
    @SsoAop()
    public BaseResponse<Map> getGroupBindUnits(Long id) {
    public BaseResponse<List<String>> getGroupBindUnits(Long id) {
        try {
            List<Long> res = irrigateGroupSv.getGroupBindUnits(id);
            HashMap<Integer, String> map = new HashMap<>();
            ArrayList<Object> list = new ArrayList<>();
            for (int i = 0; i < res.size(); i++) {
                String aLong = res.get(i).toString();
                map.put(i,aLong);
                list.add(aLong);
            }
            return BaseResponseUtils.buildSuccess(map);
            return BaseResponseUtils.buildSuccess(list);
        } catch (Exception e) {
            log.error("获取一个轮灌组绑定灌溉单元记录异常", e);
            return BaseResponseUtils.buildException(e.getMessage());
@@ -336,15 +336,15 @@
    @GetMapping(path = "notBind_units")
    @SsoAop()
    public BaseResponse<Map> getNotBindUnits() {
    public BaseResponse<List<String>> getNotBindUnits() {
        try {
            List<Long> res = irrigateGroupSv.getNotBindUnits();
            HashMap<Integer, String> map = new HashMap<>();
            ArrayList<Object> list = new ArrayList<>();
            for (int i = 0; i < res.size(); i++) {
                String aLong = res.get(i).toString();
                map.put(i,aLong);
                list.add(aLong);
            }
            return BaseResponseUtils.buildSuccess(map);
            return BaseResponseUtils.buildSuccess(list);
        } catch (Exception e) {
            log.error("获取未绑定轮灌组的灌溉单元id记录异常", e);
            return BaseResponseUtils.buildException(e.getMessage());