From 600fd0d3b4a676fa071743196fe0f8407d57c491 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期一, 14 十月 2024 09:33:01 +0800 Subject: [PATCH] return utils.reverseResult(this.result); 对模型的返回结果进行处理 --- iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/ind/IndItemValueDao.xml | 31 ++++++++++++++++--------------- 1 files changed, 16 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..ec9a3eb 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,22 @@ <?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="orderBySql != null and orderBySql != ''"> + order by ${orderBySql} + </if> </select> -</mapper> +</mapper> \ No newline at end of file -- Gitblit v1.9.3