Преглед на файлове

git-svn-id: https://192.168.57.71/svn/jsgkj@928 931142cf-59ea-a443-aa0e-51397b428577

xt_yuanxd преди 8 години
родител
ревизия
aa131d0843

+ 103 - 0
gkaqv2/trunk/modules/frame/src/main/resources/com/xt/js/gkaq/frame/mappers/TaskModelMapper.xml

@@ -0,0 +1,103 @@
+<?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.xt.js.gkaq.frame.mappers.TaskModelMapper" >
+  <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.TaskModel" >
+    <id column="ID" property="id" jdbcType="VARCHAR" />
+    <result column="TASK_ID" property="taskId" jdbcType="VARCHAR" />
+    <result column="BUS_ID" property="busId" jdbcType="VARCHAR" />
+    <result column="STEP" property="step" jdbcType="VARCHAR" />
+    <result column="START_TIME" property="startTime" jdbcType="TIMESTAMP" />
+    <result column="START_USER" property="startUser" jdbcType="VARCHAR" />
+    <result column="CURR_NAME" property="currName" jdbcType="VARCHAR" />
+    <result column="RUNNER" property="runner" jdbcType="VARCHAR" />
+    <result column="RUN_TIME" property="runTime" jdbcType="TIMESTAMP" />
+    <result column="AUDIT_TIME" property="auditTime" jdbcType="TIMESTAMP" />
+    <result column="AUDIT_MSG" property="auditMsg" jdbcType="VARCHAR" />
+    <result column="AUDIT_RESULT" property="auditResult" jdbcType="VARCHAR" />
+    <result column="QYLB" property="qylb" jdbcType="CHAR" />
+    <result column="SSQY" property="ssqy" jdbcType="DECIMAL" />
+    <result column="BUS_KEY" property="busKey" jdbcType="VARCHAR" />
+    <result column="AUDIT_USER" property="auditUser" jdbcType="VARCHAR" />
+    <result column="TASK_KEY" property="taskKey" jdbcType="VARCHAR" />
+    <result column="ROLE_CODE" property="roleCode" jdbcType="VARCHAR" />
+    <result column="AUDIT_USERNAME" property="auditUsername" jdbcType="VARCHAR" />
+    <result column="SZD" property="szd" jdbcType="DECIMAL" />
+    <result column="CREATE_TIME" property="createTime" jdbcType="TIMESTAMP" />
+    <result column="UPDATE_TIME" property="updateTime" jdbcType="TIMESTAMP" />
+    <result column="CREATE_USER" property="createUser" jdbcType="VARCHAR" />
+    <result column="UPDATE_USER" property="updateUser" jdbcType="VARCHAR" />
+    <result column="STATE" property="state" jdbcType="CHAR" />
+  </resultMap>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Short" >
+    delete from AQ_BASIC_FRAME_TASK
+    where ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.TaskModel" >
+    insert into AQ_BASIC_FRAME_TASK (ID, TASK_ID, BUS_ID, 
+      STEP, START_TIME, START_USER, 
+      CURR_NAME, RUNNER, RUN_TIME, 
+      AUDIT_TIME, AUDIT_MSG, AUDIT_RESULT, 
+      QYLB, SSQY, BUS_KEY, AUDIT_USER, 
+      TASK_KEY, ROLE_CODE, AUDIT_USERNAME, 
+      SZD, CREATE_TIME, UPDATE_TIME, 
+      CREATE_USER, UPDATE_USER, STATE
+      )
+    values (#{id,jdbcType=VARCHAR}, #{taskId,jdbcType=VARCHAR}, #{busId,jdbcType=VARCHAR}, 
+      #{step,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{startUser,jdbcType=VARCHAR}, 
+      #{currName,jdbcType=VARCHAR}, #{runner,jdbcType=VARCHAR}, #{runTime,jdbcType=TIMESTAMP}, 
+      #{auditTime,jdbcType=TIMESTAMP}, #{auditMsg,jdbcType=VARCHAR}, #{auditResult,jdbcType=VARCHAR}, 
+      #{qylb,jdbcType=CHAR}, #{ssqy,jdbcType=DECIMAL}, #{busKey,jdbcType=VARCHAR}, #{auditUser,jdbcType=VARCHAR}, 
+      #{taskKey,jdbcType=VARCHAR}, #{roleCode,jdbcType=VARCHAR}, #{auditUsername,jdbcType=VARCHAR}, 
+      #{szd,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, 
+      #{createUser,jdbcType=VARCHAR}, #{updateUser,jdbcType=VARCHAR}, #{state,jdbcType=CHAR}
+      )
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.TaskModel" >
+    update AQ_BASIC_FRAME_TASK
+    set TASK_ID = #{taskId,jdbcType=VARCHAR},
+      BUS_ID = #{busId,jdbcType=VARCHAR},
+      STEP = #{step,jdbcType=VARCHAR},
+      START_TIME = #{startTime,jdbcType=TIMESTAMP},
+      START_USER = #{startUser,jdbcType=VARCHAR},
+      CURR_NAME = #{currName,jdbcType=VARCHAR},
+      RUNNER = #{runner,jdbcType=VARCHAR},
+      RUN_TIME = #{runTime,jdbcType=TIMESTAMP},
+      AUDIT_TIME = #{auditTime,jdbcType=TIMESTAMP},
+      AUDIT_MSG = #{auditMsg,jdbcType=VARCHAR},
+      AUDIT_RESULT = #{auditResult,jdbcType=VARCHAR},
+      QYLB = #{qylb,jdbcType=CHAR},
+      SSQY = #{ssqy,jdbcType=DECIMAL},
+      BUS_KEY = #{busKey,jdbcType=VARCHAR},
+      AUDIT_USER = #{auditUser,jdbcType=VARCHAR},
+      TASK_KEY = #{taskKey,jdbcType=VARCHAR},
+      ROLE_CODE = #{roleCode,jdbcType=VARCHAR},
+      AUDIT_USERNAME = #{auditUsername,jdbcType=VARCHAR},
+      SZD = #{szd,jdbcType=DECIMAL},
+      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      CREATE_USER = #{createUser,jdbcType=VARCHAR},
+      UPDATE_USER = #{updateUser,jdbcType=VARCHAR},
+      STATE = #{state,jdbcType=CHAR}
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Short" >
+    select ID, TASK_ID, BUS_ID, STEP, START_TIME, START_USER, CURR_NAME, RUNNER, RUN_TIME, 
+    AUDIT_TIME, AUDIT_MSG, AUDIT_RESULT, QYLB, SSQY, BUS_KEY, AUDIT_USER, TASK_KEY, ROLE_CODE, 
+    AUDIT_USERNAME, SZD, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, STATE
+    from AQ_BASIC_FRAME_TASK
+    where ID = #{id,jdbcType=VARCHAR}
+  </select>
+  <select id="selectAll" resultMap="BaseResultMap" >
+    select ID, TASK_ID, BUS_ID, STEP, START_TIME, START_USER, CURR_NAME, RUNNER, RUN_TIME, 
+    AUDIT_TIME, AUDIT_MSG, AUDIT_RESULT, QYLB, SSQY, BUS_KEY, AUDIT_USER, TASK_KEY, ROLE_CODE, 
+    AUDIT_USERNAME, SZD, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, STATE
+    from AQ_BASIC_FRAME_TASK
+  </select>
+  <select id="selectByTaskId" resultMap="BaseResultMap" parameterType="java.lang.Short" >
+    select ID, TASK_ID, BUS_ID, STEP, START_TIME, START_USER, CURR_NAME, RUNNER, RUN_TIME, 
+    AUDIT_TIME, AUDIT_MSG, AUDIT_RESULT, QYLB, SSQY, BUS_KEY, AUDIT_USER, TASK_KEY, ROLE_CODE, 
+    AUDIT_USERNAME, SZD, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, STATE
+    from AQ_BASIC_FRAME_TASK
+    where TASK_ID = #{taskId,jdbcType=VARCHAR}
+  </select>
+</mapper>

