|
|
|
|
@ -15,12 +15,13 @@
|
|
|
|
|
<result property="attr2" column="attr2"/>
|
|
|
|
|
<result property="attr3" column="attr3"/>
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
<result property="delFlag" column="del_flag"/>
|
|
|
|
|
<result property="factoryCode" column="factory_code"/>
|
|
|
|
|
<result property="storageId" column="storage_id" />
|
|
|
|
|
<result property="nickName" column="nick_name" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectEquSparepartsInOutVo">
|
|
|
|
|
@ -28,7 +29,27 @@
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectEquSparepartsInOutList" parameterType="EquSparepartsInOut" resultMap="EquSparepartsInOutResult">
|
|
|
|
|
<include refid="selectEquSparepartsInOutVo"/>
|
|
|
|
|
SELECT
|
|
|
|
|
id,
|
|
|
|
|
in_out_type,
|
|
|
|
|
order_no,
|
|
|
|
|
spare_code,
|
|
|
|
|
spare_name,
|
|
|
|
|
amount,
|
|
|
|
|
attr1,
|
|
|
|
|
attr2,
|
|
|
|
|
attr3,
|
|
|
|
|
esio.create_by,
|
|
|
|
|
esio.create_time,
|
|
|
|
|
esio.update_by,
|
|
|
|
|
esio.update_time,
|
|
|
|
|
esio.del_flag,
|
|
|
|
|
factory_code,
|
|
|
|
|
storage_id,
|
|
|
|
|
su.nick_name
|
|
|
|
|
FROM
|
|
|
|
|
equ_spareparts_in_out esio
|
|
|
|
|
LEFT JOIN lanju_op_cloud.dbo.sys_user su ON esio.create_by = su.user_name
|
|
|
|
|
<where>
|
|
|
|
|
<if test="inOutType != null and inOutType != ''">and in_out_type = #{inOutType}</if>
|
|
|
|
|
<if test="orderNo != null and orderNo != ''">and order_no = #{orderNo}</if>
|
|
|
|
|
@ -38,13 +59,13 @@
|
|
|
|
|
<if test="attr1 != null and attr1 != ''">and attr1 = #{attr1}</if>
|
|
|
|
|
<if test="attr2 != null and attr2 != ''">and attr2 = #{attr2}</if>
|
|
|
|
|
<if test="attr3 != null and attr3 != ''">and attr3 = #{attr3}</if>
|
|
|
|
|
<if test="createTime != null ">and create_time = #{createTime}</if>
|
|
|
|
|
<if test="updateBy != null and updateBy != ''">and update_by = #{updateBy}</if>
|
|
|
|
|
<if test="updateTime != null ">and update_time = #{updateTime}</if>
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|
<if test="createTime != null ">and esio.create_time = #{createTime}</if>
|
|
|
|
|
<if test="updateBy != null and updateBy != ''">and esio.update_by = #{updateBy}</if>
|
|
|
|
|
<if test="updateTime != null ">and esio.update_time = #{updateTime}</if>
|
|
|
|
|
and esio.del_flag = '0'
|
|
|
|
|
<if test="factoryCode != null and factoryCode != ''">and factory_code = #{factoryCode}</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by create_time desc
|
|
|
|
|
order by esio.create_time desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectEquSparepartsInOutById" parameterType="String" resultMap="EquSparepartsInOutResult">
|
|
|
|
|
|