You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.4 KiB
34 lines
1.4 KiB
<?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.connor.xd.bommanager.LogMapper">
|
|
|
|
<resultMap id="propMapper" type="com.connor.xd.bommanager.AddBean">
|
|
<result property="numString" column="No"></result>
|
|
<result property="username" column="ChangeUser"></result>
|
|
<result property="endTimestamp" column="ChangeDate"></result>
|
|
<result property="ntextString" column="ChangeContent"></result>
|
|
</resultMap>
|
|
|
|
<insert id="loginsert" parameterType="com.connor.xd.bommanager.AddBean">
|
|
INSERT INTO dbo.XD_Bulk_Change_Table(No,ChangeUser,ChangeDate,ChangeContent)
|
|
VALUES(#{numString,jdbcType=VARCHAR}
|
|
,#{username,jdbcType=VARCHAR}
|
|
,#{startDate,jdbcType=DATE}
|
|
,#{ntextString,jdbcType=VARCHAR})
|
|
</insert>
|
|
|
|
<select id="selectAll" resultMap="propMapper" parameterType="com.connor.xd.bommanager.LogBean">
|
|
|
|
select * from dbo.XD_Bulk_Change_Table where ChangeUser=#{user,jdbcType=VARCHAR}
|
|
|
|
<if test="logMessage!=null and startDate!=null and endDate!=null">
|
|
and ChangeContent like #{logMessage} and ChangeDate >=#{startDate} and ChangeDate <=#{endDate}
|
|
</if>
|
|
|
|
|
|
|
|
</select>
|
|
<select id="selectCount" resultType="Integer">
|
|
select count(*) from dbo.XD_Bulk_Change_Table
|
|
</select>
|
|
</mapper> |