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.
50 lines
2.0 KiB
50 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.xujie.sys.modules.fanuc.dao.FanncGroupMapper">
|
|
|
|
|
|
<select id="queryWorkCenterProdline" resultType="com.xujie.sys.modules.fanuc.entity.FanucGroupEntity">
|
|
SELECT wcp.id,
|
|
wcp.site,
|
|
wcp.prod_line_no,
|
|
wcp.prod_line_desc,
|
|
wcp.bu_no,
|
|
wcp.active,
|
|
wcp.create_by,
|
|
wcp.create_date,
|
|
wcp.update_by,
|
|
wcp.update_date,
|
|
wcp.remake,
|
|
wcp.status,
|
|
bu.id as buId,
|
|
bu.bu_desc
|
|
FROM work_center_prodline wcp
|
|
left join BU bu on wcp.site = bu.site and wcp.bu_no = bu.bu_no
|
|
<where>
|
|
<if test="fanucGroup.buId != null">
|
|
and bu.id = #{fanucGroup.buId}
|
|
</if>
|
|
<if test="fanucGroup.site != null and fanucGroup.site != ''">
|
|
and wcp.site = #{fanucGroup.site}
|
|
</if>
|
|
<if test="fanucGroup.prodLineNo != null and fanucGroup.prodLineNo != ''">
|
|
and wcp.prod_line_no like #{fanucGroup.prodLineNo}
|
|
</if>
|
|
<if test="fanucGroup.prodLineDesc != null and fanucGroup.prodLineDesc != ''">
|
|
and wcp.prod_line_desc like #{fanucGroup.prodLineDesc}
|
|
</if>
|
|
<if test="fanucGroup.buNo != null and fanucGroup.buNo != ''">
|
|
and wcp.bu_no like #{fanucGroup.buNo}
|
|
</if>
|
|
<if test="fanucGroup.status != null and fanucGroup.status != ''">
|
|
and wcp.status = #{fanucGroup.status}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="queryBuById" resultType="com.xujie.sys.modules.base.entity.Bu">
|
|
select id, site, bu_no, bu_desc, remark, active
|
|
from BU
|
|
where id = #{id}
|
|
</select>
|
|
</mapper>
|