You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
2.0 KiB
54 lines
2.0 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.spring.modules.part.mapper.WorkCenterMapper">
|
|
|
|
<select id="selectWorkCenter" resultType="com.spring.modules.part.vo.WorkCenterVo">
|
|
select
|
|
wc.site,
|
|
wc.work_center_no,
|
|
wc.work_center_desc,
|
|
wc.work_center_type,
|
|
wc.work_center_type_db,
|
|
wc.average_capacity,
|
|
wc.efficiency,
|
|
wc.utilization,
|
|
wc.capacity_type_db,
|
|
wc.capacity_type,
|
|
wc.um_id,
|
|
wc.active,
|
|
wc.remark,
|
|
wc.created_date,
|
|
wc.pro_line_no,
|
|
wc.can_create_new_roll_flag,
|
|
wc.need_setup_flag
|
|
from dbo.work_center wc where site = #{site} and active = 'Y'
|
|
<if test="workCenterNo != null and workCenterNo != ''">
|
|
and wc.work_center_no = #{workCenterNo}
|
|
</if>
|
|
<if test="workCenterDesc != null and workCenterDesc != ''">
|
|
and wc.work_center_desc like #{workCenterDesc}
|
|
</if>
|
|
<if test="workCenterType != null and workCenterType != ''">
|
|
and wc.work_center_type like #{workCenterType}
|
|
</if>
|
|
</select>
|
|
<select id="queryPartListAll" resultType="com.spring.modules.part.entity.WorkCenter">
|
|
Select work_center_no,
|
|
work_center_desc,
|
|
work_center_type
|
|
from work_center
|
|
<where>
|
|
active = 'Y'
|
|
<if test="data.site != null and data.site != ''">
|
|
and site = #{data.site}
|
|
</if>
|
|
<if test="data.workCenterNo != null and data.workCenterNo != ''">
|
|
and work_center_no like concat('%', #{data.workCenterNo}, '%')
|
|
</if>
|
|
<if test="data.workCenterDesc != null and data.workCenterDesc != ''">
|
|
and work_center_desc like concat('%', #{data.workCenterDesc}, '%')
|
|
</if>
|
|
</where>
|
|
</select>
|
|
</mapper>
|