| | |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="routeCode" column="route_code" /> |
| | | <result property="standardTime" column="standard_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsStandardProcessRouteLineVo"> |
| | | select id, route_id, route_num, route_name, start_date, end_date, create_time, org_code, |
| | | shop_code, productivity_model, design_capacity, del_flag, create_by, update_by, |
| | | update_time |
| | | update_time, route_code, standard_time |
| | | from aps_standard_process_route_line |
| | | </sql> |
| | | |
| | | <select id="selectApsStandardProcessRouteLineList" parameterType="ApsStandardProcessRouteLine" resultMap="ApsStandardProcessRouteLineResult"> |
| | | <include refid="selectApsStandardProcessRouteLineVo"/> |
| | | <where> |
| | | <where> |
| | | <if test="routeId != null and routeId != ''"> and route_id = #{routeId}</if> |
| | | <if test="routeNum != null and routeNum != ''"> and route_num = #{routeNum}</if> |
| | | <if test="routeName != null and routeName != ''"> and route_name = #{routeName}</if> |
| | |
| | | <if test="designCapacity != null and designCapacity != ''"> and design_capacity = #{designCapacity}</if> |
| | | and del_flag = '0' |
| | | </where> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectApsStandardProcessRouteLineById" parameterType="Long" resultMap="ApsStandardProcessRouteLineResult"> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="selectTotalStandTime" parameterType="String" resultMap="ApsStandardProcessRouteLineResult"> |
| | | select sum(standard_time) as standard_time |
| | | from aps_standard_process_route_line |
| | | where route_id = #{routeId} |
| | | ; |
| | | </select> |
| | | </mapper> |