| | |
| | | <?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"> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.TbBasicDataConfigMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | |
| | | </where> |
| | | GROUP BY tdc.type_name |
| | | </select> |
| | | <select id="queryPage" resultType="com.ruoyi.system.vo.BasicDataConfigVO"> |
| | | SELECT tbdc.id,tbdc.type_name,tbdc.calculate_type,tbdc.status,tbdc2.basic_data_category_name AS |
| | | basicDataCategory |
| | | FROM tb_basic_data_config tbdc |
| | | LEFT JOIN tb_basic_data_category tbdc2 ON tbdc.basic_data_category_id = tbdc2.id |
| | | <where> |
| | | <if test="query.basicDataConfigName != null and query.basicDataConfigName !=''"> |
| | | AND bdc.type_name LIKE CONCAT('%',#{query.basicDataConfigName},'%') |
| | | </if> |
| | | <if test="query.status !=null"> |
| | | AND bdc.status = #{query.status} |
| | | </if> |
| | | <if test="query.calculateType !=null"> |
| | | AND bdc.calculate_type = #{query.calculateType} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |