@ -400,7 +400,20 @@
</trim>
</trim>
where id = #{id}
where id = #{id}
</update>
</update>
<update id= "updateEndTime" >
UPDATE b_enterprise_new a
INNER JOIN (
SELECT
USC_CODE,
MAX_EXAMINE_END_TIME
FROM
( SELECT ROW_NUMBER ( ) over ( PARTITION BY USC_CODE ORDER BY EXAMINE_END_TIME DESC ) rowId, USC_CODE, EXAMINE_END_TIME AS MAX_EXAMINE_END_TIME FROM sz_enfor_examine ) S
WHERE
rowId = 1
) c
ON a.enterprise_id = c.USC_CODE
SET a.EXAMINE_END_TIME = c.MAX_EXAMINE_END_TIME
</update>
<insert id= "insertPlan" parameterType= "BPlanEnterpriseRequest" useGeneratedKeys= "true" keyProperty= "id" >
<insert id= "insertPlan" parameterType= "BPlanEnterpriseRequest" useGeneratedKeys= "true" keyProperty= "id" >