+ 89 - 0
gkaqv2/trunk/modules/frame/src/main/resources/com/xt/js/gkaq/frame/mappers/WfPropModelMapper.xml

@@ -0,0 +1,89 @@
+<?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.xt.js.gkaq.frame.mappers.WfPropModelMapper" >
+  <resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.WfPropModel" >
+    <id column="ID" property="id" jdbcType="VARCHAR" />
+    <result column="WF_KEY" property="wfKey" jdbcType="VARCHAR" />
+    <result column="WF_NAME" property="wfName" jdbcType="VARCHAR" />
+    <result column="ACITIVTY" property="acitivty" jdbcType="VARCHAR" />
+    <result column="ACITIVTY_NAME" property="acitivtyName" jdbcType="VARCHAR" />
+    <result column="NAME" property="name" jdbcType="VARCHAR" />
+    <result column="VALUE" property="value" jdbcType="VARCHAR" />
+    <result column="DISP" property="disp" jdbcType="VARCHAR" />
+    <result column="QYLB" property="qylb" jdbcType="CHAR" />
+    <result column="SSQY" property="ssqy" jdbcType="DECIMAL" />
+    <result column="BYZD1" property="byzd1" jdbcType="VARCHAR" />
+    <result column="BYZD2" property="byzd2" jdbcType="VARCHAR" />
+    <result column="BYZD3" property="byzd3" jdbcType="VARCHAR" />
+    <result column="BYZD4" property="byzd4" jdbcType="VARCHAR" />
+    <result column="BYZD5" property="byzd5" jdbcType="VARCHAR" />
+    <result column="CREATE_TIME" property="createTime" jdbcType="TIMESTAMP" />
+    <result column="UPDATE_TIME" property="updateTime" jdbcType="TIMESTAMP" />
+    <result column="STATE" property="state" jdbcType="CHAR" />
+    <result column="CREATE_USER" property="createUser" jdbcType="VARCHAR" />
+    <result column="UPDATE_USER" property="updateUser" jdbcType="VARCHAR" />
+  </resultMap>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Short" >
+    delete from AQ_BASIC_FRAME_WF_PROP
+    where ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <insert id="insert" parameterType="com.xt.js.gkaq.frame.model.WfPropModel" >
+    insert into AQ_BASIC_FRAME_WF_PROP (ID, WF_KEY, WF_NAME, 
+      ACITIVTY, ACITIVTY_NAME, NAME, 
+      VALUE, DISP, QYLB, SSQY, 
+      BYZD1, BYZD2, BYZD3, 
+      BYZD4, BYZD5, CREATE_TIME, 
+      UPDATE_TIME, STATE, CREATE_USER, 
+      UPDATE_USER)
+    values (#{id,jdbcType=VARCHAR}, #{wfKey,jdbcType=VARCHAR}, #{wfName,jdbcType=VARCHAR}, 
+      #{acitivty,jdbcType=VARCHAR}, #{acitivtyName,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
+      #{value,jdbcType=VARCHAR}, #{disp,jdbcType=VARCHAR}, #{qylb,jdbcType=CHAR}, #{ssqy,jdbcType=DECIMAL}, 
+      #{byzd1,jdbcType=VARCHAR}, #{byzd2,jdbcType=VARCHAR}, #{byzd3,jdbcType=VARCHAR}, 
+      #{byzd4,jdbcType=VARCHAR}, #{byzd5,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{state,jdbcType=CHAR}, #{createUser,jdbcType=VARCHAR}, 
+      #{updateUser,jdbcType=VARCHAR})
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.WfPropModel" >
+    update AQ_BASIC_FRAME_WF_PROP
+    set WF_KEY = #{wfKey,jdbcType=VARCHAR},
+      WF_NAME = #{wfName,jdbcType=VARCHAR},
+      ACITIVTY = #{acitivty,jdbcType=VARCHAR},
+      ACITIVTY_NAME = #{acitivtyName,jdbcType=VARCHAR},
+      NAME = #{name,jdbcType=VARCHAR},
+      VALUE = #{value,jdbcType=VARCHAR},
+      DISP = #{disp,jdbcType=VARCHAR},
+      QYLB = #{qylb,jdbcType=CHAR},
+      SSQY = #{ssqy,jdbcType=DECIMAL},
+      BYZD1 = #{byzd1,jdbcType=VARCHAR},
+      BYZD2 = #{byzd2,jdbcType=VARCHAR},
+      BYZD3 = #{byzd3,jdbcType=VARCHAR},
+      BYZD4 = #{byzd4,jdbcType=VARCHAR},
+      BYZD5 = #{byzd5,jdbcType=VARCHAR},
+      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      STATE = #{state,jdbcType=CHAR},
+      CREATE_USER = #{createUser,jdbcType=VARCHAR},
+      UPDATE_USER = #{updateUser,jdbcType=VARCHAR}
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Short" >
+    select ID, WF_KEY, WF_NAME, ACITIVTY, ACITIVTY_NAME, NAME, VALUE, DISP, QYLB, SSQY, 
+    BYZD1, BYZD2, BYZD3, BYZD4, BYZD5, CREATE_TIME, UPDATE_TIME, STATE, CREATE_USER, 
+    UPDATE_USER
+    from AQ_BASIC_FRAME_WF_PROP
+    where ID = #{id,jdbcType=VARCHAR}
+  </select>
+  <select id="selectAll" resultMap="BaseResultMap" >
+    select ID, WF_KEY, WF_NAME, ACITIVTY, ACITIVTY_NAME, NAME, VALUE, DISP, QYLB, SSQY, 
+    BYZD1, BYZD2, BYZD3, BYZD4, BYZD5, CREATE_TIME, UPDATE_TIME, STATE, CREATE_USER, 
+    UPDATE_USER
+    from AQ_BASIC_FRAME_WF_PROP
+  </select>
+  <select id="selectByCondition" resultMap="BaseResultMap" parameterType="java.lang.Short" >
+    select ID, WF_KEY, WF_NAME, ACITIVTY, ACITIVTY_NAME, NAME, VALUE, DISP, QYLB, SSQY, 
+    BYZD1, BYZD2, BYZD3, BYZD4, BYZD5, CREATE_TIME, UPDATE_TIME, STATE, CREATE_USER, 
+    UPDATE_USER
+    from AQ_BASIC_FRAME_WF_PROP
+    where WF_KEY = #{wfKey,jdbcType=VARCHAR} and ACITIVTY=#{acitivty,jdbcType=VARCHAR} and NAME=#{name,jdbcType=VARCHAR} and state<>'9'
+  </select>
+</mapper>