提交 2a599040 authored 作者: xuyanqi's avatar xuyanqi

规划计划

上级 368ad293
...@@ -82,4 +82,11 @@ public class ZhjcGhjhController extends BaseController { ...@@ -82,4 +82,11 @@ public class ZhjcGhjhController extends BaseController {
public R removeById(String xmid,String xmjd){ public R removeById(String xmid,String xmjd){
return new R<>(zhjcGhjhService.remove(Wrappers.<ZhjcGhjh>query().lambda().eq(ZhjcGhjh::getXmid,xmid).eq(ZhjcGhjh::getXmjd,xmjd))); return new R<>(zhjcGhjhService.remove(Wrappers.<ZhjcGhjh>query().lambda().eq(ZhjcGhjh::getXmid,xmid).eq(ZhjcGhjh::getXmjd,xmjd)));
} }
/**
*
*/
@GetMapping("/lxghjh")
public R getLxGhjh(@RequestParam("gcxmId") String gcxmId){
return new R<>(zhjcGhjhService.queryLxGhjh(gcxmId));
}
} }
...@@ -2,6 +2,10 @@ package com.elephant.framework.galaxy.aroad.module.zhjc.mapper; ...@@ -2,6 +2,10 @@ package com.elephant.framework.galaxy.aroad.module.zhjc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elephant.framework.galaxy.aroad.module.zhjc.entity.ZhjcGhjh; import com.elephant.framework.galaxy.aroad.module.zhjc.entity.ZhjcGhjh;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
/** /**
* 智慧决策_规划计划 * 智慧决策_规划计划
...@@ -10,5 +14,5 @@ import com.elephant.framework.galaxy.aroad.module.zhjc.entity.ZhjcGhjh; ...@@ -10,5 +14,5 @@ import com.elephant.framework.galaxy.aroad.module.zhjc.entity.ZhjcGhjh;
* @date 2019-05-27 14:23:44 * @date 2019-05-27 14:23:44
*/ */
public interface ZhjcGhjhMapper extends BaseMapper<ZhjcGhjh> { public interface ZhjcGhjhMapper extends BaseMapper<ZhjcGhjh> {
List<Map<String,Object>> queryLxGhjh(@Param("gcxmId") String gcxmId);
} }
...@@ -5,6 +5,9 @@ import com.elephant.framework.galaxy.aroad.module.zhjc.entity.ZhjcGhjh; ...@@ -5,6 +5,9 @@ import com.elephant.framework.galaxy.aroad.module.zhjc.entity.ZhjcGhjh;
import com.elephant.framework.galaxy.aroad.module.zhjc.entity.ZhjcGhjhGhjdzb; import com.elephant.framework.galaxy.aroad.module.zhjc.entity.ZhjcGhjhGhjdzb;
import com.elephant.framework.galaxy.aroad.response.R; import com.elephant.framework.galaxy.aroad.response.R;
import java.util.List;
import java.util.Map;
/** /**
* 智慧决策_规划计划 * 智慧决策_规划计划
* *
...@@ -27,4 +30,5 @@ public interface ZhjcGhjhService extends IService<ZhjcGhjh> { ...@@ -27,4 +30,5 @@ public interface ZhjcGhjhService extends IService<ZhjcGhjh> {
* @return * @return
*/ */
R addZhjcGhjh(ZhjcGhjh zhjcGhjh); R addZhjcGhjh(ZhjcGhjh zhjcGhjh);
List<Map<String,Object>> queryLxGhjh(String gcxmId);
} }
...@@ -16,6 +16,8 @@ import org.springframework.stereotype.Service; ...@@ -16,6 +16,8 @@ import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import java.util.Iterator; import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.UUID; import java.util.UUID;
/** /**
...@@ -76,4 +78,9 @@ public class ZhjcGhjhServiceImpl extends ServiceImpl<ZhjcGhjhMapper, ZhjcGhjh> i ...@@ -76,4 +78,9 @@ public class ZhjcGhjhServiceImpl extends ServiceImpl<ZhjcGhjhMapper, ZhjcGhjh> i
} }
} }
} }
@Override
public List<Map<String, Object>> queryLxGhjh(String gcxmId) {
return zhjcGhjhMapper.queryLxGhjh(gcxmId);
}
} }
...@@ -31,4 +31,17 @@ ...@@ -31,4 +31,17 @@
<result property="dateTime" column="date_time"/> <result property="dateTime" column="date_time"/>
<result property="bz" column="bz"/> <result property="bz" column="bz"/>
</resultMap> </resultMap>
<!-- <resultMap id="lxghjhMap" type="HashMap">-->
<!-- <result property="xmmc" column="xmmc"/>-->
<!-- <collection property="jieduan" column="xmid" javaType="ArrayList" ofType="HashMap">-->
<!-- <result property="xmlx" column="xmlx"/>-->
<!-- <result property="xmjdhy" column="xmjdhy"/>-->
<!-- <result property="jsxz" column="jsxz"/>-->
<!-- <result property="createtime" column="createtime"/>-->
<!-- <result property="jhnf" column="jhnf"/>-->
<!-- </collection>-->
<!-- </resultMap>-->
<select id="queryLxGhjh" resultType="HashMap">
select * from t_zhjc_ghjh where xmbm in (SELECT xmbm FROM `t_szgl_ghjh_gcxm` where gcxm_id = #{gcxmId})
</select>
</mapper> </mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论