对比新文件 |
| | |
| | | <?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.gk.firework.Mapper.PatrolDetailInfoMapper" > |
| | | <resultMap id="BaseResultMap" type="com.gk.firework.Domain.PatrolDetailInfo" > |
| | | <!-- --> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="orderid" property="orderid" jdbcType="BIGINT" /> |
| | | <result column="content" property="content" jdbcType="VARCHAR" /> |
| | | <result column="standard" property="standard" jdbcType="VARCHAR" /> |
| | | <result column="choose" property="choose" jdbcType="VARCHAR" /> |
| | | <result column="reason" property="reason" jdbcType="VARCHAR" /> |
| | | <result column="beforepath" property="beforepath" jdbcType="VARCHAR" /> |
| | | <result column="afterpath" property="afterpath" jdbcType="VARCHAR" /> |
| | | <result column="ismend" property="ismend" jdbcType="TINYINT" /> |
| | | <result column="createdby" property="createdby" jdbcType="VARCHAR" /> |
| | | <result column="createddate" property="createddate" jdbcType="TIMESTAMP" /> |
| | | <result column="modifiedby" property="modifiedby" jdbcType="VARCHAR" /> |
| | | <result column="modifieddate" property="modifieddate" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- --> |
| | | id, orderid, content, standard,choose, reason, beforepath, afterpath, ismend, createdby, |
| | | createddate, modifiedby, modifieddate |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > |
| | | <!-- --> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from patroldetail |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <select id="selectDataGrid" resultType="com.gk.firework.Domain.PatrolDetailInfo"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from patroldetail |
| | | <where> |
| | | 1=1 |
| | | <if test="condition.orderid != null"> |
| | | and orderid = #{condition.orderid} |
| | | </if> |
| | | <if test="condition.ismend != null"> |
| | | and ismend = #{condition.ismend} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="selectIsNotMend" resultType="java.lang.Integer"> |
| | | SELECT COUNT(1) |
| | | from patroldetail |
| | | where |
| | | ismend = 0 |
| | | and orderid = #{orderid} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > |
| | | <!-- --> |
| | | delete from patroldetail |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.PatrolDetailInfo" > |
| | | <!-- --> |
| | | update patroldetail |
| | | <set > |
| | | <if test="orderid != null" > |
| | | orderid = #{orderid,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="content != null" > |
| | | content = #{content,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="standard != null" > |
| | | standard = #{standard,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="choose != null" > |
| | | choose = #{choose,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="reason != null" > |
| | | reason = #{reason,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="beforepath != null" > |
| | | beforepath = #{beforepath,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="afterpath != null" > |
| | | afterpath = #{afterpath,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="ismend != null" > |
| | | ismend = #{ismend,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="createdby != null" > |
| | | createdby = #{createdby,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="createddate != null" > |
| | | createddate = #{createddate,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="modifiedby != null" > |
| | | modifiedby = #{modifiedby,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="modifieddate != null" > |
| | | modifieddate = #{modifieddate,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.PatrolDetailInfo" > |
| | | <!-- --> |
| | | update patroldetail |
| | | set orderid = #{orderid,jdbcType=BIGINT}, |
| | | content = #{content,jdbcType=VARCHAR}, |
| | | standard = #{standard,jdbcType=VARCHAR}, |
| | | choose = #{choose,jdbcType=VARCHAR}, |
| | | reason = #{reason,jdbcType=VARCHAR}, |
| | | beforepath = #{beforepath,jdbcType=VARCHAR}, |
| | | afterpath = #{afterpath,jdbcType=VARCHAR}, |
| | | ismend = #{ismend,jdbcType=TINYINT}, |
| | | createdby = #{createdby,jdbcType=VARCHAR}, |
| | | createddate = #{createddate,jdbcType=TIMESTAMP}, |
| | | modifiedby = #{modifiedby,jdbcType=VARCHAR}, |
| | | modifieddate = #{modifieddate,jdbcType=TIMESTAMP} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |