DgReceiveMapper.xml
2.08 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
<?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.pashanhoo.receive.mapper.DgReceiveMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.pashanhoo.receive.entity.DgReceiveDO">
<id column="BMS_RECEIVE" property="bmsReceive" />
<result column="YWLYJBM" property="ywlyjbm" />
<result column="QLLX" property="qllx" />
<result column="DJLX" property="djlx" />
<result column="SJRY" property="sjry" />
<result column="SJSJ" property="sjsj" />
<result column="YWH" property="ywh" />
<result column="BDCDYH" property="bdcdyh" />
<result column="DYZS" property="dyzs" />
<result column="BDCQZH" property="bdcqzh" />
<result column="QLR" property="qlr" />
<result column="ZJHM" property="zjhm" />
<result column="YWR" property="ywr" />
<result column="ZL" property="zl" />
<result column="DJSJ" property="djsj" />
<result column="JSSJ" property="jssj" />
<result column="TSJGBM" property="tsjgbm" />
<result column="GDFS" property="gdfs" />
<result column="GDSJ" property="gdsj" />
<result column="STATE" property="state" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
BMS_RECEIVE, YWLYJBM, QLLX, DJLX, SJRY, SJSJ, YWH, BDCDYH, DYZS, BDCQZH, QLR, ZJHM, YWR, ZL, DJSJ, JSSJ, TSJGBM, GDFS, GDSJ, STATE
</sql>
<update id="updateReceiveBatch">
update dg_receive b
set b.state = #{state,jdbcType=VARCHAR},b.gdsj=sysdate
where BMS_RECEIVE in
<foreach collection="idList" index="index" item="item"
separator="," open="(" close=")">
#{item,jdbcType=VARCHAR}
</foreach>
</update>
<select id="getDjywbmInfo" resultType="com.pashanhoo.receive.entity.vo.DjywbmVO">
select * from SYS_CONVERT_DJYWBM t where oncedjywbm=#{oncedjywbm,jdbcType=VARCHAR} and state='1'
</select>
</mapper>