first commit

This commit is contained in:
2026-01-16 14:13:44 +08:00
commit 903ff8d495
34603 changed files with 8585054 additions and 0 deletions

View File

@ -0,0 +1,193 @@
<?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="msg.EmppAdminMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.msg.EmppAdmin" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="emppname" property="emppname" jdbcType="VARCHAR" />
<result column="host" property="host" jdbcType="VARCHAR" />
<result column="port" property="port" jdbcType="INTEGER" />
<result column="accountId" property="accountid" jdbcType="VARCHAR" />
<result column="accname" property="accname" jdbcType="VARCHAR" />
<result column="password" property="password" jdbcType="VARCHAR" />
<result column="serviceId" property="serviceid" jdbcType="VARCHAR" />
<result column="insertuserid" property="insertuserid" jdbcType="VARCHAR" />
<result column="insertdate" property="insertdate" jdbcType="TIMESTAMP" />
<result column="updateuserid" property="updateuserid" jdbcType="VARCHAR" />
<result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Base_Column_List" >
id, emppname, host, port, accountId, accname, password, serviceId, insertuserid,
insertdate, updateuserid, updatedate
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_EMPP_EmppAdmin
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_EMPP_EmppAdmin
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.msg.EmppAdmin" >
insert into tb_EMPP_EmppAdmin (id, emppname, host,
port, accountId, accname,
password, serviceId, insertuserid,
insertdate, updateuserid, updatedate
)
values (#{id,jdbcType=VARCHAR}, #{emppname,jdbcType=VARCHAR}, #{host,jdbcType=VARCHAR},
#{port,jdbcType=INTEGER}, #{accountid,jdbcType=VARCHAR}, #{accname,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR}, #{serviceid,jdbcType=VARCHAR}, #{insertuserid,jdbcType=VARCHAR},
#{insertdate,jdbcType=TIMESTAMP}, #{updateuserid,jdbcType=VARCHAR}, #{updatedate,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.msg.EmppAdmin" >
insert into tb_EMPP_EmppAdmin
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="emppname != null" >
emppname,
</if>
<if test="host != null" >
host,
</if>
<if test="port != null" >
port,
</if>
<if test="accountid != null" >
accountId,
</if>
<if test="accname != null" >
accname,
</if>
<if test="password != null" >
password,
</if>
<if test="serviceid != null" >
serviceId,
</if>
<if test="insertuserid != null" >
insertuserid,
</if>
<if test="insertdate != null" >
insertdate,
</if>
<if test="updateuserid != null" >
updateuserid,
</if>
<if test="updatedate != null" >
updatedate,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="emppname != null" >
#{emppname,jdbcType=VARCHAR},
</if>
<if test="host != null" >
#{host,jdbcType=VARCHAR},
</if>
<if test="port != null" >
#{port,jdbcType=INTEGER},
</if>
<if test="accountid != null" >
#{accountid,jdbcType=VARCHAR},
</if>
<if test="accname != null" >
#{accname,jdbcType=VARCHAR},
</if>
<if test="password != null" >
#{password,jdbcType=VARCHAR},
</if>
<if test="serviceid != null" >
#{serviceid,jdbcType=VARCHAR},
</if>
<if test="insertuserid != null" >
#{insertuserid,jdbcType=VARCHAR},
</if>
<if test="insertdate != null" >
#{insertdate,jdbcType=TIMESTAMP},
</if>
<if test="updateuserid != null" >
#{updateuserid,jdbcType=VARCHAR},
</if>
<if test="updatedate != null" >
#{updatedate,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.msg.EmppAdmin" >
update tb_EMPP_EmppAdmin
<set >
<if test="emppname != null" >
emppname = #{emppname,jdbcType=VARCHAR},
</if>
<if test="host != null" >
host = #{host,jdbcType=VARCHAR},
</if>
<if test="port != null" >
port = #{port,jdbcType=INTEGER},
</if>
<if test="accountid != null" >
accountId = #{accountid,jdbcType=VARCHAR},
</if>
<if test="accname != null" >
accname = #{accname,jdbcType=VARCHAR},
</if>
<if test="password != null" >
password = #{password,jdbcType=VARCHAR},
</if>
<if test="serviceid != null" >
serviceId = #{serviceid,jdbcType=VARCHAR},
</if>
<if test="insertuserid != null" >
insertuserid = #{insertuserid,jdbcType=VARCHAR},
</if>
<if test="insertdate != null" >
insertdate = #{insertdate,jdbcType=TIMESTAMP},
</if>
<if test="updateuserid != null" >
updateuserid = #{updateuserid,jdbcType=VARCHAR},
</if>
<if test="updatedate != null" >
updatedate = #{updatedate,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.msg.EmppAdmin" >
update tb_EMPP_EmppAdmin
set emppname = #{emppname,jdbcType=VARCHAR},
host = #{host,jdbcType=VARCHAR},
port = #{port,jdbcType=INTEGER},
accountId = #{accountid,jdbcType=VARCHAR},
accname = #{accname,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
serviceId = #{serviceid,jdbcType=VARCHAR},
insertuserid = #{insertuserid,jdbcType=VARCHAR},
insertdate = #{insertdate,jdbcType=TIMESTAMP},
updateuserid = #{updateuserid,jdbcType=VARCHAR},
updatedate = #{updatedate,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_EMPP_EmppAdmin
${where}
</select>
<select id="selectByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_EMPP_EmppAdmin
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from tb_EMPP_EmppAdmin
${where}
</delete>
</mapper>

View File

@ -0,0 +1,183 @@
<?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="msg.EmppSendMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.msg.EmppSend" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="emppAdminid" property="emppadminid" jdbcType="VARCHAR" />
<result column="senduserid" property="senduserid" jdbcType="VARCHAR" />
<result column="senddate" property="senddate" jdbcType="TIMESTAMP" />
<result column="insertuserid" property="insertuserid" jdbcType="VARCHAR" />
<result column="insertdate" property="insertdate" jdbcType="TIMESTAMP" />
<result column="updateuserid" property="updateuserid" jdbcType="VARCHAR" />
<result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
<result column="recuserid" property="recuserid" jdbcType="CLOB" />
<result column="recusername" property="recusername" jdbcType="CLOB" />
<result column="sendtitle" property="sendtitle" jdbcType="CLOB" />
</resultMap>
<sql id="Base_Column_List" >
id, emppAdminid, senduserid, senddate, insertuserid, insertdate, updateuserid, updatedate,recuserid, recusername, sendtitle
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_EMPP_EmppSend
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_EMPP_EmppSend
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.msg.EmppSend" >
insert into tb_EMPP_EmppSend (id, emppAdminid, senduserid,
senddate, insertuserid, insertdate,
updateuserid, updatedate, recuserid,
recusername, sendtitle)
values (#{id,jdbcType=VARCHAR}, #{emppadminid,jdbcType=VARCHAR}, #{senduserid,jdbcType=VARCHAR},
#{senddate,jdbcType=TIMESTAMP}, #{insertuserid,jdbcType=VARCHAR}, #{insertdate,jdbcType=TIMESTAMP},
#{updateuserid,jdbcType=VARCHAR}, #{updatedate,jdbcType=TIMESTAMP}, #{recuserid,jdbcType=CLOB},
#{recusername,jdbcType=CLOB}, #{sendtitle,jdbcType=CLOB})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.msg.EmppSend" >
insert into tb_EMPP_EmppSend
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="emppadminid != null" >
emppAdminid,
</if>
<if test="senduserid != null" >
senduserid,
</if>
<if test="senddate != null" >
senddate,
</if>
<if test="insertuserid != null" >
insertuserid,
</if>
<if test="insertdate != null" >
insertdate,
</if>
<if test="updateuserid != null" >
updateuserid,
</if>
<if test="updatedate != null" >
updatedate,
</if>
<if test="recuserid != null" >
recuserid,
</if>
<if test="recusername != null" >
recusername,
</if>
<if test="sendtitle != null" >
sendtitle,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="emppadminid != null" >
#{emppadminid,jdbcType=VARCHAR},
</if>
<if test="senduserid != null" >
#{senduserid,jdbcType=VARCHAR},
</if>
<if test="senddate != null" >
#{senddate,jdbcType=TIMESTAMP},
</if>
<if test="insertuserid != null" >
#{insertuserid,jdbcType=VARCHAR},
</if>
<if test="insertdate != null" >
#{insertdate,jdbcType=TIMESTAMP},
</if>
<if test="updateuserid != null" >
#{updateuserid,jdbcType=VARCHAR},
</if>
<if test="updatedate != null" >
#{updatedate,jdbcType=TIMESTAMP},
</if>
<if test="recuserid != null" >
#{recuserid,jdbcType=CLOB},
</if>
<if test="recusername != null" >
#{recusername,jdbcType=CLOB},
</if>
<if test="sendtitle != null" >
#{sendtitle,jdbcType=CLOB},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.msg.EmppSend" >
update tb_EMPP_EmppSend
<set >
<if test="emppadminid != null" >
emppAdminid = #{emppadminid,jdbcType=VARCHAR},
</if>
<if test="senduserid != null" >
senduserid = #{senduserid,jdbcType=VARCHAR},
</if>
<if test="senddate != null" >
senddate = #{senddate,jdbcType=TIMESTAMP},
</if>
<if test="insertuserid != null" >
insertuserid = #{insertuserid,jdbcType=VARCHAR},
</if>
<if test="insertdate != null" >
insertdate = #{insertdate,jdbcType=TIMESTAMP},
</if>
<if test="updateuserid != null" >
updateuserid = #{updateuserid,jdbcType=VARCHAR},
</if>
<if test="updatedate != null" >
updatedate = #{updatedate,jdbcType=TIMESTAMP},
</if>
<if test="recuserid != null" >
recuserid = #{recuserid,jdbcType=CLOB},
</if>
<if test="recusername != null" >
recusername = #{recusername,jdbcType=CLOB},
</if>
<if test="sendtitle != null" >
sendtitle = #{sendtitle,jdbcType=CLOB},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.msg.EmppSend" >
update tb_EMPP_EmppSend
set emppAdminid = #{emppadminid,jdbcType=VARCHAR},
senduserid = #{senduserid,jdbcType=VARCHAR},
senddate = #{senddate,jdbcType=TIMESTAMP},
insertuserid = #{insertuserid,jdbcType=VARCHAR},
insertdate = #{insertdate,jdbcType=TIMESTAMP},
updateuserid = #{updateuserid,jdbcType=VARCHAR},
updatedate = #{updatedate,jdbcType=TIMESTAMP},
recuserid = #{recuserid,jdbcType=CLOB},
recusername = #{recusername,jdbcType=CLOB},
sendtitle = #{sendtitle,jdbcType=CLOB}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_EMPP_EmppSend
${where}
</select>
<select id="selectByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_EMPP_EmppSend
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from tb_EMPP_EmppSend
${where}
</delete>
</mapper>

View File

@ -0,0 +1,193 @@
<?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="msg.EmppSendUserMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.msg.EmppSendUser" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="emppSendid" property="emppsendid" jdbcType="VARCHAR" />
<result column="senduserid" property="senduserid" jdbcType="VARCHAR" />
<result column="senddate" property="senddate" jdbcType="TIMESTAMP" />
<result column="recuserid" property="recuserid" jdbcType="VARCHAR" />
<result column="mobile" property="mobile" jdbcType="VARCHAR" />
<result column="backdate" property="backdate" jdbcType="TIMESTAMP" />
<result column="insertuserid" property="insertuserid" jdbcType="VARCHAR" />
<result column="insertdate" property="insertdate" jdbcType="TIMESTAMP" />
<result column="updateuserid" property="updateuserid" jdbcType="VARCHAR" />
<result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
<result column="msgId" property="msgid" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, emppSendid, senduserid, senddate, recuserid, mobile, backdate, insertuserid,
insertdate, updateuserid, updatedate, msgId
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_EMPP_EmppSendUser
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_EMPP_EmppSendUser
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.msg.EmppSendUser" >
insert into tb_EMPP_EmppSendUser (id, emppSendid, senduserid,
senddate, recuserid, mobile,
backdate, insertuserid, insertdate,
updateuserid, updatedate, msgId
)
values (#{id,jdbcType=VARCHAR}, #{emppsendid,jdbcType=VARCHAR}, #{senduserid,jdbcType=VARCHAR},
#{senddate,jdbcType=TIMESTAMP}, #{recuserid,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR},
#{backdate,jdbcType=TIMESTAMP}, #{insertuserid,jdbcType=VARCHAR}, #{insertdate,jdbcType=TIMESTAMP},
#{updateuserid,jdbcType=VARCHAR}, #{updatedate,jdbcType=TIMESTAMP}, #{msgid,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.msg.EmppSendUser" >
insert into tb_EMPP_EmppSendUser
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="emppsendid != null" >
emppSendid,
</if>
<if test="senduserid != null" >
senduserid,
</if>
<if test="senddate != null" >
senddate,
</if>
<if test="recuserid != null" >
recuserid,
</if>
<if test="mobile != null" >
mobile,
</if>
<if test="backdate != null" >
backdate,
</if>
<if test="insertuserid != null" >
insertuserid,
</if>
<if test="insertdate != null" >
insertdate,
</if>
<if test="updateuserid != null" >
updateuserid,
</if>
<if test="updatedate != null" >
updatedate,
</if>
<if test="msgid != null" >
msgId,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="emppsendid != null" >
#{emppsendid,jdbcType=VARCHAR},
</if>
<if test="senduserid != null" >
#{senduserid,jdbcType=VARCHAR},
</if>
<if test="senddate != null" >
#{senddate,jdbcType=TIMESTAMP},
</if>
<if test="recuserid != null" >
#{recuserid,jdbcType=VARCHAR},
</if>
<if test="mobile != null" >
#{mobile,jdbcType=VARCHAR},
</if>
<if test="backdate != null" >
#{backdate,jdbcType=TIMESTAMP},
</if>
<if test="insertuserid != null" >
#{insertuserid,jdbcType=VARCHAR},
</if>
<if test="insertdate != null" >
#{insertdate,jdbcType=TIMESTAMP},
</if>
<if test="updateuserid != null" >
#{updateuserid,jdbcType=VARCHAR},
</if>
<if test="updatedate != null" >
#{updatedate,jdbcType=TIMESTAMP},
</if>
<if test="msgid != null" >
#{msgid,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.msg.EmppSendUser" >
update tb_EMPP_EmppSendUser
<set >
<if test="emppsendid != null" >
emppSendid = #{emppsendid,jdbcType=VARCHAR},
</if>
<if test="senduserid != null" >
senduserid = #{senduserid,jdbcType=VARCHAR},
</if>
<if test="senddate != null" >
senddate = #{senddate,jdbcType=TIMESTAMP},
</if>
<if test="recuserid != null" >
recuserid = #{recuserid,jdbcType=VARCHAR},
</if>
<if test="mobile != null" >
mobile = #{mobile,jdbcType=VARCHAR},
</if>
<if test="backdate != null" >
backdate = #{backdate,jdbcType=TIMESTAMP},
</if>
<if test="insertuserid != null" >
insertuserid = #{insertuserid,jdbcType=VARCHAR},
</if>
<if test="insertdate != null" >
insertdate = #{insertdate,jdbcType=TIMESTAMP},
</if>
<if test="updateuserid != null" >
updateuserid = #{updateuserid,jdbcType=VARCHAR},
</if>
<if test="updatedate != null" >
updatedate = #{updatedate,jdbcType=TIMESTAMP},
</if>
<if test="msgid != null" >
msgId = #{msgid,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.msg.EmppSendUser" >
update tb_EMPP_EmppSendUser
set emppSendid = #{emppsendid,jdbcType=VARCHAR},
senduserid = #{senduserid,jdbcType=VARCHAR},
senddate = #{senddate,jdbcType=TIMESTAMP},
recuserid = #{recuserid,jdbcType=VARCHAR},
mobile = #{mobile,jdbcType=VARCHAR},
backdate = #{backdate,jdbcType=TIMESTAMP},
insertuserid = #{insertuserid,jdbcType=VARCHAR},
insertdate = #{insertdate,jdbcType=TIMESTAMP},
updateuserid = #{updateuserid,jdbcType=VARCHAR},
updatedate = #{updatedate,jdbcType=TIMESTAMP},
msgId = #{msgid,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_EMPP_EmppSendUser
${where}
</select>
<select id="selectByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_EMPP_EmppSendUser
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from tb_EMPP_EmppSendUser
${where}
</delete>
</mapper>

View File

@ -0,0 +1,162 @@
<?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="msg.MsgAlarmlevelMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.msg.MsgAlarmlevel" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="alarm_level" property="alarmLevel" jdbcType="VARCHAR" />
<result column="msgsend" property="msgsend" jdbcType="VARCHAR" />
<result column="smssend" property="smssend" jdbcType="VARCHAR" />
<result column="sendway" property="sendway" jdbcType="VARCHAR" />
<result column="remark" property="remark" jdbcType="VARCHAR" />
<result column="state" property="state" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="msgrole" property="msgrole" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, alarm_level, msgsend, smssend, sendway, remark, state, insuser, insdt, msgrole
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE_alarmlevel
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TB_MESSAGE_TYPE_alarmlevel
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.msg.MsgAlarmlevel" >
insert into TB_MESSAGE_TYPE_alarmlevel (id, alarm_level, msgsend,
smssend, sendway, remark,
state, insuser, insdt,
msgrole)
values (#{id,jdbcType=VARCHAR}, #{alarmLevel,jdbcType=VARCHAR}, #{msgsend,jdbcType=VARCHAR},
#{smssend,jdbcType=VARCHAR}, #{sendway,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
#{state,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{msgrole,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.msg.MsgAlarmlevel" >
insert into TB_MESSAGE_TYPE_alarmlevel
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="alarmLevel != null" >
alarm_level,
</if>
<if test="msgsend != null" >
msgsend,
</if>
<if test="smssend != null" >
smssend,
</if>
<if test="sendway != null" >
sendway,
</if>
<if test="remark != null" >
remark,
</if>
<if test="state != null" >
state,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="msgrole != null" >
msgrole,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="alarmLevel != null" >
#{alarmLevel,jdbcType=VARCHAR},
</if>
<if test="msgsend != null" >
#{msgsend,jdbcType=VARCHAR},
</if>
<if test="smssend != null" >
#{smssend,jdbcType=VARCHAR},
</if>
<if test="sendway != null" >
#{sendway,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
#{remark,jdbcType=VARCHAR},
</if>
<if test="state != null" >
#{state,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="msgrole != null" >
#{msgrole,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.msg.MsgAlarmlevel" >
update TB_MESSAGE_TYPE_alarmlevel
<set >
<if test="alarmLevel != null" >
alarm_level = #{alarmLevel,jdbcType=VARCHAR},
</if>
<if test="msgsend != null" >
msgsend = #{msgsend,jdbcType=VARCHAR},
</if>
<if test="smssend != null" >
smssend = #{smssend,jdbcType=VARCHAR},
</if>
<if test="sendway != null" >
sendway = #{sendway,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="state != null" >
state = #{state,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="msgrole != null" >
msgrole = #{msgrole,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.msg.MsgAlarmlevel" >
update TB_MESSAGE_TYPE_alarmlevel
set alarm_level = #{alarmLevel,jdbcType=VARCHAR},
msgsend = #{msgsend,jdbcType=VARCHAR},
smssend = #{smssend,jdbcType=VARCHAR},
sendway = #{sendway,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
state = #{state,jdbcType=VARCHAR},
insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
msgrole = #{msgrole,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE_alarmlevel
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from TB_MESSAGE_TYPE_alarmlevel
${where}
</delete>
</mapper>

View File

@ -0,0 +1,474 @@
<?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="msg.MsgMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.msg.Msg" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="pid" property="pid" jdbcType="VARCHAR" />
<result column="suserid" property="suserid" jdbcType="VARCHAR" />
<result column="sdt" property="sdt" jdbcType="TIMESTAMP" />
<result column="url" property="url" jdbcType="VARCHAR" />
<result column="readflag" property="readflag" jdbcType="VARCHAR" />
<result column="content" property="content" jdbcType="VARCHAR" />
<result column="backid" property="backid" jdbcType="VARCHAR" />
<result column="typeid" property="typeid" jdbcType="VARCHAR" />
<result column="plansdt" property="plansdt" jdbcType="VARCHAR" />
<result column="plansdate" property="plansdate" jdbcType="TIMESTAMP" />
<result column="sendflag" property="sendflag" jdbcType="VARCHAR" />
<result column="delflag" property="delflag" jdbcType="VARCHAR" />
<result column="alerturl" property="alerturl" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="bizid" property="bizid" jdbcType="VARCHAR" />
<result column="issms" property="issms" jdbcType="VARCHAR" />
<result column="redflag" property="redflag" jdbcType="VARCHAR" />
<result column="sendview" property="sendview" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, pid, suserid, sdt, url, readflag, content, backid, typeid, plansdt, plansdate,
sendflag, delflag, alerturl, insuser, insdt, bizid,issms,redflag,sendview
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TB_MESSAGE
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.msg.Msg" >
insert into TB_MESSAGE (id, pid, suserid,
sdt, url, readflag,
content, backid, typeid,
plansdt, plansdate, sendflag,
delflag, alerturl, insuser,
insdt, bizid,issms,redflag,sendview)
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{suserid,jdbcType=VARCHAR},
#{sdt,jdbcType=TIMESTAMP}, #{url,jdbcType=VARCHAR}, #{readflag,jdbcType=VARCHAR},
#{content,jdbcType=VARCHAR}, #{backid,jdbcType=VARCHAR}, #{typeid,jdbcType=VARCHAR},
#{plansdt,jdbcType=VARCHAR}, #{plansdate,jdbcType=TIMESTAMP}, #{sendflag,jdbcType=VARCHAR},
#{delflag,jdbcType=VARCHAR}, #{alerturl,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR},
#{insdt,jdbcType=TIMESTAMP}, #{bizid,jdbcType=VARCHAR}, #{issms,jdbcType=VARCHAR},
#{redflag,jdbcType=VARCHAR}, #{sendview,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.msg.Msg" >
insert into TB_MESSAGE
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="pid != null" >
pid,
</if>
<if test="suserid != null" >
suserid,
</if>
<if test="sdt != null" >
sdt,
</if>
<if test="url != null" >
url,
</if>
<if test="readflag != null" >
readflag,
</if>
<if test="content != null" >
content,
</if>
<if test="backid != null" >
backid,
</if>
<if test="typeid != null" >
typeid,
</if>
<if test="plansdt != null" >
plansdt,
</if>
<if test="plansdate != null" >
plansdate,
</if>
<if test="sendflag != null" >
sendflag,
</if>
<if test="delflag != null" >
delflag,
</if>
<if test="alerturl != null" >
alerturl,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="bizid != null" >
bizid,
</if>
<if test="issms != null" >
issms,
</if>
<if test="redflag != null" >
redflag,
</if>
<if test="sendview != null" >
sendview,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="pid != null" >
#{pid,jdbcType=VARCHAR},
</if>
<if test="suserid != null" >
#{suserid,jdbcType=VARCHAR},
</if>
<if test="sdt != null" >
#{sdt,jdbcType=TIMESTAMP},
</if>
<if test="url != null" >
#{url,jdbcType=VARCHAR},
</if>
<if test="readflag != null" >
#{readflag,jdbcType=VARCHAR},
</if>
<if test="content != null" >
#{content,jdbcType=VARCHAR},
</if>
<if test="backid != null" >
#{backid,jdbcType=VARCHAR},
</if>
<if test="typeid != null" >
#{typeid,jdbcType=VARCHAR},
</if>
<if test="plansdt != null" >
#{plansdt,jdbcType=VARCHAR},
</if>
<if test="plansdate != null" >
#{plansdate,jdbcType=TIMESTAMP},
</if>
<if test="sendflag != null" >
#{sendflag,jdbcType=VARCHAR},
</if>
<if test="delflag != null" >
#{delflag,jdbcType=VARCHAR},
</if>
<if test="alerturl != null" >
#{alerturl,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="bizid != null" >
#{bizid,jdbcType=VARCHAR},
</if>
<if test="issms != null" >
#{issms,jdbcType=VARCHAR},
</if>
<if test="redflag != null" >
#{redflag,jdbcType=VARCHAR},
</if>
<if test="sendview != null" >
#{sendview,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.msg.Msg" >
update TB_MESSAGE
<set >
<if test="pid != null" >
pid = #{pid,jdbcType=VARCHAR},
</if>
<if test="suserid != null" >
suserid = #{suserid,jdbcType=VARCHAR},
</if>
<if test="sdt != null" >
sdt = #{sdt,jdbcType=TIMESTAMP},
</if>
<if test="url != null" >
url = #{url,jdbcType=VARCHAR},
</if>
<if test="readflag != null" >
readflag = #{readflag,jdbcType=VARCHAR},
</if>
<if test="content != null" >
content = #{content,jdbcType=VARCHAR},
</if>
<if test="backid != null" >
backid = #{backid,jdbcType=VARCHAR},
</if>
<if test="typeid != null" >
typeid = #{typeid,jdbcType=VARCHAR},
</if>
<if test="plansdt != null" >
plansdt = #{plansdt,jdbcType=VARCHAR},
</if>
<if test="plansdate != null" >
plansdate = #{plansdate,jdbcType=TIMESTAMP},
</if>
<if test="sendflag != null" >
sendflag = #{sendflag,jdbcType=VARCHAR},
</if>
<if test="delflag != null" >
delflag = #{delflag,jdbcType=VARCHAR},
</if>
<if test="alerturl != null" >
alerturl = #{alerturl,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="bizid != null" >
bizid = #{bizid,jdbcType=VARCHAR},
</if>
<if test="issms != null" >
issms = #{issms,jdbcType=VARCHAR},
</if>
<if test="redflag != null" >
redflag = #{redflag,jdbcType=VARCHAR},
</if>
<if test="sendview != null" >
sendview = #{sendview,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.msg.Msg" >
update TB_MESSAGE
set pid = #{pid,jdbcType=VARCHAR},
suserid = #{suserid,jdbcType=VARCHAR},
sdt = #{sdt,jdbcType=TIMESTAMP},
url = #{url,jdbcType=VARCHAR},
readflag = #{readflag,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
backid = #{backid,jdbcType=VARCHAR},
typeid = #{typeid,jdbcType=VARCHAR},
plansdt = #{plansdt,jdbcType=VARCHAR},
plansdate = #{plansdate,jdbcType=TIMESTAMP},
sendflag = #{sendflag,jdbcType=VARCHAR},
delflag = #{delflag,jdbcType=VARCHAR},
alerturl = #{alerturl,jdbcType=VARCHAR},
insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
bizid = #{bizid,jdbcType=VARCHAR},
issms = #{issms,jdbcType=VARCHAR},
redflag = #{redflag,jdbcType=VARCHAR},
sendview = #{sendview,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE
${where}
</select>
<select id="selectByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from TB_MESSAGE
${where}
</delete>
<select id="getMsgsendlist" resultMap="ClassResultMapsendlist" parameterType="java.lang.String">
SELECT
T.id as t_id,
T.name as t_typename,
U.id as u_id,
U.caption AS u_username,
M.id as m_id,
M.url as m_url,
M.suserid AS m_suserid,
M.sdt AS m_sdt,
M.content AS m_content,
M.typeid AS m_typeid,
M.insdt AS m_insdt,
M.issms AS m_issms,
M.pid AS m_pid,
M.redflag AS m_redflag,
M.sendview AS m_sendview
FROM TB_MESSAGE M
LEFT OUTER JOIN TB_User U ON M.suserid = U.id
LEFT OUTER JOIN TB_MESSAGE_TYPE T ON M.typeid = T.id
${where}
</select>
<select id="getMsgsend" resultMap="ClassResultMaprecv" parameterType="java.lang.String">
SELECT
T.id as t_id,
T.name as t_typename,
U.id as u_id,
U.caption AS u_username,
M.id as m_id,
M.url as m_url,
M.suserid AS m_suserid,
M.sdt AS m_sdt,
M.content AS m_content,
M.typeid AS m_typeid,
M.insdt AS m_insdt,
M.issms AS m_issms,
M.pid AS m_pid,
M.redflag AS m_redflag,
M.sendview AS m_sendview
FROM TB_MESSAGE M
LEFT OUTER JOIN TB_User U ON M.suserid = U.id
LEFT OUTER JOIN TB_MESSAGE_TYPE T ON M.typeid = T.id
${where}
</select>
<select id="getMsgrecv" resultMap="ClassResultMaprecv" parameterType="java.lang.String">
SELECT
T.id as t_id,
T.name as t_typename,
V.id as v_id,
V.status AS v_status,
V.masterid AS v_masterid,
V.delflag as v_delflag,
V.redflag as v_redflag,
V.unitid,
V.readtime,
U.id as u_id,
U.caption AS u_username,
M.id as m_id,
M.url as m_url,
M.suserid AS m_suserid,
M.sdt AS m_sdt,
M.content AS m_content,
M.typeid AS m_typeid,
M.insdt AS m_insdt,
M.issms AS m_issms,
M.pid AS m_pid,
M.redflag AS m_redflag,
M.sendview AS m_sendview
FROM TB_MESSAGE M
LEFT OUTER JOIN TB_MESSAGE_RECV V ON M.id = V.masterid
LEFT OUTER JOIN TB_User U ON M.suserid = U.id
LEFT OUTER JOIN TB_MESSAGE_TYPE T ON M.typeid = T.id
${where}
</select>
<!-- 获取实时表中的消息 -->
<select id="getMsgrecv_RU" resultMap="ClassResultMaprecv" parameterType="java.lang.String">
SELECT
T.id as t_id,
T.name as t_typename,
V.id as v_id,
V.status AS v_status,
V.masterid AS v_masterid,
V.delflag as v_delflag,
V.redflag as v_redflag,
V.unitid,
V.readtime,
U.id as u_id,
U.caption AS u_username,
M.id as m_id,
M.url as m_url,
M.suserid AS m_suserid,
M.sdt AS m_sdt,
M.content AS m_content,
M.typeid AS m_typeid,
M.insdt AS m_insdt,
M.issms AS m_issms,
M.pid AS m_pid,
M.redflag AS m_redflag,
M.sendview AS m_sendview
FROM TB_MESSAGE M
LEFT OUTER JOIN TB_MESSAGE_RECV_RU V ON M.id = V.masterid
LEFT OUTER JOIN TB_User U ON M.suserid = U.id
LEFT OUTER JOIN TB_MESSAGE_TYPE T ON M.typeid = T.id
${where}
</select>
<select id="getMsgrecvTop1" resultMap="ClassResultMaprecv" parameterType="java.lang.String">
SELECT Top 1
T.id as t_id,
T.name as t_typename,
V.id as v_id,
V.status AS v_status,
V.masterid AS v_masterid,
V.delflag as v_delflag,
V.redflag as v_redflag,
V.unitid,
V.readtime,
U.id as u_id,
U.caption AS u_username,
U.name as u_name,
M.id as m_id,
M.url as m_url,
M.suserid AS m_suserid,
M.sdt AS m_sdt,
M.content AS m_content,
M.typeid AS m_typeid,
M.issms AS m_issms,
M.pid AS m_pid,
M.redflag AS m_redflag,
M.sendview AS m_sendview
FROM TB_MESSAGE M
LEFT OUTER JOIN TB_MESSAGE_RECV V ON M.id = V.masterid
LEFT OUTER JOIN TB_User U ON M.suserid = U.id
LEFT OUTER JOIN TB_MESSAGE_TYPE T ON M.typeid = T.id
${where}
</select>
<resultMap id="ClassResultMapsendlist" type="com.sipai.entity.msg.Msg">
<id property="id" column="m_id" />
<result property="url" column="m_url"/>
<result property="suserid" column="m_suserid"/>
<result property="sdt" column="m_sdt"/>
<result property="content" column="m_content"/>
<result property="typeid" column="m_typeid"/>
<result property="insdt" column="m_insdt"/>
<result property="issms" column="m_issms"/>
<result property="redflag" column="m_redflag"/>
<result property="sendview" column="m_sendview"/>
<result property="pid" column="m_pid"/>
<association property="susername" resultMap="userResult" />
<association property="typename" resultMap="typeResult" />
</resultMap>
<resultMap id="ClassResultMaprecv" type="com.sipai.entity.msg.Msg">
<id property="id" column="m_id" />
<result property="url" column="m_url"/>
<result property="suserid" column="m_suserid"/>
<result property="sdt" column="m_sdt"/>
<result property="content" column="m_content"/>
<result property="typeid" column="m_typeid"/>
<result property="insdt" column="m_insdt"/>
<result property="issms" column="m_issms"/>
<result property="redflag" column="m_redflag"/>
<result property="sendview" column="m_sendview"/>
<result property="pid" column="m_pid"/>
<association property="susername" resultMap="userResult" />
<association property="typename" resultMap="typeResult" />
<collection property="mrecv" ofType="com.sipai.entity.msg.MsgRecv" >
<id property="id" column="v_id"/>
<result property="status" column="v_status"/>
<result property="masterid" column="v_masterid"/>
<result property="delflag" column="v_delflag"/>
<result property="unitid" column="unitid"/>
<result property="readtime" column="readtime"/>
<result property="redflag" column="v_redflag"/>
</collection>
</resultMap>
<resultMap id="userResult" type="com.sipai.entity.user.User">
<id property="id" column="u_id"/>
<result property="caption" column="u_username"/>
<result property="name" column="u_name"/>
</resultMap>
<resultMap id="typeResult" type="com.sipai.entity.msg.MsgType">
<id property="id" column="t_id"/>
<result property="name" column="t_typename"/>
</resultMap>
<update id="updateBySetAndWhere" parameterType="com.sipai.entity.msg.Msg" >
update TB_MESSAGE
${where}
</update>
</mapper>

View File

@ -0,0 +1,159 @@
<?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="msg.MsgRecvMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.msg.MsgRecv" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="masterid" property="masterid" jdbcType="VARCHAR" />
<result column="unitid" property="unitid" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="VARCHAR" />
<result column="readtime" property="readtime" jdbcType="TIMESTAMP" />
<result column="delflag" property="delflag" jdbcType="VARCHAR" />
<result column="redflag" property="redflag" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Base_Column_List" >
id, masterid, unitid, status, readtime, delflag, insuser, insdt,redflag
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_RECV
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TB_MESSAGE_RECV
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.msg.MsgRecv" >
insert into TB_MESSAGE_RECV (id, masterid, unitid,
status, readtime, delflag,
insuser, insdt,redflag)
values (#{id,jdbcType=VARCHAR}, #{masterid,jdbcType=VARCHAR}, #{unitid,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR}, #{readtime,jdbcType=TIMESTAMP}, #{delflag,jdbcType=VARCHAR},
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{redflag,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.msg.MsgRecv" >
insert into TB_MESSAGE_RECV
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="masterid != null" >
masterid,
</if>
<if test="unitid != null" >
unitid,
</if>
<if test="status != null" >
status,
</if>
<if test="readtime != null" >
readtime,
</if>
<if test="delflag != null" >
delflag,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="redflag != null" >
redflag,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="masterid != null" >
#{masterid,jdbcType=VARCHAR},
</if>
<if test="unitid != null" >
#{unitid,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="readtime != null" >
#{readtime,jdbcType=TIMESTAMP},
</if>
<if test="delflag != null" >
#{delflag,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="redflag != null" >
#{redflag,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.msg.MsgRecv" >
update TB_MESSAGE_RECV
<set >
<if test="masterid != null" >
masterid = #{masterid,jdbcType=VARCHAR},
</if>
<if test="unitid != null" >
unitid = #{unitid,jdbcType=VARCHAR},
</if>
<if test="status != null" >
status = #{status,jdbcType=VARCHAR},
</if>
<if test="readtime != null" >
readtime = #{readtime,jdbcType=TIMESTAMP},
</if>
<if test="delflag != null" >
delflag = #{delflag,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="redflag != null" >
redflag = #{redflag,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.msg.MsgRecv" >
update TB_MESSAGE_RECV
set masterid = #{masterid,jdbcType=VARCHAR},
unitid = #{unitid,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
readtime = #{readtime,jdbcType=TIMESTAMP},
delflag = #{delflag,jdbcType=VARCHAR},
insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
redflag = #{redflag,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_RECV
${where}
</select>
<select id="selectByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_RECV
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from TB_MESSAGE_RECV
${where}
</delete>
<update id="updateBySetAndWhere" parameterType="com.sipai.entity.msg.MsgRecv" >
update TB_MESSAGE_RECV
${where}
</update>
</mapper>

View File

@ -0,0 +1,109 @@
<?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="msg.MsgRoleMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.msg.MsgRole" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="masterid" property="masterid" jdbcType="VARCHAR" />
<result column="roleid" property="roleid" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Base_Column_List" >
id, masterid, roleid, insuser, insdt
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE_role
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TB_MESSAGE_TYPE_role
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.msg.MsgRole" >
insert into TB_MESSAGE_TYPE_role (id, masterid, roleid,
insuser, insdt)
values (#{id,jdbcType=VARCHAR}, #{masterid,jdbcType=VARCHAR}, #{roleid,jdbcType=VARCHAR},
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.msg.MsgRole" >
insert into TB_MESSAGE_TYPE_role
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="masterid != null" >
masterid,
</if>
<if test="roleid != null" >
roleid,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="masterid != null" >
#{masterid,jdbcType=VARCHAR},
</if>
<if test="roleid != null" >
#{roleid,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.msg.MsgRole" >
update TB_MESSAGE_TYPE_role
<set >
<if test="masterid != null" >
masterid = #{masterid,jdbcType=VARCHAR},
</if>
<if test="roleid != null" >
roleid = #{roleid,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.msg.MsgRole" >
update TB_MESSAGE_TYPE_role
set masterid = #{masterid,jdbcType=VARCHAR},
roleid = #{roleid,jdbcType=VARCHAR},
insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE_role
${where}
</select>
<select id="selectByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE_role
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from TB_MESSAGE_TYPE_role
${where}
</delete>
</mapper>

View File

@ -0,0 +1,201 @@
<?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="msg.MsgTypeMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.msg.MsgType" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="name" property="name" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="pid" property="pid" jdbcType="VARCHAR" />
<result column="remark" property="remark" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="VARCHAR" />
<result column="sendway" property="sendway" jdbcType="VARCHAR" />
<collection column="id" property="_roleid" jdbcType="VARCHAR" select="selectRoleid" />
<collection column="id" property="_msguserid" jdbcType="VARCHAR" select="selectMsguserid" />
<collection column="id" property="_smsuserid" jdbcType="VARCHAR" select="selectSmsuserid" />
</resultMap>
<select id="selectRoleid" parameterType="String" resultType="String">
select roleid from TB_MESSAGE_TYPE_role where masterid = #{id}
</select>
<select id="selectMsguserid" parameterType="String" resultType="String">
select userid from TB_MESSAGE_TYPE_msguser where masterid = #{id}
</select>
<select id="selectSmsuserid" parameterType="String" resultType="String">
select userid from TB_MESSAGE_TYPE_smsuser where masterid = #{id}
</select>
<sql id="Base_Column_List" >
id, name, insuser, insdt, pid, remark, status,sendway
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TB_MESSAGE_TYPE
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.msg.MsgType" >
insert into TB_MESSAGE_TYPE (id, name, insuser,
insdt, pid, remark, status,sendway
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR},
#{insdt,jdbcType=TIMESTAMP},#{pid,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{sendway,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.msg.MsgType" >
insert into TB_MESSAGE_TYPE
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="name != null" >
name,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="pid != null" >
pid,
</if>
<if test="remark != null" >
remark,
</if>
<if test="status != null" >
status,
</if>
<if test="sendway != null" >
sendway,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="pid != null" >
#{pid,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
#{remark,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="sendway != null" >
#{sendway,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.msg.MsgType" >
update TB_MESSAGE_TYPE
<set >
<if test="name != null" >
name = #{name,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="pid != null" >
pid = #{pid,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="status != null" >
status = #{status,jdbcType=VARCHAR},
</if>
<if test="sendway != null" >
sendway = #{sendway,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.msg.MsgType" >
update TB_MESSAGE_TYPE
set name = #{name,jdbcType=VARCHAR},
insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
pid = #{pid,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
sendway = #{sendway,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE
${where}
</select>
<select id="selectByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from TB_MESSAGE_TYPE
${where}
</delete>
<select id="getMsgType" resultMap="ClassResultMapMsgType" parameterType="java.lang.String">
SELECT
T.id as t_id,
T.name as t_typename,
T.pid,
T.status,
T.insuser,
T.insdt,
T.sendway,
T.remark,
R.id as r_id,
R.roleid as r_roleid,
M.id as m_id,
M.userid as m_userid,
S.id as s_id,
S.userid as s_userid
FROM TB_MESSAGE_TYPE T
LEFT OUTER JOIN TB_MESSAGE_TYPE_role R ON R.masterid = T.id
LEFT OUTER JOIN TB_MESSAGE_TYPE_msguser M ON M.masterid = T.id
LEFT OUTER JOIN TB_MESSAGE_TYPE_smsuser S ON S.masterid = T.id
${where}
</select>
<resultMap id="ClassResultMapMsgType" type="com.sipai.entity.msg.MsgType">
<id property="id" column="t_id" />
<result property="name" column="t_typename"/>
<result property="pid" column="pid"/>
<result property="status" column="status"/>
<result property="insuser" column="insuser"/>
<result property="insdt" column="insdt"/>
<result property="sendway" column="sendway"/>
<result property="remark" column="remark"/>
<collection property="role" ofType="com.sipai.entity.msg.MsgRole" >
<id property="id" column="r_id"/>
<result property="roleid" column="r_roleid"/>
</collection>
<collection property="msguser" ofType="com.sipai.entity.msg.Msguser" >
<id property="id" column="m_id"/>
<result property="userid" column="m_userid"/>
</collection>
<collection property="smsuser" ofType="com.sipai.entity.msg.Smsuser" >
<id property="id" column="s_id"/>
<result property="userid" column="s_userid"/>
</collection>
</resultMap>
</mapper>

View File

@ -0,0 +1,109 @@
<?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="msg.MsguserMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.msg.Msguser" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="masterid" property="masterid" jdbcType="VARCHAR" />
<result column="userid" property="userid" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Base_Column_List" >
id, masterid, userid, insuser, insdt
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE_msguser
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TB_MESSAGE_TYPE_msguser
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.msg.Msguser" >
insert into TB_MESSAGE_TYPE_msguser (id, masterid, userid,
insuser, insdt)
values (#{id,jdbcType=VARCHAR}, #{masterid,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR},
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.msg.Msguser" >
insert into TB_MESSAGE_TYPE_msguser
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="masterid != null" >
masterid,
</if>
<if test="userid != null" >
userid,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="masterid != null" >
#{masterid,jdbcType=VARCHAR},
</if>
<if test="userid != null" >
#{userid,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.msg.Msguser" >
update TB_MESSAGE_TYPE_msguser
<set >
<if test="masterid != null" >
masterid = #{masterid,jdbcType=VARCHAR},
</if>
<if test="userid != null" >
userid = #{userid,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.msg.Msguser" >
update TB_MESSAGE_TYPE_msguser
set masterid = #{masterid,jdbcType=VARCHAR},
userid = #{userid,jdbcType=VARCHAR},
insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE_msguser
${where}
</select>
<select id="selectByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE_msguser
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from TB_MESSAGE_TYPE_msguser
${where}
</delete>
</mapper>

View File

@ -0,0 +1,109 @@
<?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="msg.SmsuserMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.msg.Smsuser" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="masterid" property="masterid" jdbcType="VARCHAR" />
<result column="userid" property="userid" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Base_Column_List" >
id, masterid, userid, insuser, insdt
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE_smsuser
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TB_MESSAGE_TYPE_smsuser
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.msg.Smsuser" >
insert into TB_MESSAGE_TYPE_smsuser (id, masterid, userid,
insuser, insdt)
values (#{id,jdbcType=VARCHAR}, #{masterid,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR},
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.msg.Smsuser" >
insert into TB_MESSAGE_TYPE_smsuser
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="masterid != null" >
masterid,
</if>
<if test="userid != null" >
userid,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="masterid != null" >
#{masterid,jdbcType=VARCHAR},
</if>
<if test="userid != null" >
#{userid,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.msg.Smsuser" >
update TB_MESSAGE_TYPE_smsuser
<set >
<if test="masterid != null" >
masterid = #{masterid,jdbcType=VARCHAR},
</if>
<if test="userid != null" >
userid = #{userid,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.msg.Smsuser" >
update TB_MESSAGE_TYPE_smsuser
set masterid = #{masterid,jdbcType=VARCHAR},
userid = #{userid,jdbcType=VARCHAR},
insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE_smsuser
${where}
</select>
<select id="selectByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_MESSAGE_TYPE_smsuser
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from TB_MESSAGE_TYPE_smsuser
${where}
</delete>
</mapper>