From 4be7d863a161b64f8592a789d699e807545e7dc6 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期五, 15 十一月 2024 16:46:12 +0800 Subject: [PATCH] 计划数据 --- iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/ind/IndItemValueDao.xml | 34 +++++++++++++++++++--------------- 1 files changed, 19 insertions(+), 15 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/ind/IndItemValueDao.xml b/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/ind/IndItemValueDao.xml index 2a07b6f..4428a0c 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/ind/IndItemValueDao.xml +++ b/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/ind/IndItemValueDao.xml @@ -1,21 +1,25 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.iailab.module.data.ind.dao.IndItemValueDao"> +<mapper namespace="com.iailab.module.data.ind.value.dao.IndItemValueDao"> - - <select id="getSourceValue" parameterType="com.iailab.module.data.ind.dto.IndItemDTO" resultType="com.iailab.module.data.ind.dto.IndItemValueDTO"> - select - ${sqlSelect} - from ( - ${querySql} - ) ind_t - <where> - <if test="sqlWhere != null and sqlWhere != ''"> - and ${sqlWhere} - </if> - </where> - order by ind_t.data_time + <select id="getSourceValue" parameterType="map" resultType="com.iailab.module.data.ind.item.vo.IndItemValueVO"> + select + ${selectSql} + from ( + ${viewSql} + ) ind_t + <where> + <if test="whereSql != null and whereSql != ''"> + and ${whereSql} + </if> + </where> + <if test="groupSql != null and groupSql != ''"> + group by ${groupSql} + </if> + <if test="orderBySql != null and orderBySql != ''"> + order by ${orderBySql} + </if> </select> -</mapper> +</mapper> \ No newline at end of file -- Gitblit v1.9.3