| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.basic.mapper.StandardTemplateMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.inspect.pojo.StandardTemplate"> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.basic.pojo.StandardTemplate"> |
| | | <id property="id" column="id" jdbcType="INTEGER"/> |
| | | <result property="name" column="name" jdbcType="VARCHAR"/> |
| | | <result property="remark" column="remark" jdbcType="VARCHAR"/> |
| | |
| | | <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
| | | </resultMap> |
| | | |
| | | <select id="selectStandardTemplatePageList" resultType="com.ruoyi.inspect.pojo.StandardTemplate"> |
| | | <select id="selectStandardTemplatePageList" resultType="com.ruoyi.basic.pojo.StandardTemplate"> |
| | | select * from ( |
| | | select st.id, st.name,st.number, st.remark, u2.name create_user_name, u3.name update_user_name, st.create_time, st.update_time |
| | | from standard_template st |
| | |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="getStandTempIdByName" resultType="com.ruoyi.inspect.pojo.StandardTemplate"> |
| | | <select id="getStandTempIdByName" resultType="com.ruoyi.basic.pojo.StandardTemplate"> |
| | | select id from standard_template where name=#{name} |
| | | </select> |
| | | <!-- 查询压缩后的数据 --> |
| | | <select id="selectCompressThing" resultType="java.lang.String"> |
| | | SELECT COMPRESS(thing) |
| | | from standard_template b |
| | | WHERE id = #{templateId} |
| | | </select> |
| | | |
| | | |