123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <?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.liang.dao.LsUserDao">
- <resultMap type="com.liang.entity.SysLsUserEntity" id="SysLsUser">
- <result property="id" column="ID" jdbcType="INTEGER"/>
- <result property="xm" column="XM" jdbcType="VARCHAR"/>
- <result property="xb" column="XB" jdbcType="VARCHAR"/>
- <result property="sfzh" column="SFZH" jdbcType="VARCHAR"/>
- <result property="phone" column="PHONE" jdbcType="VARCHAR"/>
- <result property="ygzed" column="YGZED" jdbcType="VARCHAR"/>
- <result property="byxy" column="BYXX" jdbcType="VARCHAR"/>
- <result property="zy" column="ZY" jdbcType="VARCHAR"/>
- <result property="xl" column="XL" jdbcType="VARCHAR"/>
- <result property="gznr" column="GZNR" jdbcType="VARCHAR"/>
- <result property="qpsj" column="QSRQ" jdbcType="VARCHAR"/>
- <result property="dqsj" column="JSRQ" jdbcType="VARCHAR"/>
- <result property="cjr" column="CJR" jdbcType="INTEGER"/>
- <result property="cjsj" column="CJSJ" jdbcType="VARCHAR"/>
- <result property="zt" column="ZT" jdbcType="INTEGER"/>
- <result property="fysq" column="FYSQ" jdbcType="INTEGER"/>
- <result property="xmfzr" column="XMFZR" jdbcType="INTEGER"/>
- <result property="bzfy" column="BZFY" jdbcType="VARCHAR"/>
- <result property="gzdd" column="GZDD" jdbcType="VARCHAR"/>
- <result property="kyfh" column="KYFH" jdbcType="VARCHAR"/>
- <result property="x" column="X" jdbcType="VARCHAR"/>
- </resultMap>
- <select id="UserAll" resultMap="SysLsUser">
- SELECT * FROM sta_TempMember
- WHERE X = 1
- <if test="xm != null and xm != ''">
- and XM like '%'+#{xm}+'%'
- </if>
- <if test="xl != null and xl != ''">
- and xl = #{xl}
- </if>
- <if test="zt != null and zt != ''">
- and ZT = #{zt}
- </if>
- <if test="sfzh != null and sfzh != ''">
- and SFZH = #{sfzh}
- </if>
- order by cjsj DESC
- </select>
- <insert id="saveOperLog" keyProperty="id" useGeneratedKeys="true">
- insert into sta_TempMember
- (
- XM
- ,XB
- ,SFZH
- ,PHONE
- ,BYXX
- ,ZY
- ,XL
- ,GZNR
- ,QSRQ
- ,JSRQ
- ,CJR
- ,CJSJ
- ,ZT
- ,FYSQ
- ,XMFZR
- ,BZFY
- ,GZDD
- ,KYFH
- ,X
- )values(
- #{xm}
- ,#{xb}
- ,#{sfzh}
- ,#{phone}
- ,#{byxy}
- ,#{zy}
- ,#{xl}
- ,#{gznr}
- ,#{qpsj}
- ,#{dqsj}
- ,#{cjr}
- ,#{cjsj}
- ,0
- ,#{fysq}
- ,#{xmfzr}
- ,#{bzfy}
- ,#{gzdd}
- ,#{kyfh}
- ,1
- )
- </insert>
- <delete id="deleteUser" >
- delete * from
- sta_TempMember
- where
- id = #{id}
- </delete>
- <delete id="batchDelete">
- delete from sys_post_lsry
- where ID in
- <foreach item="item" index="index" collection="idList" open = "(" separator = "," close = ")">
- #{item}
- </foreach>
- </delete>
- <update id="upDate" parameterType="com.liang.entity.SysLsUserEntity">
- UPDATE sta_TempMember
- set
- XM = #{xm},
- XB = #{xb},
- SFZH = #{sfzh},
- PHONE = #{phone},
- BYXX = #{byxy},
- ZY = #{zy},
- xl = #{xl},
- GZNR = #{gznr},
- QSRQ = #{qpsj},
- JSRQ = #{dqsj},
- CJR = #{cjr},
- CJSJ = #{cjsj},
- ZT = #{zt},
- FYSQ = #{fysq},
- XMFZR = #{xmfzr},
- BZFY = #{bzfy},
- ZB = #{zb},
- GZDD = #{gzdd},
- X = #{x}
- where ID = #{id}
- </update>
- <select id="getLsuserID" resultMap="SysLsUser">
- SELECT *FROM sta_TempMember
- WHERE
- X = 1
- <if test="ID != null and ID !='' ">
- and ID = #{ID}
- </if>
- </select>
- <select id="getUserxm" resultMap="SysLsUser">
- SELECT *FROM sta_TempMember
- WHERE
- X = 1
- <if test="xm != null and xm !='' ">
- and XM = #{xm}
- </if>
- <if test="sfzh != null and sfzh != ''">
- and sfzh = #{sfzh}
- </if>
- </select>
- <select id="getZb" resultMap="SysLsUser">
- SELECT * FROM sta_TempMember
- where
- x = 1
- <if test="zb != null and zb != ''">
- and ZB = #{zb}
- </if>
- </select>
- </mapper>
|