日期:2014-05-16 浏览次数:20511 次
<delete id="deletePrjMembers" parameterType="map" > delete from tpm_prj_member where id in <foreach collection="ids" open="(" close=")" item="item" separator=","> ${item} </foreach> </delete>
<select id="judgePorjectExisted" parameterType="map" resultType="int"> select count(id) from tpm_project where code = #{code} <if test="id!=null and id!=''"> and id <![CDATA[<>]]> #{id} </if> </select>
<select id="selectOwner" resultType="com.talkyun.tone.api.model.pm.Project" parameterType="string"> SELECT id, name, code FROM tpm_project where 1=1 <if test="_parameter!=null and _parameter!=''"> AND ( id IN (SELECT DISTINCT prjId FROM tpm_prj_member WHERE status=1 and USER=#{_parameter} ) OR 'tone@talkweb.com.cn'=#{_parameter} ) </if> </select>
ORDER BY cast(${orderField} as unsigned) ${orderFieldBy}
WHERE ta.mainId = #{mainId} <if test="name != null and name != ''"> and r.name like '%${name}%' </if>
<update id="updateTaskCount" parameterType="map"> update tpm_require set <choose> <when test="operatorType=='insert'"> taskNum = taskNum + 1 </when> <otherwise> taskNum = taskNum - 1 </otherwise> </choose> where id = #{reqId} </update>