|
|
@ -70,26 +70,50 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
where route_id = #{routeId} and order_num = #{orderNum}
|
|
|
|
where route_id = #{routeId} and order_num = #{orderNum}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkProcessExists" parameterType="ProRouteProcess" resultMap="ProRouteProcessResult">
|
|
|
|
<!-- <select id="checkProcessExists" parameterType="ProRouteProcess" resultMap="ProRouteProcessResult">-->
|
|
|
|
select top 1 record_id, route_id, process_id, process_code, process_name,
|
|
|
|
<!-- select top 1 record_id, route_id, process_id, process_code, process_name,-->
|
|
|
|
order_num, next_process_id, next_process_code, next_process_name,
|
|
|
|
<!-- order_num, next_process_id, next_process_code, next_process_name,-->
|
|
|
|
link_type, default_pre_time, default_suf_time, color_code,key_flag,
|
|
|
|
<!-- link_type, default_pre_time, default_suf_time, color_code,key_flag,-->
|
|
|
|
remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by,
|
|
|
|
<!-- remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by,-->
|
|
|
|
update_time
|
|
|
|
<!-- update_time-->
|
|
|
|
|
|
|
|
<!-- from pro_route_process-->
|
|
|
|
|
|
|
|
<!-- where route_id = #{routeId} and process_id = #{processId}-->
|
|
|
|
|
|
|
|
<!-- </select>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkProcessExists" parameterType="ProRouteProcess" resultType="java.lang.String">
|
|
|
|
|
|
|
|
select process_code
|
|
|
|
from pro_route_process
|
|
|
|
from pro_route_process
|
|
|
|
where route_id = #{routeId} and process_id = #{processId}
|
|
|
|
where route_id = #{routeId} and process_id = #{processId}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkUpdateFlagUnique" parameterType="ProRouteProcess" resultMap="ProRouteProcessResult">
|
|
|
|
<select id="checkProcessIdExist" parameterType="ProRouteProcess" resultType="java.lang.String">
|
|
|
|
select top 1 record_id, route_id, process_id, process_code, process_name,
|
|
|
|
select record_id
|
|
|
|
order_num, next_process_id, next_process_code, next_process_name,
|
|
|
|
from pro_route_process
|
|
|
|
link_type, default_pre_time, default_suf_time, color_code,key_flag,
|
|
|
|
where route_id = #{routeId} and process_id = #{processId}
|
|
|
|
remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by,
|
|
|
|
</select>
|
|
|
|
update_time
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkProcessFlagExist" parameterType="ProRouteProcess" resultType="java.lang.String">
|
|
|
|
|
|
|
|
select record_id
|
|
|
|
from pro_route_process
|
|
|
|
from pro_route_process
|
|
|
|
where route_id = #{routeId} and key_flag = 'Y'
|
|
|
|
where route_id = #{routeId} and key_flag = 'Y'
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <select id="checkUpdateFlagUnique" parameterType="ProRouteProcess" resultMap="ProRouteProcessResult">-->
|
|
|
|
|
|
|
|
<!-- select top 1 record_id, route_id, process_id, process_code, process_name,-->
|
|
|
|
|
|
|
|
<!-- order_num, next_process_id, next_process_code, next_process_name,-->
|
|
|
|
|
|
|
|
<!-- link_type, default_pre_time, default_suf_time, color_code,key_flag,-->
|
|
|
|
|
|
|
|
<!-- remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by,-->
|
|
|
|
|
|
|
|
<!-- update_time-->
|
|
|
|
|
|
|
|
<!-- from pro_route_process-->
|
|
|
|
|
|
|
|
<!-- where route_id = #{routeId} and key_flag = 'Y'-->
|
|
|
|
|
|
|
|
<!-- </select>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkUpdateFlagUnique" parameterType="ProRouteProcess" resultType="java.lang.String">
|
|
|
|
|
|
|
|
select key_flag
|
|
|
|
|
|
|
|
from pro_route_process
|
|
|
|
|
|
|
|
where route_id = #{routeId}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="findPreProcess" parameterType="ProRouteProcess" resultMap="ProRouteProcessResult">
|
|
|
|
<select id="findPreProcess" parameterType="ProRouteProcess" resultMap="ProRouteProcessResult">
|
|
|
|
select top 1 record_id, route_id, process_id, process_code, process_name,
|
|
|
|
select top 1 record_id, route_id, process_id, process_code, process_name,
|
|
|
|
order_num, next_process_id, next_process_code, next_process_name,
|
|
|
|
order_num, next_process_id, next_process_code, next_process_name,
|
|
|
|