综合素质申请
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.srs.comprehensive.mapper.CphAuditDetailsMapper">
|
||||
|
||||
|
||||
<resultMap type="CphAuditDetails" id="CphAuditDetailsResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="projectName" column="project_name" />
|
||||
@@ -43,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectCphAuditDetailsList" parameterType="CphAuditDetails" resultMap="CphAuditDetailsResult">
|
||||
<include refid="selectCphAuditDetailsVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="projectName != null and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
|
||||
<if test="submitterId != null "> and submitter_id = #{submitterId}</if>
|
||||
<if test="submitterName != null and submitterName != ''"> and submitter_name like concat('%', #{submitterName}, '%')</if>
|
||||
@@ -101,7 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
order by stu_no,id desc
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="selectCphAuditDetailsById" parameterType="Long" resultMap="CphAuditDetailsResult">
|
||||
<include refid="selectCphAuditDetailsVo"/>
|
||||
where ad.id = #{id}
|
||||
@@ -111,7 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="selectCphAuditDetailsVo"/>
|
||||
where ad.project_id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertCphAuditDetails" parameterType="CphAuditDetails" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into cph_audit_details
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -159,9 +159,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCphAuditDetailsByIds" parameterType="String">
|
||||
delete from cph_audit_details where id in
|
||||
delete from cph_audit_details where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
<update id="cancelAudiByIds" parameterType="String">
|
||||
update cph_audit_details set status_code=1 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user