|
@@ -30,6 +30,18 @@
|
|
|
g.re_box_num AS "reBoxNum",
|
|
|
d.number AS "number"
|
|
|
</sql>
|
|
|
+ <sql id="aa">
|
|
|
+ distinct a.id AS "id",
|
|
|
+ a.create_by AS "createBy.id",
|
|
|
+ a.create_date AS "createDate",
|
|
|
+ a.update_by AS "updateBy.id",
|
|
|
+ a.update_date AS "updateDate",
|
|
|
+ a.del_flag AS "delFlag",
|
|
|
+ a.filing_batch AS "filingBatch",
|
|
|
+ a.process_instance_id AS "processinstanceId",
|
|
|
+ a.filing_status AS "filingStatus",
|
|
|
+ a.information AS "information"
|
|
|
+ </sql>
|
|
|
<insert id="insert">
|
|
|
insert into project_filingbatch
|
|
|
(id,create_by,create_date,update_by,update_date,del_flag,filing_batch,process_instance_id,information,filing_status)
|
|
@@ -120,13 +132,17 @@
|
|
|
<select id="findByFilingBatch"
|
|
|
resultType="com.jeeplus.modules.projectFilingBatch.entity.ProjectFilingBatch">
|
|
|
SELECT
|
|
|
- <include refid="filingBatchRelationColumns"/>
|
|
|
+ <include refid="aa"/>
|
|
|
FROM project_filingbatch a
|
|
|
- LEFT JOIN project_flingbatch_relation g on(a.filing_batch=g.filing_batch)
|
|
|
- LEFT JOIN rural_project_records r on(g.project_id=r.id)
|
|
|
- LEFT JOIN project_report_data d on(d.project_id=r.id)
|
|
|
WHERE a.filing_batch = #{filingBatch}
|
|
|
</select>
|
|
|
+<!-- <select id="findByFilingBatch"-->
|
|
|
+<!-- resultType="com.jeeplus.modules.projectFilingBatch.entity.ProjectFilingBatch">-->
|
|
|
+<!-- SELECT-->
|
|
|
+<!-- <include refid="filingBatchRelationColumns"/>-->
|
|
|
+<!-- FROM project_filingbatch a-->
|
|
|
+<!-- WHERE a.filing_batch = #{filingBatch}-->
|
|
|
+<!-- </select>-->
|
|
|
<delete id="delete">
|
|
|
UPDATE project_filingbatch SET
|
|
|
filing_status= 7
|