merge: 合并LMS备货区域功能
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
<?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="cn.code.nl.module.lms.dal.mysql.stockingivt.StockingIvtMapper">
|
||||
|
||||
<sql id="stockingIvtColumns">
|
||||
ivt_id, point_code, point_name, vehicle_code, product_area, point_type,
|
||||
ivt_status, point_location, sort_seq, is_used, remark,
|
||||
creator, create_time, updater, update_time
|
||||
</sql>
|
||||
|
||||
<select id="selectStockingIvtPage"
|
||||
resultType="cn.code.nl.module.lms.dal.dataobject.stockingivt.StockingIvtDO">
|
||||
SELECT <include refid="stockingIvtColumns"/>
|
||||
FROM lms_ivt_stockingivt
|
||||
<where>
|
||||
<if test="reqVO.pointCode != null and reqVO.pointCode != ''">
|
||||
point_code LIKE CONCAT('%', #{reqVO.pointCode}, '%')
|
||||
</if>
|
||||
<if test="reqVO.pointName != null and reqVO.pointName != ''">
|
||||
AND point_name LIKE CONCAT('%', #{reqVO.pointName}, '%')
|
||||
</if>
|
||||
<if test="reqVO.vehicleCode != null and reqVO.vehicleCode != ''">
|
||||
AND vehicle_code LIKE CONCAT('%', #{reqVO.vehicleCode}, '%')
|
||||
</if>
|
||||
<if test="reqVO.pointType != null and reqVO.pointType != ''">
|
||||
AND point_type = #{reqVO.pointType}
|
||||
</if>
|
||||
<if test="reqVO.ivtStatus != null and reqVO.ivtStatus != ''">
|
||||
AND ivt_status = #{reqVO.ivtStatus}
|
||||
</if>
|
||||
<if test="reqVO.isUsed != null and reqVO.isUsed != ''">
|
||||
AND is_used = #{reqVO.isUsed}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY ivt_id DESC
|
||||
</select>
|
||||
|
||||
<select id="selectStockingIvtById"
|
||||
resultType="cn.code.nl.module.lms.dal.dataobject.stockingivt.StockingIvtDO">
|
||||
SELECT <include refid="stockingIvtColumns"/>
|
||||
FROM lms_ivt_stockingivt
|
||||
WHERE ivt_id = #{ivtId}
|
||||
</select>
|
||||
|
||||
<update id="updateStockingIvt">
|
||||
UPDATE lms_ivt_stockingivt
|
||||
SET vehicle_code = #{vehicleCode},
|
||||
point_type = #{pointType},
|
||||
ivt_status = #{ivtStatus},
|
||||
point_location = #{pointLocation},
|
||||
sort_seq = #{sortSeq},
|
||||
is_used = #{isUsed},
|
||||
remark = #{remark},
|
||||
updater = #{updater}
|
||||
WHERE ivt_id = #{ivtId}
|
||||
</update>
|
||||
|
||||
<select id="selectPaperVehicleList"
|
||||
resultType="cn.code.nl.module.lms.dal.dataobject.stockingivt.PaperVehicleDO">
|
||||
SELECT ivt_id, vehicle_code,
|
||||
CAST(row_num AS SIGNED) AS row_num,
|
||||
CAST(col_num AS SIGNED) AS col_num,
|
||||
material_code, material_name, qty
|
||||
FROM lms_base_papervehicle
|
||||
WHERE vehicle_code = #{vehicleCode}
|
||||
ORDER BY CAST(row_num AS UNSIGNED), CAST(col_num AS UNSIGNED), ivt_id
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user