wuxw
2022-07-19 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54
java110-db/src/main/resources/mapper/oa/OaWorkflowFormServiceDaoImplMapper.xml
@@ -73,7 +73,7 @@
            , t.table_name= #{tableName}
        </if>
        where 1=1
            and t.form_id= #{formId}
        and t.form_id= #{formId}
    </update>
@@ -117,14 +117,13 @@
    </update>
    <!-- 查询OA表单数量 add by wuxw 2018-07-03 -->
    <select id="queryOaWorkflowFormDataCount" parameterType="Map" resultType="Map">
        select count(1) count
        from #{tableName} t
        from ${tableName} t
        where 1 =1
            and t.store_id = #{storeId}
            and t.status_cd= '0'
        and t.store_id = #{storeId}
        and t.status_cd= '0'
        <if test="startTime !=null and startTime != ''">
            and t.create_time &gt; #{startTime}
        </if>
@@ -142,7 +141,7 @@
    <!-- 查询OA表单数量 add by wuxw 2018-07-03 -->
    <select id="queryOaWorkflowFormDatas" parameterType="Map" resultType="Map">
        select t.*
        from #{tableName} t
        from ${tableName} t
        where 1 =1
        and t.store_id = #{storeId}
        and t.status_cd= '0'
@@ -155,6 +154,12 @@
        <if test="id !=null and id != ''">
            and t.id = #{id}
        </if>
        <if test="ids != null">
            and t.id in
            <foreach collection="ids" item="item" open="(" close=")" separator=",">
                #{item}
            </foreach>
        </if>
        <if test="createUserName !=null and createUserName != ''">
            and t.create_user_name = #{createUserName}
        </if>
@@ -164,4 +169,35 @@
        </if>
    </select>
    <!-- 保存表单数据 -->
    <insert id="saveOaWorkflowFormDataInfo" parameterType="Map">
        insert into ${tableName} (
        <foreach collection="columns" item="item" separator=",">
            ${item}
        </foreach>
        ,id,create_user_id,create_user_name,state,store_id
        )values(
        <foreach collection="values" item="valueItem" separator=",">
            #{valueItem}
        </foreach>
        ,#{id},#{createUserId},#{createUserName},#{state},#{storeId}
        )
    </insert>
    <!-- 修改信息 -->
    <update id="updateOaWorkflowFormData" parameterType="Map">
        update ${tableName} t set t.state = #{state}
        where t.id = #{id}
    </update>
    <!-- 修改信息 -->
    <update id="updateOaWorkflowFormDataAll" parameterType="Map">
        update ${tableName} set
            <foreach collection="columns" item="item" separator=",">
                ${item}
            </foreach>
        where id = #{id}
    </update>
</mapper>