<?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.sunday.dao.SmsOutboxMapper">
<resultMap id="BaseResultMap" type="com.sunday.entity.SmsOutbox">
<result column="SISMSID" jdbcType="VARCHAR" property="sismsid" />
<result column="EXTCODE" jdbcType="VARCHAR" property="extcode" />
<result column="DESTADDR" jdbcType="VARCHAR" property="destaddr" />
<result column="MESSAGECONTENT" jdbcType="VARCHAR" property="messagecontent" />
<result column="REQDELIVERYREPORT" jdbcType="INTEGER" property="reqdeliveryreport" />
<result column="MSGFMT" jdbcType="INTEGER" property="msgfmt" />
<result column="SENDMETHOD" jdbcType="INTEGER" property="sendmethod" />
<result column="REQUESTTIME" jdbcType="TIMESTAMP" property="requesttime" />
<result column="APPLICATIONID" jdbcType="VARCHAR" property="applicationid" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
SISMSID, EXTCODE, DESTADDR, MESSAGECONTENT, REQDELIVERYREPORT, MSGFMT, SENDMETHOD,
REQUESTTIME, APPLICATIONID
</sql>
<select id="selectByExample" parameterType="com.sunday.entity.SmsOutboxExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_outbox
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<delete id="deleteByExample" parameterType="com.sunday.entity.SmsOutboxExample">
delete from sms_outbox
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sunday.entity.SmsOutbox">
insert into sms_outbox (SISMSID, EXTCODE, DESTADDR,
MESSAGECONTENT, REQDELIVERYREPORT, MSGFMT,
SENDMETHOD, REQUESTTIME, APPLICATIONID
)
values (#{sismsid,jdbcType=VARCHAR}, #{extcode,jdbcType=VARCHAR}, #{destaddr,jdbcType=VARCHAR},
#{messagecontent,jdbcType=VARCHAR}, #{reqdeliveryreport,jdbcType=INTEGER}, #{msgfmt,jdbcType=INTEGER},
#{sendmethod,jdbcType=INTEGER}, #{requesttime,jdbcType=TIMESTAMP}, #{applicationid,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.sunday.entity.SmsOutbox">
insert into sms_outbox
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="sismsid != null">
SISMSID,
</if>
<if test="extcode != null">
EXTCODE,
</if>
<if test="destaddr != null">
DESTADDR,
</if>
<if test="messagecontent != null">
MESSAGECONTENT,
</if>
<if test="reqdeliveryreport != null">
REQDELIVERYREPORT,
</if>
<if test="msgfmt != null">
MSGFMT,
</if>
<if test="sendmethod != null">
SENDMETHOD,
</if>
<if test="requesttime != null">
REQUESTTIME,
</if>
<if test="applicationid != null">
APPLICATIONID,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="sismsid != null">
#{sismsid,jdbcType=VARCHAR},
</if>
<if test="extcode != null">
#{extcode,jdbcType=VARCHAR},
</if>
<if test="destaddr != null">
#{destaddr,jdbcType=VARCHAR},
</if>
<if test="messagecontent != null">
#{messagecontent,jdbcType=VARCHAR},
</if>
<if test="reqdeliveryreport != null">
#{reqdeliveryreport,jdbcType=INTEGER},
</if>
<if test="msgfmt != null">
#{msgfmt,jdbcType=INTEGER},
</if>
<if test="sendmethod != null">
#{sendmethod,jdbcType=INTEGER},
</if>
<if test="requesttime != null">
#{requesttime,jdbcType=TIMESTAMP},
</if>
<if test="applicationid != null">
#{applicationid,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sunday.entity.SmsOutboxExample" resultType="java.lang.Long">
select count(*) from sms_outbox
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_outbox
<set>
<if test="record.sismsid != null">
SISMSID = #{record.sismsid,jdbcType=VARCHAR},
</if>
<if test="record.extcode != null">
EXTCODE = #{record.extcode,jdbcType=VARCHAR},
</if>
<if test="record.destaddr != null">
DESTADDR = #{record.destaddr,jdbcType=VARCHAR},
</if>
<if test="record.messagecontent != null">
MESSAGECONTENT = #{record.messagecontent,jdbcType=VARCHAR},
</if>
<if test="record.reqdeliveryreport != null">
REQDELIVERYREPORT = #{record.reqdeliveryreport,jdbcType=INTEGER},
</if>
<if test="record.msgfmt != null">
MSGFMT = #{record.msgfmt,jdbcType=INTEGER},
</if>
<if test="record.sendmethod != null">
SENDMETHOD = #{record.sendmethod,jdbcType=INTEGER},
</if>
<if test="record.requesttime != null">
REQUESTTIME = #{record.requesttime,jdbcType=TIMESTAMP},
</if>
<if test="record.applicationid != null">
APPLICATIONID = #{record.applicationid,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Wh
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
调用webservice,插入数据,整合druid监控数据源; webservice地址:http://localhost:8080/taixingMsg/webservice/SendMsgService?wsdl; webservice配置文件在spring-mvc.xml和web.xml中; 数据库监控地址http://localhost:8080/taixingMsg/druid/index.html... 各位同仁,生命不止,奋斗不息
资源推荐
资源详情
资源评论
收起资源包目录
taixingMsg.rar (68个子文件)
WEB-INF
classes
generatorConfig.xml 3KB
config.properties 204B
spring-mybatis.xml 4KB
com
sunday
service
SmsOutboxService.class 193B
impl
SmsOutboxServiceImpl.class 1KB
ws
service
impl
SendMsgServiceImpl.class 1KB
SendMsgService.class 191B
mapper
SmsOutboxMapper.xml 9KB
dao
SmsOutboxMapper.class 909B
entity
SmsOutboxExample$GeneratedCriteria.class 19KB
SmsOutbox.class 2KB
SmsOutboxExample.class 2KB
SmsOutboxExample$Criterion.class 2KB
SmsOutboxExample$Criteria.class 13KB
spring-mvc.xml 2KB
mybatis
SmsOutboxMapper.xml 9KB
logback.xml 765B
lib
neethi-3.0.3.jar 70KB
slf4j-api-1.7.5.jar 25KB
woodstox-core-asl-4.4.1.jar 475KB
xml-resolver-1.2.jar 82KB
cxf-rt-bindings-soap-3.1.5.jar 173KB
jackson-mapper-asl-1.9.13.jar 762KB
spring-orm-4.1.7.RELEASE.jar 367KB
jaxb-impl-2.2.11.jar 1023KB
spring-aspects-4.1.7.RELEASE.jar 56KB
logback-core-1.1.2.jar 418KB
spring-web-4.1.7.RELEASE.jar 705KB
druid-1.1.10.jar 2.63MB
dom4j-2.1.0.jar 315KB
spring-core-4.1.7.RELEASE.jar 985KB
spring-context-4.1.7.RELEASE.jar 1003KB
logback-classic-1.1.2.jar 264KB
aspectjweaver-1.8.6.jar 1.78MB
cxf-rt-bindings-xml-3.1.5.jar 37KB
spring-expression-4.1.7.RELEASE.jar 253KB
cxf-rt-frontend-simple-3.1.5.jar 99KB
spring-webmvc-4.1.7.RELEASE.jar 764KB
wsdl4j-1.6.3.jar 182KB
asm-5.0.4.jar 52KB
mybatis-spring-1.3.1.jar 52KB
jaxb-core-2.2.11.jar 246KB
spring-context-support-4.1.7.RELEASE.jar 174KB
jackson-core-asl-1.9.13.jar 227KB
mybatis-3.4.5.jar 1.55MB
cxf-rt-wsdl-3.1.5.jar 169KB
stax2-api-3.1.4.jar 158KB
spring-jdbc-4.1.7.RELEASE.jar 417KB
cxf-core-3.1.5.jar 1.28MB
cxf-rt-ws-addr-3.1.5.jar 74KB
logback-ext-spring-0.1.1.jar 16KB
cxf-rt-frontend-jaxws-3.1.5.jar 333KB
spring-beans-4.1.7.RELEASE.jar 696KB
xmlschema-core-2.2.1.jar 168KB
cxf-rt-transports-http-3.1.5.jar 329KB
spring-aop-4.1.7.RELEASE.jar 351KB
cxf-rt-ws-policy-3.1.5.jar 209KB
spring-tx-4.1.7.RELEASE.jar 247KB
aopalliance-1.0.jar 4KB
cxf-rt-databinding-jaxb-3.1.5.jar 101KB
fastjson-1.1.41.jar 350KB
mysql-connector-java-5.1.38.jar 961KB
commons-logging-1.2.jar 60KB
jaxen-1.1.6.jar 226KB
web.xml 3KB
META-INF
MANIFEST.MF 139B
maven
com.sunday
taixingMsg
pom.properties 119B
pom.xml 5KB
共 68 条
- 1
资源评论
大虫and小虫
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功