12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?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.ims.eval.dao.CalculateIndicatorItemInfoMapper">
- <select id="selectList" resultType="com.ims.eval.entity.CalculateIndicatorItemInfo">
- SELECT
- *
- FROM
- calculate_indicator_item_info a
- <where>
- 1=1
- <if test="organizationType !=null and organizationType !=''">
- and a.organization_type=#{organizationType}
- </if>
- <if test="checkCycle !=null and checkCycle !=''">
- and a.check_cycle=#{checkCycle}
- </if>
- <if test="year !=null and year !=''">
- and a.year=#{year}
- </if>
- <if test="month !=null and month !=''">
- and a.month=#{month}
- </if>
- <if test="indicatorId !=null and indicatorId !=''">
- and a.indicator_id=#{indicatorId}
- </if>
- <if test="organizationEvaluationId !=null and organizationEvaluationId !=''">
- and a.organization_evaluation_id=#{organizationEvaluationId}
- </if>
- <if test="childCode !=null and childCode !=''">
- and a.child_code=#{childCode}
- </if>
- </where>
- </select>
- <select id="selectItemInfoByIndicatorIdList" resultType="com.ims.eval.entity.CalculateIndicatorItemInfo">
- SELECT
- *
- FROM
- calculate_indicator_item_info a
- <where>
- <if test="binSection !=null and binSection !=''">
- and a.section_id=#{binSection}
- </if>
- <if test="organizationEvaluationId !=null and organizationEvaluationId !=''">
- and a.organization_evaluation_id=#{organizationEvaluationId}
- </if>
- <if test="indicatorIds !=null">
- AND a.indicator_id in
- <foreach item="item" collection="indicatorIds" separator="," open="(" close=")" index="">'${item}'</foreach>
- </if>
- </where>
- </select>
- </mapper>
|