| 1234567891011121314151617181920212223242526272829303132 | 
							- <?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.wtkj.mapper.TaskContractMapper">
 
-     <select id="selectByTaskId" resultType="com.wtkj.entity.TaskContract">
 
-         select * from blade_task_contract where is_deleted = 0 and task_id = #{param1} order by create_time desc;
 
-     </select>
 
-     <select id="getByProjectIds" resultType="com.wtkj.entity.TaskContract">
 
-         select * from blade_task_contract where is_deleted = 0 and project_id in
 
-         <foreach collection="param" index="index" item="item" open="(" separator="," close=")">
 
-             #{item}
 
-         </foreach>
 
-     </select>
 
-     <select id="getByOrgDeptId" resultType="com.wtkj.entity.TaskContract">
 
-         select * from blade_task_contract where is_deleted = 0
 
-         <if test="param1 != null">
 
-             and org_dept_id = #{param1}
 
-         </if>
 
-         <if test="param2 != null">
 
-             and year = #{param2}
 
-         </if>
 
-         <if test="param3 != null">
 
-             and task_id in
 
-             <foreach collection="param3" index="index" item="item" open="(" separator="," close=")">
 
-                 #{item}
 
-             </foreach>
 
-         </if>
 
-         order by create_time desc;
 
-     </select>
 
- </mapper>
 
 
  |