提交 38ae84c8 authored 作者: xuyanqi's avatar xuyanqi

工程阶段时间轴

上级 5f345587
...@@ -74,5 +74,11 @@ public interface ZhjcGhjhMapper extends BaseMapper<ZhjcGhjh> { ...@@ -74,5 +74,11 @@ public interface ZhjcGhjhMapper extends BaseMapper<ZhjcGhjh> {
* @return * @return
*/ */
List<ZhjcGhjhTjfxDzxAndXgj> getGhjhFourData(@Param("code") int code, @Param("xmlxdm") String xmlxdm, @Param("year") String year); List<ZhjcGhjhTjfxDzxAndXgj> getGhjhFourData(@Param("code") int code, @Param("xmlxdm") String xmlxdm, @Param("year") String year);
List<Map<String,Object>> queryLxGhjh(@Param("gcxmId") String gcxmId);
/**
* 根据工程ID查询项目编号
* @param: gcxmId
* @return
*/
Map<String,Object> queryLxGhjh(@Param("gcxmId") String gcxmId);
} }
...@@ -56,5 +56,10 @@ public interface ZhjcGhjhService extends IService<ZhjcGhjh> { ...@@ -56,5 +56,10 @@ public interface ZhjcGhjhService extends IService<ZhjcGhjh> {
* 删除规划计划 * 删除规划计划
*/ */
Boolean deleteZhjcGhjh(ZhjcGhjh zhjcGhjh); Boolean deleteZhjcGhjh(ZhjcGhjh zhjcGhjh);
List<Map<String,Object>> queryLxGhjh(String gcxmId); /**
* 根据工程ID查询项目编码并获取项目信息
* @param: gcxmId
* @return
*/
ZhjcGhjhTimeline queryLxGhjh(String gcxmId);
} }
\ No newline at end of file
...@@ -325,7 +325,11 @@ public class ZhjcGhjhServiceImpl extends ServiceImpl<ZhjcGhjhMapper, ZhjcGhjh> i ...@@ -325,7 +325,11 @@ public class ZhjcGhjhServiceImpl extends ServiceImpl<ZhjcGhjhMapper, ZhjcGhjh> i
} }
@Override @Override
public List<Map<String, Object>> queryLxGhjh(String gcxmId) { public ZhjcGhjhTimeline queryLxGhjh(String gcxmId) {
return zhjcGhjhMapper.queryLxGhjh(gcxmId); Map<String,Object> xmbm = zhjcGhjhMapper.queryLxGhjh(gcxmId);
if(!xmbm.isEmpty()){
return this.getZhjcGhjhByXmbm(xmbm.get("xmbm").toString());
}
return null;
} }
} }
...@@ -26,17 +26,9 @@ ...@@ -26,17 +26,9 @@
<result property="sfzxzt" column="sfzxzt"/> <result property="sfzxzt" column="sfzxzt"/>
<result property="createtime" column="createtime"/> <result property="createtime" column="createtime"/>
</resultMap> </resultMap>
<!-- <resultMap id="lxghjhMap" type="HashMap">--> <select id="queryLxGhjh" resultType="HashMap">
<!-- <result property="xmmc" column="xmmc"/>--> SELECT xmbm FROM `t_szgl_ghjh_gcxm` where gcxm_id = #{gcxmId} limit 0,1
<!-- <collection property="jieduan" column="xmid" javaType="ArrayList" ofType="HashMap">--> </select>
<!-- <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="getFourDataWctzMonth" resultType="java.lang.Double"> <select id="getFourDataWctzMonth" resultType="java.lang.Double">
select sum(WCTZMonth) from t_zhjc_ghjh_tzzh where xmid=#{xmid} select sum(WCTZMonth) from t_zhjc_ghjh_tzzh where xmid=#{xmid}
</select> </select>
...@@ -45,10 +37,6 @@ ...@@ -45,10 +37,6 @@
select * from t_zhjc_ghjh_tzzh where xmid=#{xmid} ORDER BY tbsj desc select * from t_zhjc_ghjh_tzzh where xmid=#{xmid} ORDER BY tbsj desc
</select> </select>
<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>
<select id="getTableBnZJData" resultType="java.lang.Double"> <select id="getTableBnZJData" resultType="java.lang.Double">
select sum(YXDTZ) from t_zhjc_ghjh_tzzh where xmid in (select xmid from t_zhjc_ghjh where xmbm in (select xmbm from t_zhjc_ghjh select sum(YXDTZ) from t_zhjc_ghjh_tzzh where xmid in (select xmid from t_zhjc_ghjh where xmbm in (select xmbm from t_zhjc_ghjh
where xmid=#{xmid})) where xmid=#{xmid}))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论