对比新文件 |
| | |
| | | <?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.AssessApplyMapper" > |
| | | <sql id="Base_Column_List" > |
| | | <!-- --> |
| | | id, type, code, status, requestor, submittime, approver, approvetime, approvenote, |
| | | enterprisename, enterprisenumber, ispunish, path1, path2, punishmentreason, punishmentmeasure, |
| | | createtime, modifytime, lastrejecttime |
| | | </sql> |
| | | |
| | | <select id="selectPages" resultType="com.gk.firework.Domain.AssessApply"> |
| | | select * |
| | | from assessapply |
| | | where validflag = 1 |
| | | and type = #{params.type} |
| | | <if test="params.requestorid != null and params.requestorid != ''"> |
| | | and requestorid = #{params.requestorid} |
| | | </if> |
| | | <if test="params.enterprisename != null and params.enterprisename != ''"> |
| | | and enterprisename like concat("%",#{params.enterprisename},"%") |
| | | </if> |
| | | <if test="params.status != null and params.status != ''"> |
| | | and status = #{params.status} |
| | | </if> |
| | | <if test="params.code != null and params.code != ''"> |
| | | and code like concat("%",#{params.code},"%") |
| | | </if> |
| | | order by createtime desc |
| | | </select> |
| | | <select id="selectAllPunishingSaleAssessApply" resultType="com.gk.firework.Domain.AssessApply"> |
| | | select * |
| | | from assessapply |
| | | where validflag = 1 |
| | | and type = #{sale} |
| | | and punishstatus = #{punishing} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > |
| | | <!-- --> |
| | | delete from assessapply |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.AssessApply" > |
| | | <!-- --> |
| | | update assessapply |
| | | <set > |
| | | <if test="type != null" > |
| | | type = #{type,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="code != null" > |
| | | code = #{code,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="status != null" > |
| | | status = #{status,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="requestor != null" > |
| | | requestor = #{requestor,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="submittime != null" > |
| | | submittime = #{submittime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="approver != null" > |
| | | approver = #{approver,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="approvetime != null" > |
| | | approvetime = #{approvetime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="approvenote != null" > |
| | | approvenote = #{approvenote,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="enterprisename != null" > |
| | | enterprisename = #{enterprisename,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="enterprisenumber != null" > |
| | | enterprisenumber = #{enterprisenumber,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="ispunish != null" > |
| | | ispunish = #{ispunish,jdbcType=BIT}, |
| | | </if> |
| | | <if test="path1 != null" > |
| | | path1 = #{path1,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="path2 != null" > |
| | | path2 = #{path2,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="punishmentreason != null" > |
| | | punishmentreason = #{punishmentreason,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="punishmentmeasure != null" > |
| | | punishmentmeasure = #{punishmentmeasure,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="createtime != null" > |
| | | createtime = #{createtime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="modifytime != null" > |
| | | modifytime = #{modifytime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="lastrejecttime != null" > |
| | | lastrejecttime = #{lastrejecttime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.AssessApply" > |
| | | <!-- --> |
| | | update assessapply |
| | | set type = #{type,jdbcType=VARCHAR}, |
| | | code = #{code,jdbcType=VARCHAR}, |
| | | status = #{status,jdbcType=VARCHAR}, |
| | | requestor = #{requestor,jdbcType=VARCHAR}, |
| | | submittime = #{submittime,jdbcType=TIMESTAMP}, |
| | | approver = #{approver,jdbcType=VARCHAR}, |
| | | approvetime = #{approvetime,jdbcType=TIMESTAMP}, |
| | | approvenote = #{approvenote,jdbcType=VARCHAR}, |
| | | enterprisename = #{enterprisename,jdbcType=VARCHAR}, |
| | | enterprisenumber = #{enterprisenumber,jdbcType=VARCHAR}, |
| | | ispunish = #{ispunish,jdbcType=BIT}, |
| | | path1 = #{path1,jdbcType=VARCHAR}, |
| | | path2 = #{path2,jdbcType=VARCHAR}, |
| | | punishmentreason = #{punishmentreason,jdbcType=VARCHAR}, |
| | | punishmentmeasure = #{punishmentmeasure,jdbcType=VARCHAR}, |
| | | createtime = #{createtime,jdbcType=TIMESTAMP}, |
| | | modifytime = #{modifytime,jdbcType=TIMESTAMP}, |
| | | lastrejecttime = #{lastrejecttime,jdbcType=TIMESTAMP} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |