Merge branch 'develop_migration' into 'develop_master'
feat: There is no way the, xxx See merge request LiuChao/foton-slrs-system-rest!345
This commit is contained in:
@@ -221,34 +221,34 @@
|
||||
left join sar_bussioness_stand on sar_bussioness_stand.ID = es_revise_plan.rqb_json
|
||||
<where>
|
||||
<if test="esName != null and esName != ''">
|
||||
and es_name like concat('%',#{esName},'%')
|
||||
and es_revise_plan.es_name like concat('%',#{esName},'%')
|
||||
</if>
|
||||
<if test="area != null and area != ''">
|
||||
and area = #{area}
|
||||
and es_revise_plan.area = #{area}
|
||||
</if>
|
||||
<if test="planStatusList != null">
|
||||
and plan_status in
|
||||
and es_revise_plan.plan_status in
|
||||
<foreach collection="planStatusList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="reviseStatus != null and reviseStatus != ''">
|
||||
and revise_status = #{reviseStatus}
|
||||
and es_revise_plan.revise_status = #{reviseStatus}
|
||||
</if>
|
||||
<if test="drafter != null and drafter != ''">
|
||||
and drafter = #{drafter}
|
||||
and es_revise_plan.drafter = #{drafter}
|
||||
</if>
|
||||
<if test="resPerson != null and resPerson != ''">
|
||||
and res_person = #{resPerson}
|
||||
and es_revise_plan.res_person = #{resPerson}
|
||||
</if>
|
||||
<if test="wgLeader != null and wgLeader != ''">
|
||||
and wg_leader = #{wgLeader}
|
||||
and es_revise_plan.wg_leader = #{wgLeader}
|
||||
</if>
|
||||
<if test="draftTime != null">
|
||||
and DATE_FORMAT(draft_time,'%Y-%m-%d')=DATE_FORMAT(#{draftTime},'%Y-%m-%d')
|
||||
and DATE_FORMAT(es_revise_plan.draft_time,'%Y-%m-%d')=DATE_FORMAT(#{draftTime},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="releaseTime != null">
|
||||
and DATE_FORMAT(release_time,'%Y-%m-%d')=DATE_FORMAT(#{releaseTime},'%Y-%m-%d')
|
||||
and DATE_FORMAT(es_revise_plan.release_time,'%Y-%m-%d')=DATE_FORMAT(#{releaseTime},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="unit != null and unit != ''">
|
||||
and (select group_concat(ts_institution.name) from ts_institution where find_in_set(ts_institution.id,unit)) like concat('%',#{unit},'%')
|
||||
|
||||
+10
@@ -170,6 +170,8 @@
|
||||
<if test="standSort != null" >stand_sort,</if>
|
||||
<if test="standYear != null" >stand_year,</if>
|
||||
<if test="standNumber != null" >stand_number,</if>
|
||||
<if test="reviseStatus != null" >REVISE_STATUS,</if>
|
||||
<if test="standSn != null" >STAND_SN,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
@@ -190,6 +192,8 @@
|
||||
<if test="standSort != null" >#{standSort, jdbcType=VARCHAR},</if>
|
||||
<if test="standYear != null" >#{standYear, jdbcType=VARCHAR},</if>
|
||||
<if test="standNumber != null" >#{standNumber, jdbcType=VARCHAR},</if>
|
||||
<if test="reviseStatus != null" >#{reviseStatus, jdbcType=VARCHAR},</if>
|
||||
<if test="standSn != null" >#{standSn, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -322,6 +326,12 @@
|
||||
|
||||
</select>
|
||||
|
||||
<select id="getStandInfoByReviseStatus" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select LPAD(MAX(DISTINCT CAST(STAND_SN AS decimal(9)))+1, 3, 0) AS newStandSn from sar_bussioness_stand
|
||||
where revise_status = #{value} and valid_flag=0
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_BUSSIONESS_STAND
|
||||
|
||||
Reference in New Issue
Block a user