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.
36 lines
1.8 KiB
36 lines
1.8 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.xjfast.mapper.ShopOrderRequisitionMapper">
|
|
<resultMap id="BaseResultMap" type="com.xjfast.entity.ShopOrderRequisition">
|
|
<result column="id" jdbcType="INTEGER" property="id"/>
|
|
<result column="site" jdbcType="VARCHAR" property="site"/>
|
|
<result column="part_no" jdbcType="VARCHAR" property="partNo"/>
|
|
<result column="need_date" jdbcType="TIMESTAMP" property="needDate"/>
|
|
<result column="status" jdbcType="VARCHAR" property="status"/>
|
|
<result column="qty_required" jdbcType="FLOAT" property="qtyRequired"/>
|
|
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
|
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate"/>
|
|
<result column="excuted_date" jdbcType="TIMESTAMP" property="excutedDate"/>
|
|
<result column="excuted_by" jdbcType="VARCHAR" property="excutedBy"/>
|
|
</resultMap>
|
|
|
|
<select id="searchShopOrderRequisitionList" resultType="com.xjfast.entity.vo.ShopOrderRequisitionVo"
|
|
parameterType="com.xjfast.entity.query.ShopOrderRequisitionQuery">
|
|
-- 查看生产计划单
|
|
SELECT sor.id,sor.site,sor.part_no,p.PartDescription AS
|
|
partDescription,sor.qty_required,sor.need_date,sor.created_by,sor.created_date,status
|
|
FROM shop_order_requisition sor
|
|
LEFT JOIN Part p ON (p.PartNo = part_no)
|
|
<where>
|
|
sor.status = '创建'
|
|
<if test="partNo != null and partNo != ''">
|
|
and sor.part_no = #{partNo}
|
|
</if>
|
|
<if test="partDescription != null and partDescription != ''">
|
|
and p.PartDescription = #{partDescription}
|
|
</if>
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</mapper>
|