对比新文件 |
| | |
| | | <?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.ControlPrintParamMapper" > |
| | | <resultMap id="BaseResultMap" type="com.gk.firework.Domain.ControlPrintParam" > |
| | | <!-- --> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="owner" property="owner" jdbcType="VARCHAR" /> |
| | | <result column="type" property="type" jdbcType="VARCHAR" /> |
| | | <result column="leftbasex" property="leftBaseX" jdbcType="INTEGER" /> |
| | | <result column="rightbasex" property="rightBaseX" jdbcType="INTEGER" /> |
| | | <result column="leftqrx" property="leftQrX" jdbcType="INTEGER" /> |
| | | <result column="rightqrx" property="rightQrX" jdbcType="INTEGER" /> |
| | | <result column="leftframex" property="leftFrameX" jdbcType="INTEGER" /> |
| | | <result column="rightframex" property="rightFrameX" jdbcType="INTEGER" /> |
| | | <result column="framey" property="frameY" jdbcType="INTEGER" /> |
| | | <result column="framewidth" property="frameWidth" jdbcType="INTEGER" /> |
| | | <result column="frameheight" property="frameHeight" jdbcType="INTEGER" /> |
| | | <result column="titleoffsetx" property="titleOffsetX" jdbcType="INTEGER" /> |
| | | <result column="titley" property="titleY" jdbcType="INTEGER" /> |
| | | <result column="barcodey" property="barcodeY" jdbcType="INTEGER" /> |
| | | <result column="barcodewidth" property="barcodeWidth" jdbcType="INTEGER" /> |
| | | <result column="barcodewidthradio" property="barcodeWidthRadio" jdbcType="INTEGER" /> |
| | | <result column="barcodeheight" property="barcodeHeight" jdbcType="INTEGER" /> |
| | | <result column="qrcodemodel" property="qrCodeModel" jdbcType="INTEGER" /> |
| | | <result column="qrcodemagnification" property="qrCodeMagnification" jdbcType="INTEGER" /> |
| | | <result column="qrx" property="qrX" jdbcType="INTEGER" /> |
| | | <result column="qry" property="qrY" jdbcType="INTEGER" /> |
| | | <result column="fontsize1" property="fontsize1" jdbcType="INTEGER" /> |
| | | <result column="fontsize2" property="fontsize2" jdbcType="INTEGER" /> |
| | | <result column="fontsize3" property="fontsize3" jdbcType="INTEGER" /> |
| | | <result column="barcodetexty" property="barcodeTextY" jdbcType="INTEGER" /> |
| | | <result column="itemnamey" property="itemNameY" jdbcType="INTEGER" /> |
| | | <result column="typey" property="typeY" jdbcType="INTEGER" /> |
| | | <result column="datey" property="dateY" jdbcType="INTEGER" /> |
| | | <result column="manufacturery" property="manufacturerY" jdbcType="INTEGER" /> |
| | | <result column="manufacturery2" property="manufacturerY2" jdbcType="INTEGER" /> |
| | | <result column="totaly" property="totalY" jdbcType="INTEGER" /> |
| | | <result column="darkness" property="darkness" jdbcType="INTEGER" /> |
| | | <result column="flag" property="flag" jdbcType="TINYINT" /> |
| | | <result column="content" property="content" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- --> |
| | | id, owner, type, leftbasex, rightbasex, leftqrx, rightqrx, leftframex, rightframex, framey, |
| | | framewidth, frameheight,titleoffsetx, titley, barcodey, barcodewidth, barcodewidthradio, |
| | | barcodeheight, qrcodemodel, qrcodemagnification, qrx, qry, fontsize1, fontsize2, fontsize3, |
| | | barcodetexty, itemnamey, typey, datey, manufacturery, manufacturery2, totaly, flag, content, darkness |
| | | </sql> |
| | | <select id="selectDataGrid" resultType="com.gk.firework.Domain.ControlPrintParam"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from controlprintparam |
| | | <where> |
| | | 1=1 |
| | | <if test="condition.enterprisename != null and condition.enterprisename!=''"> |
| | | and controlprintparam.owner LIKE CONCAT('%',#{condition.enterprisename},'%') |
| | | </if> |
| | | <if test="condition.owner != null and condition.owner !=''"> |
| | | and controlprintparam.owner = #{condition.owner} |
| | | </if> |
| | | <if test="condition.type != null and condition.type != ''"> |
| | | and controlprintparam.type = #{condition.type} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |