PointsMapper.xml
1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?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.huaheng.pc.general.container.mapper.PointsMapper">
<select id="selectEntity" resultType="com.huaheng.api.ACS.domain.Points">
SELECT * FROM points where warehouseCode=#{warehouseCode} and goodsShelfNo like CONCAT('%',#{goodsShelfNo},'%')
<if test="isLocked != null and isLocked != '' ">
AND isLocked = #{isLocked}
</if>
</select>
<select id="selectFirstEntity" resultType="com.huaheng.api.ACS.domain.Points">
SELECT * FROM points where goodsShelfNo=#{goodsShelfNo}
</select>
<update id="updatePoints">
UPDATE points
<set>
<if test="isLocked != null">
isLocked = #{isLocked, jdbcType=INTEGER},
</if>
<if test="oIntX != null">
oIntX = #{oIntX, jdbcType=VARCHAR},
</if>
<if test="oIntY != null">
oIntX = #{oIntY, jdbcType=VARCHAR},
</if>
</set>
where goodsShelfNo=#{goodsShelfNo}
</update>
<select id="selectShlfno" resultType="java.util.HashMap">
SELECT goodsShelfNo FROM points group by goodsShelfNo asc
</select>
<select id="getFirstEntity" resultType="com.huaheng.api.ACS.domain.Points">
SELECT * FROM points where isLocked=1 and warehouseCode=#{warehouseCode} limit 1
</select>
</mapper>