|
@@ -291,4 +291,94 @@
|
|
|
cw.report_type,
|
|
|
cw.report_review
|
|
|
</sql>
|
|
|
+
|
|
|
+ <update id="updateInfoById">
|
|
|
+ UPDATE cw_project_report_cancell_apply_archived
|
|
|
+ SET
|
|
|
+ <if test="remarks != null and remarks != ''">
|
|
|
+ remarks = #{remarks},
|
|
|
+ </if>
|
|
|
+ <if test="projectId != null and projectId != ''">
|
|
|
+ project_id = #{projectId},
|
|
|
+ </if>
|
|
|
+ <if test="reportNum != null and reportNum != ''">
|
|
|
+ report_num = #{reportNum},
|
|
|
+ </if>
|
|
|
+ <if test="papersNum != null and papersNum != ''">
|
|
|
+ papers_num = #{papersNum},
|
|
|
+ </if>
|
|
|
+ <if test="year != null and year != ''">
|
|
|
+ `year` = #{year},
|
|
|
+ </if>
|
|
|
+ <if test="number != null and number != ''">
|
|
|
+ `number`'' = #{number},
|
|
|
+ </if>
|
|
|
+ <if test="isNumber != null and isNumber != ''">
|
|
|
+ is_number = #{isNumber},
|
|
|
+ </if>
|
|
|
+ <if test="auditDate != null">
|
|
|
+ audit_date = #{auditDate},
|
|
|
+ </if>
|
|
|
+ <if test="procInsId != null and procInsId != ''">
|
|
|
+ proc_ins_id = #{procInsId},
|
|
|
+ </if>
|
|
|
+ <if test="processDefinitionId != null and processDefinitionId != ''">
|
|
|
+ process_definition_id = #{processDefinitionId},
|
|
|
+ </if>
|
|
|
+ <if test="applyFileType != null and applyFileType != ''">
|
|
|
+ apply_file_type = #{applyFileType},
|
|
|
+ </if>
|
|
|
+ <if test="fileNumber != null and fileNumber != ''">
|
|
|
+ file_number = #{fileNumber},
|
|
|
+ </if>
|
|
|
+ <if test="reportId != null and reportId != ''">
|
|
|
+ report_id = #{reportId},
|
|
|
+ </if>
|
|
|
+ <if test="reportRemarks != null and reportRemarks != ''">
|
|
|
+ report_remarks = #{reportRemarks},
|
|
|
+ </if>
|
|
|
+ <if test="carchivedType != null and carchivedType != ''">
|
|
|
+ carchived_type = #{carchivedType},
|
|
|
+ </if>
|
|
|
+ <if test="archiveId != null and archiveId != ''">
|
|
|
+ archive_id = #{archiveId},
|
|
|
+ </if>
|
|
|
+ update_by_id = #{updateById},
|
|
|
+ update_time = #{updateTime}
|
|
|
+ WHERE
|
|
|
+ id = #{id}
|
|
|
+ AND del_flag = 0
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <select id="getById" resultType="com.jeeplus.finance.reportCancellApplyArchived.domain.CwProjectReportApplyArchive">
|
|
|
+ SELECT
|
|
|
+ id,
|
|
|
+ remarks,
|
|
|
+ project_id,
|
|
|
+ report_num,
|
|
|
+ papers_num,
|
|
|
+ YEAR,
|
|
|
+ number,
|
|
|
+ is_number,
|
|
|
+ audit_date,
|
|
|
+ proc_ins_id,
|
|
|
+ process_definition_id,
|
|
|
+ apply_file_type,
|
|
|
+ file_number,
|
|
|
+ report_id,
|
|
|
+ report_remarks,
|
|
|
+ carchived_type,
|
|
|
+ archive_id,
|
|
|
+ create_time,
|
|
|
+ create_by_id,
|
|
|
+ update_time,
|
|
|
+ update_by_id,
|
|
|
+ del_flag,
|
|
|
+ tenant_id
|
|
|
+ FROM
|
|
|
+ cw_project_report_cancell_apply_archived
|
|
|
+ WHERE
|
|
|
+ id = #{id}
|
|
|
+ AND del_flag = 0
|
|
|
+ </select>
|
|
|
</mapper>
|