12345678910111213141516171819202122232425262728293031 |
- <?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.ozs.pm.mapper.PmDemandMapper">
- <select id="selectByDemandIdList" parameterType="java.util.List" resultType="com.ozs.pm.doman.PmDemand">
- select * from pm_demand where project_status = 15 and demand_id in
- <foreach item="item" collection="demandIdList" separator="," open="(" close=")" index="">
- #{item}
- </foreach>
- </select>
- <select id="selectExtractionExpert" parameterType="com.ozs.base.domain.vo.BaseExpertVo"
- resultType="com.ozs.pm.doman.PmDemand">
- select * from pm_demand where project_status = 13
- <if test="projectName != null and projectName != ''">
- and project_name like '%' + #{projectName} + '%'
- </if>
- <if test="startTime != null "><!-- 开始时间检索 -->
- and date_format(plan_demand_sub_time,'%y%m%d') >= date_format(#{startTime},'%y%m%d')
- </if>
- <if test="endTime != null "><!-- 结束时间检索 -->
- and date_format(plan_demand_sub_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d')
- </if>
- </select>
- <select id="purchaseProjectStatistical" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo" resultType="java.util.Map">
- select * from pm_demand
- </select>
- </mapper>
|