|
|
@ -11,8 +11,9 @@
|
|
|
|
<result property="matter" column="matter"/>
|
|
|
|
<result property="matter" column="matter"/>
|
|
|
|
<result property="enterpriseId" column="enterprise_id"/>
|
|
|
|
<result property="enterpriseId" column="enterprise_id"/>
|
|
|
|
<result property="year" column="year"/>
|
|
|
|
<result property="year" column="year"/>
|
|
|
|
<result property="declarationTemplateType" column="declaration_template_type"/>
|
|
|
|
|
|
|
|
<result property="templateRecordId" column="template_record_id"/>
|
|
|
|
<result property="templateRecordId" column="template_record_id"/>
|
|
|
|
|
|
|
|
<result property="templateId" column="template_id"/>
|
|
|
|
|
|
|
|
<result property="creditCode" column="credit_code"/>
|
|
|
|
<result property="detailId" column="detail_id"/>
|
|
|
|
<result property="detailId" column="detail_id"/>
|
|
|
|
<result property="status" column="status"/>
|
|
|
|
<result property="status" column="status"/>
|
|
|
|
<result property="isDeleted" column="is_deleted"/>
|
|
|
|
<result property="isDeleted" column="is_deleted"/>
|
|
|
@ -35,7 +36,8 @@
|
|
|
|
<result property="type" column="type"/>
|
|
|
|
<result property="type" column="type"/>
|
|
|
|
<result property="road" column="road"/>
|
|
|
|
<result property="road" column="road"/>
|
|
|
|
<result property="responsibilityUnit" column="responsibility_unit"/>
|
|
|
|
<result property="responsibilityUnit" column="responsibility_unit"/>
|
|
|
|
<result property="declarationTemplateType" column="declaration_template_type"/>
|
|
|
|
<result property="templateId" column="template_id"/>
|
|
|
|
|
|
|
|
<result property="creditCode" column="credit_code"/>
|
|
|
|
<result property="templateRecordId" column="template_record_id"/>
|
|
|
|
<result property="templateRecordId" column="template_record_id"/>
|
|
|
|
<result property="detailId" column="detail_id"/>
|
|
|
|
<result property="detailId" column="detail_id"/>
|
|
|
|
<result property="status" column="status"/>
|
|
|
|
<result property="status" column="status"/>
|
|
|
@ -49,7 +51,7 @@
|
|
|
|
project_name,
|
|
|
|
project_name,
|
|
|
|
project_id,
|
|
|
|
project_id,
|
|
|
|
matter,
|
|
|
|
matter,
|
|
|
|
enterprise_id,jjh_project_id, year, template_record_id, declaration_template_type, detail_id, status, is_deleted, create_by, create_time, update_by, update_time, remark
|
|
|
|
enterprise_id,jjh_project_id,credit_code, year, template_record_id,template_id, detail_id, status, is_deleted, create_by, create_time, update_by, update_time, remark
|
|
|
|
from bms_declaration_records
|
|
|
|
from bms_declaration_records
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
@ -58,16 +60,15 @@
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
|
a.id,
|
|
|
|
a.id,
|
|
|
|
a.jjh_project_id,
|
|
|
|
a.jjh_project_id,
|
|
|
|
d.project_name,
|
|
|
|
|
|
|
|
a.project_id,
|
|
|
|
a.project_id,
|
|
|
|
|
|
|
|
a.credit_code,
|
|
|
|
a.enterprise_id,
|
|
|
|
a.enterprise_id,
|
|
|
|
c.LEVEL,
|
|
|
|
c.LEVEL,
|
|
|
|
a.YEAR,
|
|
|
|
a.YEAR,
|
|
|
|
c.type,
|
|
|
|
c.type,
|
|
|
|
a.template_record_id,
|
|
|
|
a.template_record_id,
|
|
|
|
c.id as template_id,
|
|
|
|
a.template_id,
|
|
|
|
c.responsibility_unit,
|
|
|
|
c.responsibility_unit,
|
|
|
|
a.declaration_template_type,
|
|
|
|
|
|
|
|
a.detail_id,
|
|
|
|
a.detail_id,
|
|
|
|
a.STATUS,
|
|
|
|
a.STATUS,
|
|
|
|
a.is_deleted,
|
|
|
|
a.is_deleted,
|
|
|
@ -77,29 +78,27 @@
|
|
|
|
a.update_time,
|
|
|
|
a.update_time,
|
|
|
|
a.remark,
|
|
|
|
a.remark,
|
|
|
|
b.enterprise_name,
|
|
|
|
b.enterprise_name,
|
|
|
|
f.road
|
|
|
|
f.road,
|
|
|
|
|
|
|
|
f.enterprise_directory
|
|
|
|
FROM
|
|
|
|
FROM
|
|
|
|
bms_declaration_records AS a
|
|
|
|
bms_declaration_records AS a
|
|
|
|
inner join bms_template_record f on a.template_record_id = f.id
|
|
|
|
inner join bms_template_record f on a.template_record_id = f.id
|
|
|
|
LEFT JOIN bms_enterprise_basic_info b ON a.enterprise_id = b.id
|
|
|
|
LEFT JOIN bms_template_info c on a.template_id = c.id
|
|
|
|
LEFT JOIN bms_template_info c on a.declaration_template_type = c.id
|
|
|
|
LEFT JOIN bms_enterprise_basic_info b ON a.credit_code = b.credit_code
|
|
|
|
LEFT JOIN bms_project_info d on a.project_id = d.id
|
|
|
|
|
|
|
|
left join sys_dict_data e on a.status = e.dict_value and e.dict_type='bms_approval_status'
|
|
|
|
left join sys_dict_data e on a.status = e.dict_value and e.dict_type='bms_approval_status'
|
|
|
|
|
|
|
|
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="projectName != null and projectName != ''">and a.project_name like concat('%', #{projectName},
|
|
|
|
<if test="enterpriseDirectory != null and enterpriseDirectory != ''">and f.enterprise_directory like
|
|
|
|
|
|
|
|
concat('%', #{enterpriseDirectory},
|
|
|
|
'%')
|
|
|
|
'%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="templateName != null and templateName != ''">and c.template_name like concat('%',
|
|
|
|
<if test="templateName != null and templateName != ''">and c.template_name like concat('%',
|
|
|
|
#{templateName}, '%')
|
|
|
|
#{templateName}, '%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="creditCode != null ">and a.credit_code = #{creditCode}</if>
|
|
|
|
<if test="enterpriseId != null ">and a.enterprise_id = #{enterpriseId}</if>
|
|
|
|
<if test="enterpriseId != null ">and a.enterprise_id = #{enterpriseId}</if>
|
|
|
|
<if test="level != null ">and c.level = #{level}</if>
|
|
|
|
<if test="level != null ">and c.level = #{level}</if>
|
|
|
|
<if test="year != null and year != ''">and year = #{year}</if>
|
|
|
|
<if test="year != null and year != ''">and year = #{year}</if>
|
|
|
|
<if test="type != null ">and c.type = #{type}</if>
|
|
|
|
|
|
|
|
<if test="responsibilityUnit != null ">and c.responsibility_unit = #{responsibilityUnit}</if>
|
|
|
|
<if test="responsibilityUnit != null ">and c.responsibility_unit = #{responsibilityUnit}</if>
|
|
|
|
<if test="declarationTemplateType != null ">and a.declaration_template_type = #{declarationTemplateType}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="status != null ">and a.status = #{status}</if>
|
|
|
|
<if test="status != null ">and a.status = #{status}</if>
|
|
|
|
<if test="statusStr != null and statusStr.size>0">
|
|
|
|
<if test="statusStr != null and statusStr.size>0">
|
|
|
|
and a.status in
|
|
|
|
and a.status in
|
|
|
@ -107,6 +106,12 @@
|
|
|
|
#{item}
|
|
|
|
#{item}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="statusChange == 0">
|
|
|
|
|
|
|
|
and a.status = 0
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="statusChange == 1">
|
|
|
|
|
|
|
|
and a.status != 0
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="isDeleted != null ">and a.is_deleted = #{isDeleted}</if>
|
|
|
|
<if test="isDeleted != null ">and a.is_deleted = #{isDeleted}</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
order by a.create_time desc, e.dict_sort desc
|
|
|
|
order by a.create_time desc, e.dict_sort desc
|
|
|
@ -121,28 +126,26 @@
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
|
d.approval_status,
|
|
|
|
d.approval_status,
|
|
|
|
a.matter,
|
|
|
|
a.matter,
|
|
|
|
b.project_name,
|
|
|
|
|
|
|
|
b.product_area,
|
|
|
|
|
|
|
|
c.enterprise_name,
|
|
|
|
c.enterprise_name,
|
|
|
|
c.id as enterpriseId,
|
|
|
|
c.id as enterpriseId,
|
|
|
|
b.support_methods,
|
|
|
|
|
|
|
|
b.start_time,
|
|
|
|
|
|
|
|
b.end_time,
|
|
|
|
|
|
|
|
a.create_time,
|
|
|
|
a.create_time,
|
|
|
|
a.`status`,
|
|
|
|
a.`status`,
|
|
|
|
a.template_record_id,
|
|
|
|
a.template_record_id,
|
|
|
|
a.detail_id,
|
|
|
|
a.detail_id,
|
|
|
|
a.id as declarationRecordsId,
|
|
|
|
a.id as declarationRecordsId,
|
|
|
|
e.template_id,
|
|
|
|
e.template_id,
|
|
|
|
|
|
|
|
e.enterprise_directory,
|
|
|
|
|
|
|
|
i.level,
|
|
|
|
|
|
|
|
i.responsibility_unit,
|
|
|
|
d.approval_time
|
|
|
|
d.approval_time
|
|
|
|
FROM
|
|
|
|
FROM
|
|
|
|
bms_declaration_records a
|
|
|
|
bms_declaration_records a
|
|
|
|
INNER JOIN bms_project_info b ON a.project_id = b.id
|
|
|
|
INNER JOIN bms_enterprise_basic_info c ON a.credit_code = c.credit_code
|
|
|
|
INNER JOIN bms_enterprise_basic_info c ON a.enterprise_id = c.id
|
|
|
|
|
|
|
|
INNER JOIN bms_template_record e on a.template_record_id = e.id
|
|
|
|
INNER JOIN bms_template_record e on a.template_record_id = e.id
|
|
|
|
|
|
|
|
INNER JOIN bms_template_info i on e.template_id = i.id
|
|
|
|
INNER JOIN bms_approval_info d on a.id=d.declaration_records_id and is_before_data = 0
|
|
|
|
INNER JOIN bms_approval_info d on a.id=d.declaration_records_id and is_before_data = 0
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="projectName != null and projectName != ''">and b.project_name like concat('%', #{projectName},
|
|
|
|
<if test="enterpriseDirectory != null and enterpriseDirectory != ''">and e.enterprise_directory like concat('%', #{enterpriseDirectory},
|
|
|
|
'%')
|
|
|
|
'%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">and c.enterprise_name like concat('%',
|
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">and c.enterprise_name like concat('%',
|
|
|
@ -182,16 +185,14 @@
|
|
|
|
resultType="com.ruoyi.jjh.declaration.entity.vo.BmsDeclarationRecordsQueryVo">
|
|
|
|
resultType="com.ruoyi.jjh.declaration.entity.vo.BmsDeclarationRecordsQueryVo">
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
|
a.id,
|
|
|
|
a.id,
|
|
|
|
d.project_name,
|
|
|
|
|
|
|
|
a.project_id,
|
|
|
|
a.project_id,
|
|
|
|
a.enterprise_id,
|
|
|
|
a.enterprise_id,
|
|
|
|
c.LEVEL,
|
|
|
|
c.LEVEL,
|
|
|
|
a.YEAR,
|
|
|
|
a.YEAR,
|
|
|
|
c.type,
|
|
|
|
c.type,
|
|
|
|
a.template_record_id,
|
|
|
|
a.template_record_id,
|
|
|
|
c.id as template_id,
|
|
|
|
a.template_id,
|
|
|
|
c.responsibility_unit,
|
|
|
|
c.responsibility_unit,
|
|
|
|
a.declaration_template_type,
|
|
|
|
|
|
|
|
a.detail_id,
|
|
|
|
a.detail_id,
|
|
|
|
a.STATUS,
|
|
|
|
a.STATUS,
|
|
|
|
a.is_deleted,
|
|
|
|
a.is_deleted,
|
|
|
@ -206,8 +207,7 @@
|
|
|
|
bms_declaration_records AS a
|
|
|
|
bms_declaration_records AS a
|
|
|
|
inner join bms_template_record f on a.template_record_id = f.id
|
|
|
|
inner join bms_template_record f on a.template_record_id = f.id
|
|
|
|
LEFT JOIN bms_enterprise_basic_info b ON a.enterprise_id = b.id
|
|
|
|
LEFT JOIN bms_enterprise_basic_info b ON a.enterprise_id = b.id
|
|
|
|
LEFT JOIN bms_template_info c on a.declaration_template_type = c.id
|
|
|
|
LEFT JOIN bms_template_info c on a.template_id = c.id
|
|
|
|
LEFT JOIN bms_project_info d on a.project_id = d.id
|
|
|
|
|
|
|
|
left join sys_dict_data e on a.status = e.dict_value and e.dict_type='bms_approval_status'
|
|
|
|
left join sys_dict_data e on a.status = e.dict_value and e.dict_type='bms_approval_status'
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
and a.status != 0
|
|
|
|
and a.status != 0
|
|
|
@ -222,8 +222,6 @@
|
|
|
|
<if test="year != null and year != ''">and year = #{year}</if>
|
|
|
|
<if test="year != null and year != ''">and year = #{year}</if>
|
|
|
|
<if test="type != null ">and c.type = #{type}</if>
|
|
|
|
<if test="type != null ">and c.type = #{type}</if>
|
|
|
|
<if test="responsibilityUnit != null ">and c.responsibility_unit = #{responsibilityUnit}</if>
|
|
|
|
<if test="responsibilityUnit != null ">and c.responsibility_unit = #{responsibilityUnit}</if>
|
|
|
|
<if test="declarationTemplateType != null ">and a.declaration_template_type = #{declarationTemplateType}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="statusStr != null and statusStr.size>0">
|
|
|
|
<if test="statusStr != null and statusStr.size>0">
|
|
|
|
and a.status in
|
|
|
|
and a.status in
|
|
|
|
<foreach collection="statusStr" item="item" separator="," open="(" close=")">
|
|
|
|
<foreach collection="statusStr" item="item" separator="," open="(" close=")">
|
|
|
@ -251,16 +249,14 @@
|
|
|
|
resultType="com.ruoyi.jjh.declaration.entity.vo.BmsDeclarationRecordsQueryVo">
|
|
|
|
resultType="com.ruoyi.jjh.declaration.entity.vo.BmsDeclarationRecordsQueryVo">
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
|
a.id,
|
|
|
|
a.id,
|
|
|
|
d.project_name,
|
|
|
|
|
|
|
|
a.project_id,
|
|
|
|
a.project_id,
|
|
|
|
a.enterprise_id,
|
|
|
|
a.enterprise_id,
|
|
|
|
c.LEVEL,
|
|
|
|
c.LEVEL,
|
|
|
|
a.YEAR,
|
|
|
|
a.YEAR,
|
|
|
|
c.type,
|
|
|
|
c.type,
|
|
|
|
a.template_record_id,
|
|
|
|
a.template_record_id,
|
|
|
|
c.id as template_id,
|
|
|
|
a.template_id,
|
|
|
|
c.responsibility_unit,
|
|
|
|
c.responsibility_unit,
|
|
|
|
a.declaration_template_type,
|
|
|
|
|
|
|
|
a.detail_id,
|
|
|
|
a.detail_id,
|
|
|
|
a.STATUS,
|
|
|
|
a.STATUS,
|
|
|
|
a.is_deleted,
|
|
|
|
a.is_deleted,
|
|
|
@ -275,8 +271,6 @@
|
|
|
|
bms_declaration_records AS a
|
|
|
|
bms_declaration_records AS a
|
|
|
|
inner join bms_template_record f on a.template_record_id = f.id
|
|
|
|
inner join bms_template_record f on a.template_record_id = f.id
|
|
|
|
LEFT JOIN bms_enterprise_basic_info b ON a.enterprise_id = b.id
|
|
|
|
LEFT JOIN bms_enterprise_basic_info b ON a.enterprise_id = b.id
|
|
|
|
LEFT JOIN bms_template_info c on a.declaration_template_type = c.id
|
|
|
|
|
|
|
|
LEFT JOIN bms_project_info d on a.project_id = d.id
|
|
|
|
|
|
|
|
left join sys_dict_data e on a.status = e.dict_value and e.dict_type='bms_approval_status'
|
|
|
|
left join sys_dict_data e on a.status = e.dict_value and e.dict_type='bms_approval_status'
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="list != null and list.size>0">
|
|
|
|
<if test="list != null and list.size>0">
|
|
|
@ -287,11 +281,27 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectET" resultType="com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords">
|
|
|
|
|
|
|
|
select * from bms_declaration_records a
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="templateId != null">
|
|
|
|
|
|
|
|
a.template_id = #{templateId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="list != null and list.size>0">
|
|
|
|
|
|
|
|
and a.credit_code in
|
|
|
|
|
|
|
|
<foreach collection="list" item="item" separator="," open="(" close=")">
|
|
|
|
|
|
|
|
#{item}
|
|
|
|
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertBmsDeclarationRecords" parameterType="com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords"
|
|
|
|
<insert id="insertBmsDeclarationRecords" parameterType="com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords"
|
|
|
|
useGeneratedKeys="true" keyProperty="id">
|
|
|
|
useGeneratedKeys="true" keyProperty="id">
|
|
|
|
insert into bms_declaration_records
|
|
|
|
insert into bms_declaration_records
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="creditCode != null">credit_code,</if>
|
|
|
|
|
|
|
|
<if test="templateId != null">template_id,</if>
|
|
|
|
<if test="projectName != null">project_name,</if>
|
|
|
|
<if test="projectName != null">project_name,</if>
|
|
|
|
<if test="projectId != null">project_id,</if>
|
|
|
|
<if test="projectId != null">project_id,</if>
|
|
|
|
<if test="matter != null">matter,</if>
|
|
|
|
<if test="matter != null">matter,</if>
|
|
|
@ -299,7 +309,6 @@
|
|
|
|
<if test="templateRecordId != null">template_record_id,</if>
|
|
|
|
<if test="templateRecordId != null">template_record_id,</if>
|
|
|
|
<if test="year != null">year,</if>
|
|
|
|
<if test="year != null">year,</if>
|
|
|
|
<if test="detailId != null">detail_id,</if>
|
|
|
|
<if test="detailId != null">detail_id,</if>
|
|
|
|
<if test="declarationTemplateType != null">declaration_template_type,</if>
|
|
|
|
|
|
|
|
<if test="status != null">status,</if>
|
|
|
|
<if test="status != null">status,</if>
|
|
|
|
<if test="isDeleted != null">is_deleted,</if>
|
|
|
|
<if test="isDeleted != null">is_deleted,</if>
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
@ -309,6 +318,8 @@
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="creditCode != null">#{creditCode},</if>
|
|
|
|
|
|
|
|
<if test="templateId != null">#{templateId},</if>
|
|
|
|
<if test="projectName != null">#{projectName},</if>
|
|
|
|
<if test="projectName != null">#{projectName},</if>
|
|
|
|
<if test="projectId != null">#{projectId},</if>
|
|
|
|
<if test="projectId != null">#{projectId},</if>
|
|
|
|
<if test="matter != null">#{matter},</if>
|
|
|
|
<if test="matter != null">#{matter},</if>
|
|
|
@ -316,7 +327,6 @@
|
|
|
|
<if test="templateRecordId != null">#{templateRecordId},</if>
|
|
|
|
<if test="templateRecordId != null">#{templateRecordId},</if>
|
|
|
|
<if test="year != null">#{year},</if>
|
|
|
|
<if test="year != null">#{year},</if>
|
|
|
|
<if test="detailId != null">#{detailId},</if>
|
|
|
|
<if test="detailId != null">#{detailId},</if>
|
|
|
|
<if test="declarationTemplateType != null">#{declarationTemplateType},</if>
|
|
|
|
|
|
|
|
<if test="status != null">#{status},</if>
|
|
|
|
<if test="status != null">#{status},</if>
|
|
|
|
<if test="isDeleted != null">#{isDeleted},</if>
|
|
|
|
<if test="isDeleted != null">#{isDeleted},</if>
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
@ -330,6 +340,7 @@
|
|
|
|
<update id="updateBmsDeclarationRecords" parameterType="com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords">
|
|
|
|
<update id="updateBmsDeclarationRecords" parameterType="com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords">
|
|
|
|
update bms_declaration_records
|
|
|
|
update bms_declaration_records
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="templateId != null">template_id = #{templateId},</if>
|
|
|
|
<if test="projectName != null">project_name = #{projectName},</if>
|
|
|
|
<if test="projectName != null">project_name = #{projectName},</if>
|
|
|
|
<if test="projectId != null">project_id = #{projectId},</if>
|
|
|
|
<if test="projectId != null">project_id = #{projectId},</if>
|
|
|
|
<if test="matter != null">matter = #{matter},</if>
|
|
|
|
<if test="matter != null">matter = #{matter},</if>
|
|
|
@ -337,7 +348,6 @@
|
|
|
|
<if test="templateRecordId != null">template_record_id = #{templateRecordId},</if>
|
|
|
|
<if test="templateRecordId != null">template_record_id = #{templateRecordId},</if>
|
|
|
|
<if test="year != null">year = #{year},</if>
|
|
|
|
<if test="year != null">year = #{year},</if>
|
|
|
|
<if test="detailId != null">detail_id = #{detailId},</if>
|
|
|
|
<if test="detailId != null">detail_id = #{detailId},</if>
|
|
|
|
<if test="declarationTemplateType != null">declaration_template_type = #{declarationTemplateType},</if>
|
|
|
|
|
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
|
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
|
|
|
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
@ -345,6 +355,7 @@
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
|
|
|
|
<if test="creditCode != null">credit_code = #{creditCode},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where id = #{id}
|
|
|
|
where id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|