|
@@ -119,16 +119,7 @@
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <select id="selectByParam" resultMap="BaseResultMap">
|
|
|
|
|
- select
|
|
|
|
|
- <include refid="Base_Column_List" />
|
|
|
|
|
- from restrict_project
|
|
|
|
|
- where aid = #{aid,jdbcType=VARCHAR}
|
|
|
|
|
- and uid =#{uid,jdbcType=VARCHAR}
|
|
|
|
|
- <if test="pid != null">
|
|
|
|
|
- and pid = #{pid,jdbcType=VARCHAR}
|
|
|
|
|
- </if>
|
|
|
|
|
- </select>
|
|
|
|
|
|
|
+
|
|
|
<select id="selectByUidAndAid" resultType="com.goafanti.business.bo.OutRestrictProject">
|
|
<select id="selectByUidAndAid" resultType="com.goafanti.business.bo.OutRestrictProject">
|
|
|
select a.id pid ,b.id,a.bname projectName,b.type,b.lock_time lockTime,b.release_time releaseTime ,
|
|
select a.id pid ,b.id,a.bname projectName,b.type,b.lock_time lockTime,b.release_time releaseTime ,
|
|
|
c.nickname userName ,d.name adminName,b.create_time createTime,b.uid,b.aid
|
|
c.nickname userName ,d.name adminName,b.create_time createTime,b.uid,b.aid
|
|
@@ -191,16 +182,30 @@
|
|
|
left join user c on b.uid=c.id left join admin d on b.aid=d.id
|
|
left join user c on b.uid=c.id left join admin d on b.aid=d.id
|
|
|
where b.aid= #{aid,jdbcType=VARCHAR}
|
|
where b.aid= #{aid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+ <select id="selectByParam" resultMap="BaseResultMap">
|
|
|
|
|
+ select
|
|
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
|
|
+ from restrict_project
|
|
|
|
|
+ where uid =#{uid,jdbcType=VARCHAR}
|
|
|
|
|
+ <if test="aid != null">
|
|
|
|
|
+ and aid = #{aid,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="pid != null">
|
|
|
|
|
+ and pid = #{pid,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </select>
|
|
|
<select id="selectListByParam" resultType="com.goafanti.common.model.RestrictProject">
|
|
<select id="selectListByParam" resultType="com.goafanti.common.model.RestrictProject">
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
|
from restrict_project
|
|
from restrict_project
|
|
|
where type >0
|
|
where type >0
|
|
|
- and aid = #{aid,jdbcType=VARCHAR}
|
|
|
|
|
- and uid =#{uid,jdbcType=VARCHAR}
|
|
|
|
|
- <if test="pid !=null">
|
|
|
|
|
- and pid = #{pid,jdbcType=VARCHAR}
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+ where uid =#{uid,jdbcType=VARCHAR}
|
|
|
|
|
+ <if test="aid != null">
|
|
|
|
|
+ and aid = #{aid,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="pid != null">
|
|
|
|
|
+ and pid = #{pid,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<update id="updateRelease">
|
|
<update id="updateRelease">
|