20 lines
755 B
XML
20 lines
755 B
XML
|
|
<?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.czblood.bus.mapper.XkMsgDetailMapper">
|
||
|
|
<insert id="insert">
|
||
|
|
insert into xk_msg_detail (
|
||
|
|
<if test="accept_Dept != null">accept_Dept,</if>
|
||
|
|
<if test="send_Dept != null">send_Dept,</if>
|
||
|
|
msgid,msg_Body
|
||
|
|
)values(
|
||
|
|
<if test="accept_Dept != null">#{accept_Dept},</if>
|
||
|
|
<if test="send_Dept != null">#{send_Dept},</if>
|
||
|
|
#{msgid},#{msg_Body}
|
||
|
|
)
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
<select id="queryOne" resultType="com.czblood.bus.pojo.XkMsgDetail">
|
||
|
|
select * from xk_msg_detail where msgid = #{msgId}
|
||
|
|
</select>
|
||
|
|
</mapper>
|