|
|
@@ -0,0 +1,248 @@
|
|
|
+<?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.usoftchina.saas.commons.mapper.SysprintsetMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.usoftchina.saas.commons.po.SysPrintSet" >
|
|
|
+ <id column="ID" property="id" jdbcType="INTEGER" />
|
|
|
+ <result column="CALLER" property="caller" jdbcType="VARCHAR" />
|
|
|
+ <result column="REPORTNAME" property="reportname" jdbcType="VARCHAR" />
|
|
|
+ <result column="TITLE" property="title" jdbcType="VARCHAR" />
|
|
|
+ <result column="ISDEFAULT" property="isdefault" jdbcType="INTEGER" />
|
|
|
+ <result column="NEEDAUDIT" property="needaudit" jdbcType="INTEGER" />
|
|
|
+ <result column="NOPOST" property="nopost" jdbcType="INTEGER" />
|
|
|
+ <result column="NEEDENOUGHSTOCK" property="needenoughstock" jdbcType="INTEGER" />
|
|
|
+ <result column="COUNTFIELD" property="countfield" jdbcType="VARCHAR" />
|
|
|
+ <result column="STATUSFIELD" property="statusfield" jdbcType="VARCHAR" />
|
|
|
+ <result column="STATUSCODEFIELD" property="statuscodefield" jdbcType="VARCHAR" />
|
|
|
+ <result column="ALLOWMULTIPLE" property="allowmultiple" jdbcType="INTEGER" />
|
|
|
+ <result column="HANDLERMETHOD" property="handlermethod" jdbcType="VARCHAR" />
|
|
|
+ <result column="DEFAULTCONDITION" property="defaultcondition" jdbcType="VARCHAR" />
|
|
|
+ <result column="PRINTTYPE" property="printtype" jdbcType="VARCHAR" />
|
|
|
+ <result column="PROCEDURENAME" property="procedureName" jdbcType="VARCHAR" />
|
|
|
+ <result column="IGNOREPAGE" property="ignorepage" jdbcType="INTEGER" />
|
|
|
+ <result column="companyid" property="companyId" jdbcType="INTEGER" />
|
|
|
+ <result column="keyfield" property="keyfield" jdbcType="VARCHAR" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List" >
|
|
|
+ ID, CALLER, REPORTNAME, TITLE, ISDEFAULT, NEEDAUDIT, NOPOST, NEEDENOUGHSTOCK, COUNTFIELD,
|
|
|
+ STATUSFIELD, STATUSCODEFIELD, ALLOWMULTIPLE, HANDLERMETHOD, DEFAULTCONDITION, PRINTTYPE,
|
|
|
+ PROCEDURENAME, IGNOREPAGE
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from sysprintset
|
|
|
+ where ID = #{ID,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
+ delete from sysprintset
|
|
|
+ where ID = #{ID,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.usoftchina.saas.commons.po.SysPrintSet" >
|
|
|
+ insert into sysprintset (ID, CALLER, REPORTNAME,
|
|
|
+ TITLE, ISDEFAULT, NEEDAUDIT,
|
|
|
+ NOPOST, NEEDENOUGHSTOCK, COUNTFIELD,
|
|
|
+ STATUSFIELD, STATUSCODEFIELD, ALLOWMULTIPLE,
|
|
|
+ HANDLERMETHOD, DEFAULTCONDITION, PRINTTYPE,
|
|
|
+ PROCEDURENAME, IGNOREPAGE)
|
|
|
+ values (#{ID,jdbcType=INTEGER}, #{CALLER,jdbcType=VARCHAR}, #{REPORTNAME,jdbcType=VARCHAR},
|
|
|
+ #{TITLE,jdbcType=VARCHAR}, #{ISDEFAULT,jdbcType=INTEGER}, #{NEEDAUDIT,jdbcType=INTEGER},
|
|
|
+ #{NOPOST,jdbcType=INTEGER}, #{NEEDENOUGHSTOCK,jdbcType=INTEGER}, #{COUNTFIELD,jdbcType=VARCHAR},
|
|
|
+ #{STATUSFIELD,jdbcType=VARCHAR}, #{STATUSCODEFIELD,jdbcType=VARCHAR}, #{ALLOWMULTIPLE,jdbcType=INTEGER},
|
|
|
+ #{HANDLERMETHOD,jdbcType=VARCHAR}, #{DEFAULTCONDITION,jdbcType=VARCHAR}, #{PRINTTYPE,jdbcType=VARCHAR},
|
|
|
+ #{PROCEDURENAME,jdbcType=VARCHAR}, #{IGNOREPAGE,jdbcType=INTEGER})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.usoftchina.saas.commons.po.SysPrintSet" >
|
|
|
+ insert into sysprintset
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="ID != null" >
|
|
|
+ ID,
|
|
|
+ </if>
|
|
|
+ <if test="CALLER != null" >
|
|
|
+ CALLER,
|
|
|
+ </if>
|
|
|
+ <if test="REPORTNAME != null" >
|
|
|
+ REPORTNAME,
|
|
|
+ </if>
|
|
|
+ <if test="TITLE != null" >
|
|
|
+ TITLE,
|
|
|
+ </if>
|
|
|
+ <if test="ISDEFAULT != null" >
|
|
|
+ ISDEFAULT,
|
|
|
+ </if>
|
|
|
+ <if test="NEEDAUDIT != null" >
|
|
|
+ NEEDAUDIT,
|
|
|
+ </if>
|
|
|
+ <if test="NOPOST != null" >
|
|
|
+ NOPOST,
|
|
|
+ </if>
|
|
|
+ <if test="NEEDENOUGHSTOCK != null" >
|
|
|
+ NEEDENOUGHSTOCK,
|
|
|
+ </if>
|
|
|
+ <if test="COUNTFIELD != null" >
|
|
|
+ COUNTFIELD,
|
|
|
+ </if>
|
|
|
+ <if test="STATUSFIELD != null" >
|
|
|
+ STATUSFIELD,
|
|
|
+ </if>
|
|
|
+ <if test="STATUSCODEFIELD != null" >
|
|
|
+ STATUSCODEFIELD,
|
|
|
+ </if>
|
|
|
+ <if test="ALLOWMULTIPLE != null" >
|
|
|
+ ALLOWMULTIPLE,
|
|
|
+ </if>
|
|
|
+ <if test="HANDLERMETHOD != null" >
|
|
|
+ HANDLERMETHOD,
|
|
|
+ </if>
|
|
|
+ <if test="DEFAULTCONDITION != null" >
|
|
|
+ DEFAULTCONDITION,
|
|
|
+ </if>
|
|
|
+ <if test="PRINTTYPE != null" >
|
|
|
+ PRINTTYPE,
|
|
|
+ </if>
|
|
|
+ <if test="PROCEDURENAME != null" >
|
|
|
+ PROCEDURENAME,
|
|
|
+ </if>
|
|
|
+ <if test="IGNOREPAGE != null" >
|
|
|
+ IGNOREPAGE,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="ID != null" >
|
|
|
+ #{ID,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="CALLER != null" >
|
|
|
+ #{CALLER,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="REPORTNAME != null" >
|
|
|
+ #{REPORTNAME,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="TITLE != null" >
|
|
|
+ #{TITLE,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ISDEFAULT != null" >
|
|
|
+ #{ISDEFAULT,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="NEEDAUDIT != null" >
|
|
|
+ #{NEEDAUDIT,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="NOPOST != null" >
|
|
|
+ #{NOPOST,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="NEEDENOUGHSTOCK != null" >
|
|
|
+ #{NEEDENOUGHSTOCK,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="COUNTFIELD != null" >
|
|
|
+ #{COUNTFIELD,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="STATUSFIELD != null" >
|
|
|
+ #{STATUSFIELD,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="STATUSCODEFIELD != null" >
|
|
|
+ #{STATUSCODEFIELD,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ALLOWMULTIPLE != null" >
|
|
|
+ #{ALLOWMULTIPLE,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="HANDLERMETHOD != null" >
|
|
|
+ #{HANDLERMETHOD,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="DEFAULTCONDITION != null" >
|
|
|
+ #{DEFAULTCONDITION,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="PRINTTYPE != null" >
|
|
|
+ #{PRINTTYPE,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="PROCEDURENAME != null" >
|
|
|
+ #{PROCEDURENAME,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="IGNOREPAGE != null" >
|
|
|
+ #{IGNOREPAGE,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.commons.po.SysPrintSet" >
|
|
|
+ update sysprintset
|
|
|
+ <set >
|
|
|
+ <if test="CALLER != null" >
|
|
|
+ CALLER = #{CALLER,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="REPORTNAME != null" >
|
|
|
+ REPORTNAME = #{REPORTNAME,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="TITLE != null" >
|
|
|
+ TITLE = #{TITLE,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ISDEFAULT != null" >
|
|
|
+ ISDEFAULT = #{ISDEFAULT,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="NEEDAUDIT != null" >
|
|
|
+ NEEDAUDIT = #{NEEDAUDIT,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="NOPOST != null" >
|
|
|
+ NOPOST = #{NOPOST,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="NEEDENOUGHSTOCK != null" >
|
|
|
+ NEEDENOUGHSTOCK = #{NEEDENOUGHSTOCK,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="COUNTFIELD != null" >
|
|
|
+ COUNTFIELD = #{COUNTFIELD,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="STATUSFIELD != null" >
|
|
|
+ STATUSFIELD = #{STATUSFIELD,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="STATUSCODEFIELD != null" >
|
|
|
+ STATUSCODEFIELD = #{STATUSCODEFIELD,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ALLOWMULTIPLE != null" >
|
|
|
+ ALLOWMULTIPLE = #{ALLOWMULTIPLE,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="HANDLERMETHOD != null" >
|
|
|
+ HANDLERMETHOD = #{HANDLERMETHOD,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="DEFAULTCONDITION != null" >
|
|
|
+ DEFAULTCONDITION = #{DEFAULTCONDITION,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="PRINTTYPE != null" >
|
|
|
+ PRINTTYPE = #{PRINTTYPE,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="PROCEDURENAME != null" >
|
|
|
+ PROCEDURENAME = #{PROCEDURENAME,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="IGNOREPAGE != null" >
|
|
|
+ IGNOREPAGE = #{IGNOREPAGE,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where ID = #{ID,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.commons.po.SysPrintSet" >
|
|
|
+ update sysprintset
|
|
|
+ set CALLER = #{CALLER,jdbcType=VARCHAR},
|
|
|
+ REPORTNAME = #{REPORTNAME,jdbcType=VARCHAR},
|
|
|
+ TITLE = #{TITLE,jdbcType=VARCHAR},
|
|
|
+ ISDEFAULT = #{ISDEFAULT,jdbcType=INTEGER},
|
|
|
+ NEEDAUDIT = #{NEEDAUDIT,jdbcType=INTEGER},
|
|
|
+ NOPOST = #{NOPOST,jdbcType=INTEGER},
|
|
|
+ NEEDENOUGHSTOCK = #{NEEDENOUGHSTOCK,jdbcType=INTEGER},
|
|
|
+ COUNTFIELD = #{COUNTFIELD,jdbcType=VARCHAR},
|
|
|
+ STATUSFIELD = #{STATUSFIELD,jdbcType=VARCHAR},
|
|
|
+ STATUSCODEFIELD = #{STATUSCODEFIELD,jdbcType=VARCHAR},
|
|
|
+ ALLOWMULTIPLE = #{ALLOWMULTIPLE,jdbcType=INTEGER},
|
|
|
+ HANDLERMETHOD = #{HANDLERMETHOD,jdbcType=VARCHAR},
|
|
|
+ DEFAULTCONDITION = #{DEFAULTCONDITION,jdbcType=VARCHAR},
|
|
|
+ PRINTTYPE = #{PRINTTYPE,jdbcType=VARCHAR},
|
|
|
+ PROCEDURENAME = #{PROCEDURENAME,jdbcType=VARCHAR},
|
|
|
+ IGNOREPAGE = #{IGNOREPAGE,jdbcType=INTEGER}
|
|
|
+ where ID = #{ID,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <select id="selectSetByCaller" resultType="com.usoftchina.saas.commons.po.SysPrintSet">
|
|
|
+ select * from sysprintset where caller=#{caller} and companyId=#{companyId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectSetByReportName" resultType="com.usoftchina.saas.commons.po.SysPrintSet">
|
|
|
+ select * from sysprintset where caller=#{caller} and reportName=#{reportName} and companyId=#{companyId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectDefaultSetBycaller" resultType="com.usoftchina.saas.commons.po.SysPrintSet">
|
|
|
+ select * from sysprintset where caller=#{caller} and ISDEFAULT=1 and companyId=#{companyId}
|
|
|
+ </select>
|
|
|
+</mapper>
|