CycleCountPreferenceMapper.xml
2.55 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
42
43
44
45
46
47
48
49
<?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.config.cycleCountPreference.mapper.CycleCountPreferenceMapper">
<resultMap id="BaseResultMap" type="com.huaheng.pc.config.cycleCountPreference.domain.CycleCountPreference">
<!--@mbg.generated-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
<result column="promptLocation" jdbcType="BOOLEAN" property="promptLocation" />
<result column="promptLpn" jdbcType="BOOLEAN" property="promptLpn" />
<result column="promptItem" jdbcType="BOOLEAN" property="promptItem" />
<result column="prompAdjustQty" jdbcType="BOOLEAN" property="prompAdjustQty" />
<result column="promptQuantity" jdbcType="BOOLEAN" property="promptQuantity" />
<result column="allowAddNewInventory" jdbcType="BOOLEAN" property="allowAddNewInventory" />
<result column="enable" jdbcType="BOOLEAN" property="enable" />
<result column="created" jdbcType="TIMESTAMP" property="created" />
<result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
<result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" />
<result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" />
<result column="version" jdbcType="INTEGER" property="version" />
<result column="userDef1" jdbcType="VARCHAR" property="userDef1" />
<result column="userDef2" jdbcType="VARCHAR" property="userDef2" />
<result column="userDef3" jdbcType="VARCHAR" property="userDef3" />
<result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
<result column="countByPiece" jdbcType="BOOLEAN" property="countByPiece" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, `name`, warehouseCode, promptLocation,prompAdjustQty, promptLpn, promptItem, promptQuantity,
allowAddNewInventory, enable, created, createdBy, lastUpdated, lastUpdatedBy, version,
userDef1, userDef2, userDef3, processStamp, countByPiece
</sql>
<select id="selectCycleCountPreferenceName" resultType="java.lang.String">
SELECT `name` FROM cycle_count_preference
<where>
<if test="cycleCountPreferenceCode != null and cycleCountPreferenceCode != ''">
AND code = #{cycleCountPreferenceCode}
</if>
</where>
</select>
</mapper>