|
@@ -11,7 +11,8 @@
|
|
|
a.filing_batch AS "filingBatch",
|
|
|
a.process_instance_id AS "processinstanceId",
|
|
|
a.information AS "information",
|
|
|
- a.filing_status AS "filingStatus"
|
|
|
+ a.filing_status AS "filingStatus",
|
|
|
+ a.filing_name as "filingName"
|
|
|
</sql>
|
|
|
<sql id="filingBatchRelationColumns">
|
|
|
distinct a.id AS "id",
|
|
@@ -23,6 +24,7 @@
|
|
|
a.filing_batch AS "filingBatch",
|
|
|
a.process_instance_id AS "processinstanceId",
|
|
|
a.filing_status AS "filingStatus",
|
|
|
+ a.filing_name as "filingName",
|
|
|
a.information AS "information",
|
|
|
g.project_id AS "projectId",
|
|
|
g.status AS "status",
|
|
@@ -40,7 +42,8 @@
|
|
|
a.filing_batch AS "filingBatch",
|
|
|
a.process_instance_id AS "processinstanceId",
|
|
|
a.filing_status AS "filingStatus",
|
|
|
- a.information AS "information"
|
|
|
+ a.information AS "information",
|
|
|
+ a.filing_name as "filingName"
|
|
|
</sql>
|
|
|
<insert id="insert">
|
|
|
insert into project_filingbatch
|
|
@@ -55,7 +58,8 @@
|
|
|
information,
|
|
|
filing_status,
|
|
|
company_id,
|
|
|
- office_id
|
|
|
+ office_id,
|
|
|
+ filing_name
|
|
|
)
|
|
|
VALUES
|
|
|
(
|
|
@@ -70,7 +74,8 @@
|
|
|
#{information},
|
|
|
#{filingStatus},
|
|
|
#{company.id},
|
|
|
- #{office.id}
|
|
|
+ #{office.id},
|
|
|
+ #{filingName}
|
|
|
)
|
|
|
</insert>
|
|
|
<update id="update">
|
|
@@ -94,6 +99,9 @@
|
|
|
<if test="updateDate!=null">
|
|
|
filing_status=#{filingStatus}
|
|
|
</if>
|
|
|
+ <if test="filingName!=null and filingName != ''">
|
|
|
+ ,filing_name=#{filingName}
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id =#{id}
|
|
|
</update>
|
|
@@ -105,6 +113,7 @@
|
|
|
</update>
|
|
|
<select id="queryCount" resultType="int">
|
|
|
SELECT count(DISTINCT a.id) FROM project_filingbatch a
|
|
|
+ left join sys_user su on su.id = a.create_by
|
|
|
<where>
|
|
|
<if test="filingBatch!=null and filingBatch!=''">
|
|
|
and a.filing_batch like concat('%',#{filingBatch},'%')
|
|
@@ -112,6 +121,15 @@
|
|
|
<if test="filingStatus!=null">
|
|
|
and a.filing_status = #{filingStatus}
|
|
|
</if>
|
|
|
+ <if test="(createId != null and createId != '') or (createNameStr != null and createNameStr != '')">
|
|
|
+ AND (a.create_by = #{createId} or su.name = #{createNameStr})
|
|
|
+ </if>
|
|
|
+ <if test="beginDate !=null">
|
|
|
+ AND a.create_date >= #{beginDate}
|
|
|
+ </if>
|
|
|
+ <if test="endDate !=null">
|
|
|
+ AND a.create_date < #{endDate}
|
|
|
+ </if>
|
|
|
AND a.del_flag='0'
|
|
|
<if test="sqlMap.dsf !=null and sqlMap.dsf!=''">
|
|
|
${sqlMap.dsf}
|
|
@@ -119,14 +137,27 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
<select id="findList" resultType="projectFilingBatch" >
|
|
|
- SELECT <include refid="projectFilingBatchColumns"/> FROM project_filingbatch a
|
|
|
+ SELECT
|
|
|
+ <include refid="projectFilingBatchColumns"/>
|
|
|
+ FROM project_filingbatch a
|
|
|
+ left join sys_user su on su.id = a.create_by
|
|
|
<where>
|
|
|
- <if test="filingBatch!=null and filingBatch!=''">
|
|
|
- and a.filing_batch like concat('%',#{filingBatch},'%')
|
|
|
+ <if test="filingName!=null and filingName!=''">
|
|
|
+ and a.filing_name like concat('%',#{filingName},'%')
|
|
|
</if>
|
|
|
<if test="filingStatus!=null">
|
|
|
and a.filing_status = #{filingStatus}
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="(createId != null and createId != '') or (createNameStr != null and createNameStr != '')">
|
|
|
+ AND (a.create_by = #{createId} or su.name = #{createNameStr})
|
|
|
+ </if>
|
|
|
+ <if test="beginDate !=null">
|
|
|
+ AND a.create_date >= #{beginDate}
|
|
|
+ </if>
|
|
|
+ <if test="endDate !=null">
|
|
|
+ AND a.create_date < #{endDate}
|
|
|
+ </if>
|
|
|
AND a.del_flag='0'
|
|
|
<if test="sqlMap.dsf !=null and sqlMap.dsf!=''">
|
|
|
${sqlMap.dsf}
|