对比新文件 |
| | |
| | | <?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.EnterpriseStandardizationMapper" > |
| | | <resultMap id="BaseResultMap" type="com.gk.firework.Domain.EnterpriseStandardization" > |
| | | <!-- --> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="level" property="level" jdbcType="VARCHAR" /> |
| | | <result column="licensenumber" property="licensenumber" jdbcType="VARCHAR" /> |
| | | <result column="reviewunit" property="reviewunit" jdbcType="VARCHAR" /> |
| | | <result column="licensingunit" property="licensingunit" jdbcType="VARCHAR" /> |
| | | <result column="score" property="score" jdbcType="DECIMAL" /> |
| | | <result column="validstarttime" property="validstarttime" jdbcType="TIMESTAMP" /> |
| | | <result column="validendtime" property="validendtime" jdbcType="TIMESTAMP" /> |
| | | <result column="createtime" property="createtime" jdbcType="TIMESTAMP" /> |
| | | <result column="createby" property="createby" jdbcType="BIGINT" /> |
| | | <result column="createbyname" property="createbyname" jdbcType="VARCHAR" /> |
| | | <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" /> |
| | | <result column="updateby" property="updateby" jdbcType="BIGINT" /> |
| | | <result column="updatebyname" property="updatebyname" jdbcType="VARCHAR" /> |
| | | <result column="enterpriseid" property="enterpriseid" jdbcType="BIGINT" /> |
| | | <result column="validflag" property="validflag" jdbcType="BIT" /> |
| | | <collection property="enterpriseResources" |
| | | javaType="java.util.List" |
| | | ofType="com.gk.firework.Domain.EnterpriseResource" |
| | | column="{esid=id,tabletype=tabletype}" |
| | | select="selectInner"> |
| | | </collection> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- --> |
| | | id, level, licensenumber, reviewunit, licensingunit, score, validstarttime, validendtime, |
| | | createtime, createby, createbyname, updatetime, updateby, updatebyname, enterpriseid, |
| | | validflag |
| | | </sql> |
| | | <select id="selectPages" resultMap="BaseResultMap"> |
| | | select es.*, |
| | | #{params.tabletype} tabletype |
| | | from enterprisestandardization es |
| | | where es.validflag = 1 |
| | | and es.enterpriseid = #{params.id} |
| | | order by es.createtime desc |
| | | </select> |
| | | |
| | | <select id="selectInner" parameterType = "java.util.Map" resultType="com.gk.firework.Domain.EnterpriseResource"> |
| | | select er.id id, er.url,er.filename,er.tabletype |
| | | from enterpriseresource er |
| | | where er.validflag = 1 |
| | | and er.tabletype= #{tabletype} |
| | | and belongid = #{esid} |
| | | </select> |
| | | |
| | | <select id="selectStandardization" resultMap="BaseResultMap"> |
| | | select es.*, |
| | | #{tabletype} tabletype |
| | | from enterprisestandardization es |
| | | where es.validflag = 1 |
| | | and es.enterpriseid = #{id} |
| | | order by es.createtime desc |
| | | </select> |
| | | |
| | | |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.EnterpriseStandardization" > |
| | | <!-- --> |
| | | update enterprisestandardization |
| | | <set > |
| | | <if test="level != null" > |
| | | level = #{level,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="licensenumber != null" > |
| | | licensenumber = #{licensenumber,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="reviewunit != null" > |
| | | reviewunit = #{reviewunit,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="licensingunit != null" > |
| | | licensingunit = #{licensingunit,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="score != null" > |
| | | score = #{score,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="validstarttime != null" > |
| | | validstarttime = #{validstarttime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="validendtime != null" > |
| | | validendtime = #{validendtime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="createtime != null" > |
| | | createtime = #{createtime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="createby != null" > |
| | | createby = #{createby,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createbyname != null" > |
| | | createbyname = #{createbyname,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="updatetime != null" > |
| | | updatetime = #{updatetime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateby != null" > |
| | | updateby = #{updateby,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updatebyname != null" > |
| | | updatebyname = #{updatebyname,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="validflag != null" > |
| | | validflag = #{validflag,jdbcType=BIT}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |