first commit
This commit is contained in:
@ -0,0 +1,127 @@
|
||||
<?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="process.ProcessConfigMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.ProcessConfig" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="materialCode" property="materialcode" jdbcType="VARCHAR" />
|
||||
<result column="processId" property="processid" jdbcType="VARCHAR" />
|
||||
<result column="procedureNo" property="procedureno" jdbcType="VARCHAR" />
|
||||
<result column="yield" property="yield" jdbcType="DOUBLE" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
id, insdt, insuser, materialCode, processId, procedureNo, yield
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_config
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_config
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.ProcessConfig" >
|
||||
insert into tb_process_config (id, insdt, insuser,
|
||||
materialCode, processId, procedureNo,
|
||||
yield)
|
||||
values (#{id,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{insuser,jdbcType=VARCHAR},
|
||||
#{materialcode,jdbcType=VARCHAR}, #{processid,jdbcType=VARCHAR}, #{procedureno,jdbcType=VARCHAR},
|
||||
#{yield,jdbcType=DOUBLE})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.ProcessConfig" >
|
||||
insert into tb_process_config
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt,
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser,
|
||||
</if>
|
||||
<if test="materialcode != null" >
|
||||
materialCode,
|
||||
</if>
|
||||
<if test="processid != null" >
|
||||
processId,
|
||||
</if>
|
||||
<if test="procedureno != null" >
|
||||
procedureNo,
|
||||
</if>
|
||||
<if test="yield != null" >
|
||||
yield,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
#{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
#{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="materialcode != null" >
|
||||
#{materialcode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="processid != null" >
|
||||
#{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="procedureno != null" >
|
||||
#{procedureno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="yield != null" >
|
||||
#{yield,jdbcType=DOUBLE},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.ProcessConfig" >
|
||||
update tb_process_config
|
||||
<set >
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="materialcode != null" >
|
||||
materialCode = #{materialcode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="processid != null" >
|
||||
processId = #{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="procedureno != null" >
|
||||
procedureNo = #{procedureno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="yield != null" >
|
||||
yield = #{yield,jdbcType=DOUBLE},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.ProcessConfig" >
|
||||
update tb_process_config
|
||||
set insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
materialCode = #{materialcode,jdbcType=VARCHAR},
|
||||
processId = #{processid,jdbcType=VARCHAR},
|
||||
procedureNo = #{procedureno,jdbcType=VARCHAR},
|
||||
yield = #{yield,jdbcType=DOUBLE}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<select id="selectListByWhere" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_config
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String">
|
||||
delete from tb_process_config
|
||||
${where}
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,127 @@
|
||||
<?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="process.ProcessConfig_EMMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.ProcessConfig_EM">
|
||||
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||
<result column="insdt" jdbcType="TIMESTAMP" property="insdt" />
|
||||
<result column="insuser" jdbcType="VARCHAR" property="insuser" />
|
||||
<result column="equipmentClassCode" jdbcType="VARCHAR" property="equipmentclasscode" />
|
||||
<result column="processId" jdbcType="VARCHAR" property="processid" />
|
||||
<result column="procedureNo" jdbcType="VARCHAR" property="procedureno" />
|
||||
<result column="capacity" jdbcType="VARCHAR" property="capacity" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, insdt, insuser, equipmentClassCode, processId, procedureNo, capacity
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_config_em
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from tb_process_config_em
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.ProcessConfig_EM">
|
||||
insert into tb_process_config_em (id, insdt, insuser,
|
||||
equipmentClassCode, processId, procedureNo,
|
||||
capacity)
|
||||
values (#{id,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{insuser,jdbcType=VARCHAR},
|
||||
#{equipmentclasscode,jdbcType=VARCHAR}, #{processid,jdbcType=VARCHAR}, #{procedureno,jdbcType=VARCHAR},
|
||||
#{capacity,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.ProcessConfig_EM">
|
||||
insert into tb_process_config_em
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="insdt != null">
|
||||
insdt,
|
||||
</if>
|
||||
<if test="insuser != null">
|
||||
insuser,
|
||||
</if>
|
||||
<if test="equipmentclasscode != null">
|
||||
equipmentClassCode,
|
||||
</if>
|
||||
<if test="processid != null">
|
||||
processId,
|
||||
</if>
|
||||
<if test="procedureno != null">
|
||||
procedureNo,
|
||||
</if>
|
||||
<if test="capacity != null">
|
||||
capacity,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null">
|
||||
#{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="insuser != null">
|
||||
#{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="equipmentclasscode != null">
|
||||
#{equipmentclasscode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="processid != null">
|
||||
#{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="procedureno != null">
|
||||
#{procedureno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="capacity != null">
|
||||
#{capacity,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.ProcessConfig_EM">
|
||||
update tb_process_config_em
|
||||
<set>
|
||||
<if test="insdt != null">
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="insuser != null">
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="equipmentclasscode != null">
|
||||
equipmentClassCode = #{equipmentclasscode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="processid != null">
|
||||
processId = #{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="procedureno != null">
|
||||
procedureNo = #{procedureno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="capacity != null">
|
||||
capacity = #{capacity,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.ProcessConfig_EM">
|
||||
update tb_process_config_em
|
||||
set insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
equipmentClassCode = #{equipmentclasscode,jdbcType=VARCHAR},
|
||||
processId = #{processid,jdbcType=VARCHAR},
|
||||
procedureNo = #{procedureno,jdbcType=VARCHAR},
|
||||
capacity = #{capacity,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<select id="selectListByWhere" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_config_em
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String">
|
||||
delete from tb_process_config_em
|
||||
${where}
|
||||
</delete>
|
||||
</mapper>
|
||||
171
bin/target/classes/com/sipai/mapper/process/ProcessMapper.xml
Normal file
171
bin/target/classes/com/sipai/mapper/process/ProcessMapper.xml
Normal file
@ -0,0 +1,171 @@
|
||||
<?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="process.ProcessMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.Process" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="name" property="name" jdbcType="VARCHAR" />
|
||||
<result column="display_Name" property="displayName" jdbcType="VARCHAR" />
|
||||
<result column="type" property="type" jdbcType="VARCHAR" />
|
||||
<result column="instance_Url" property="instanceUrl" jdbcType="VARCHAR" />
|
||||
<result column="state" property="state" jdbcType="TINYINT" />
|
||||
<result column="version" property="version" jdbcType="TINYINT" />
|
||||
<result column="create_Time" property="createTime" jdbcType="VARCHAR" />
|
||||
<result column="creator" property="creator" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<resultMap id="ResultMapWithBLOBs" type="com.sipai.entity.process.Process" extends="BaseResultMap" >
|
||||
<result column="content" property="content" jdbcType="BLOB" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
id, name, display_Name, type, instance_Url, state, version, create_Time, creator
|
||||
</sql>
|
||||
<sql id="Blob_Column_List" >
|
||||
content
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from wf_process
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from wf_process
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.Process" >
|
||||
insert into wf_process (id, name, display_Name,
|
||||
type, instance_Url, state,
|
||||
version, create_Time, creator,
|
||||
content)
|
||||
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{displayName,jdbcType=VARCHAR},
|
||||
#{type,jdbcType=VARCHAR}, #{instanceUrl,jdbcType=VARCHAR}, #{state,jdbcType=TINYINT},
|
||||
#{version,jdbcType=TINYINT}, #{createTime,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR},
|
||||
#{content,jdbcType=BLOB})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.Process" >
|
||||
insert into wf_process
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
name,
|
||||
</if>
|
||||
<if test="displayName != null" >
|
||||
display_Name,
|
||||
</if>
|
||||
<if test="type != null" >
|
||||
type,
|
||||
</if>
|
||||
<if test="instanceUrl != null" >
|
||||
instance_Url,
|
||||
</if>
|
||||
<if test="state != null" >
|
||||
state,
|
||||
</if>
|
||||
<if test="version != null" >
|
||||
version,
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
create_Time,
|
||||
</if>
|
||||
<if test="creator != null" >
|
||||
creator,
|
||||
</if>
|
||||
<if test="content != null" >
|
||||
content,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="displayName != null" >
|
||||
#{displayName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null" >
|
||||
#{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="instanceUrl != null" >
|
||||
#{instanceUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="state != null" >
|
||||
#{state,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="version != null" >
|
||||
#{version,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
#{createTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="creator != null" >
|
||||
#{creator,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="content != null" >
|
||||
#{content,jdbcType=BLOB},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.Process" >
|
||||
update wf_process
|
||||
<set >
|
||||
<if test="name != null" >
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="displayName != null" >
|
||||
display_Name = #{displayName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null" >
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="instanceUrl != null" >
|
||||
instance_Url = #{instanceUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="state != null" >
|
||||
state = #{state,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="version != null" >
|
||||
version = #{version,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
create_Time = #{createTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="creator != null" >
|
||||
creator = #{creator,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="content != null" >
|
||||
content = #{content,jdbcType=BLOB},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sipai.entity.process.Process" >
|
||||
update wf_process
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
display_Name = #{displayName,jdbcType=VARCHAR},
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
instance_Url = #{instanceUrl,jdbcType=VARCHAR},
|
||||
state = #{state,jdbcType=TINYINT},
|
||||
version = #{version,jdbcType=TINYINT},
|
||||
create_Time = #{createTime,jdbcType=VARCHAR},
|
||||
creator = #{creator,jdbcType=VARCHAR},
|
||||
content = #{content,jdbcType=BLOB}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.Process" >
|
||||
update wf_process
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
display_Name = #{displayName,jdbcType=VARCHAR},
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
instance_Url = #{instanceUrl,jdbcType=VARCHAR},
|
||||
state = #{state,jdbcType=TINYINT},
|
||||
version = #{version,jdbcType=TINYINT},
|
||||
create_Time = #{createTime,jdbcType=VARCHAR},
|
||||
creator = #{creator,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
||||
@ -0,0 +1,304 @@
|
||||
<?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="process.ProcessTechnicsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.ProcessTechnics">
|
||||
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||
<result column="modelid" jdbcType="VARCHAR" property="modelid" />
|
||||
<result column="processid" jdbcType="VARCHAR" property="processid" />
|
||||
<result column="insdt" jdbcType="TIMESTAMP" property="insdt" />
|
||||
<result column="insuser" jdbcType="VARCHAR" property="insuser" />
|
||||
<result column="MainProcedure" jdbcType="VARCHAR" property="mainprocedure" />
|
||||
<result column="MainProcedureCode" jdbcType="VARCHAR" property="mainprocedurecode" />
|
||||
<result column="SubProcedure" jdbcType="VARCHAR" property="subprocedure" />
|
||||
<result column="SubProcedureCode" jdbcType="VARCHAR" property="subprocedurecode" />
|
||||
<result column="ContentNO" jdbcType="VARCHAR" property="contentno" />
|
||||
<result column="Subject" jdbcType="VARCHAR" property="subject" />
|
||||
<result column="Specifications" jdbcType="VARCHAR" property="specifications" />
|
||||
<result column="Mode" jdbcType="VARCHAR" property="mode" />
|
||||
<result column="Tool" jdbcType="VARCHAR" property="tool" />
|
||||
<result column="Frequency" jdbcType="VARCHAR" property="frequency" />
|
||||
<result column="People" jdbcType="VARCHAR" property="people" />
|
||||
<result column="Rejects" jdbcType="VARCHAR" property="rejects" />
|
||||
<result column="FileName" jdbcType="VARCHAR" property="filename" />
|
||||
<result column="FileId" jdbcType="VARCHAR" property="fileid" />
|
||||
<result column="FormName" jdbcType="VARCHAR" property="formname" />
|
||||
<result column="FormId" jdbcType="VARCHAR" property="formid" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, modelid, processid, insdt, insuser, MainProcedure, MainProcedureCode, SubProcedure,
|
||||
SubProcedureCode, ContentNO, Subject, Specifications, Mode, Tool, Frequency, People,
|
||||
Rejects, FileName, FileId, FormName, FormId, remark
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_technics
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from tb_process_technics
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.ProcessTechnics">
|
||||
insert into tb_process_technics (id, modelid, processid,
|
||||
insdt, insuser, MainProcedure,
|
||||
MainProcedureCode, SubProcedure, SubProcedureCode,
|
||||
ContentNO, Subject, Specifications,
|
||||
Mode, Tool, Frequency,
|
||||
People, Rejects, FileName,
|
||||
FileId, FormName, FormId,
|
||||
remark)
|
||||
values (#{id,jdbcType=VARCHAR}, #{modelid,jdbcType=VARCHAR}, #{processid,jdbcType=VARCHAR},
|
||||
#{insdt,jdbcType=TIMESTAMP}, #{insuser,jdbcType=VARCHAR}, #{mainprocedure,jdbcType=VARCHAR},
|
||||
#{mainprocedurecode,jdbcType=VARCHAR}, #{subprocedure,jdbcType=VARCHAR}, #{subprocedurecode,jdbcType=VARCHAR},
|
||||
#{contentno,jdbcType=VARCHAR}, #{subject,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR},
|
||||
#{mode,jdbcType=VARCHAR}, #{tool,jdbcType=VARCHAR}, #{frequency,jdbcType=VARCHAR},
|
||||
#{people,jdbcType=VARCHAR}, #{rejects,jdbcType=VARCHAR}, #{filename,jdbcType=VARCHAR},
|
||||
#{fileid,jdbcType=VARCHAR}, #{formname,jdbcType=VARCHAR}, #{formid,jdbcType=VARCHAR},
|
||||
#{remark,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.ProcessTechnics">
|
||||
insert into tb_process_technics
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="modelid != null">
|
||||
modelid,
|
||||
</if>
|
||||
<if test="processid != null">
|
||||
processid,
|
||||
</if>
|
||||
<if test="insdt != null">
|
||||
insdt,
|
||||
</if>
|
||||
<if test="insuser != null">
|
||||
insuser,
|
||||
</if>
|
||||
<if test="mainprocedure != null">
|
||||
MainProcedure,
|
||||
</if>
|
||||
<if test="mainprocedurecode != null">
|
||||
MainProcedureCode,
|
||||
</if>
|
||||
<if test="subprocedure != null">
|
||||
SubProcedure,
|
||||
</if>
|
||||
<if test="subprocedurecode != null">
|
||||
SubProcedureCode,
|
||||
</if>
|
||||
<if test="contentno != null">
|
||||
ContentNO,
|
||||
</if>
|
||||
<if test="subject != null">
|
||||
Subject,
|
||||
</if>
|
||||
<if test="specifications != null">
|
||||
Specifications,
|
||||
</if>
|
||||
<if test="mode != null">
|
||||
Mode,
|
||||
</if>
|
||||
<if test="tool != null">
|
||||
Tool,
|
||||
</if>
|
||||
<if test="frequency != null">
|
||||
Frequency,
|
||||
</if>
|
||||
<if test="people != null">
|
||||
People,
|
||||
</if>
|
||||
<if test="rejects != null">
|
||||
Rejects,
|
||||
</if>
|
||||
<if test="filename != null">
|
||||
FileName,
|
||||
</if>
|
||||
<if test="fileid != null">
|
||||
FileId,
|
||||
</if>
|
||||
<if test="formname != null">
|
||||
FormName,
|
||||
</if>
|
||||
<if test="formid != null">
|
||||
FormId,
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modelid != null">
|
||||
#{modelid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="processid != null">
|
||||
#{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null">
|
||||
#{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="insuser != null">
|
||||
#{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="mainprocedure != null">
|
||||
#{mainprocedure,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="mainprocedurecode != null">
|
||||
#{mainprocedurecode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="subprocedure != null">
|
||||
#{subprocedure,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="subprocedurecode != null">
|
||||
#{subprocedurecode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="contentno != null">
|
||||
#{contentno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="subject != null">
|
||||
#{subject,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="specifications != null">
|
||||
#{specifications,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="mode != null">
|
||||
#{mode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tool != null">
|
||||
#{tool,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="frequency != null">
|
||||
#{frequency,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="people != null">
|
||||
#{people,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="rejects != null">
|
||||
#{rejects,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="filename != null">
|
||||
#{filename,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileid != null">
|
||||
#{fileid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="formname != null">
|
||||
#{formname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="formid != null">
|
||||
#{formid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.ProcessTechnics">
|
||||
update tb_process_technics
|
||||
<set>
|
||||
<if test="modelid != null">
|
||||
modelid = #{modelid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="processid != null">
|
||||
processid = #{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null">
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="insuser != null">
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="mainprocedure != null">
|
||||
MainProcedure = #{mainprocedure,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="mainprocedurecode != null">
|
||||
MainProcedureCode = #{mainprocedurecode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="subprocedure != null">
|
||||
SubProcedure = #{subprocedure,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="subprocedurecode != null">
|
||||
SubProcedureCode = #{subprocedurecode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="contentno != null">
|
||||
ContentNO = #{contentno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="subject != null">
|
||||
Subject = #{subject,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="specifications != null">
|
||||
Specifications = #{specifications,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="mode != null">
|
||||
Mode = #{mode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tool != null">
|
||||
Tool = #{tool,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="frequency != null">
|
||||
Frequency = #{frequency,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="people != null">
|
||||
People = #{people,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="rejects != null">
|
||||
Rejects = #{rejects,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="filename != null">
|
||||
FileName = #{filename,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileid != null">
|
||||
FileId = #{fileid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="formname != null">
|
||||
FormName = #{formname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="formid != null">
|
||||
FormId = #{formid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.ProcessTechnics">
|
||||
update tb_process_technics
|
||||
set modelid = #{modelid,jdbcType=VARCHAR},
|
||||
processid = #{processid,jdbcType=VARCHAR},
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
MainProcedure = #{mainprocedure,jdbcType=VARCHAR},
|
||||
MainProcedureCode = #{mainprocedurecode,jdbcType=VARCHAR},
|
||||
SubProcedure = #{subprocedure,jdbcType=VARCHAR},
|
||||
SubProcedureCode = #{subprocedurecode,jdbcType=VARCHAR},
|
||||
ContentNO = #{contentno,jdbcType=VARCHAR},
|
||||
Subject = #{subject,jdbcType=VARCHAR},
|
||||
Specifications = #{specifications,jdbcType=VARCHAR},
|
||||
Mode = #{mode,jdbcType=VARCHAR},
|
||||
Tool = #{tool,jdbcType=VARCHAR},
|
||||
Frequency = #{frequency,jdbcType=VARCHAR},
|
||||
People = #{people,jdbcType=VARCHAR},
|
||||
Rejects = #{rejects,jdbcType=VARCHAR},
|
||||
FileName = #{filename,jdbcType=VARCHAR},
|
||||
FileId = #{fileid,jdbcType=VARCHAR},
|
||||
FormName = #{formname,jdbcType=VARCHAR},
|
||||
FormId = #{formid,jdbcType=VARCHAR},
|
||||
remark = #{remark,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<select id="selectListByWhere" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_technics
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String">
|
||||
delete from tb_process_technics
|
||||
${where}
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,132 @@
|
||||
<?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="process.RealDetailsBookMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.RealDetailsBook" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="pid" property="pid" jdbcType="VARCHAR" />
|
||||
<result column="bookid" property="bookid" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="upduser" property="upduser" jdbcType="VARCHAR" />
|
||||
<result column="upddt" property="upddt" jdbcType="TIMESTAMP" />
|
||||
|
||||
<association column="bookid" property="book" jdbcType="VARCHAR" select="selectBook"/>
|
||||
</resultMap>
|
||||
<select id="selectBook" parameterType="String" resultType="com.sipai.entity.document.Data">
|
||||
select * from tb_doc_data where id = #{bookid}
|
||||
</select>
|
||||
<sql id="Base_Column_List" >
|
||||
id, pid, bookid, insuser, insdt, upduser, upddt
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details_book
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details_book
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.RealDetailsBook" >
|
||||
insert into tb_process_real_details_book (id, pid, bookid,
|
||||
insuser, insdt, upduser,
|
||||
upddt)
|
||||
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{bookid,jdbcType=VARCHAR},
|
||||
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{upduser,jdbcType=VARCHAR},
|
||||
#{upddt,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.RealDetailsBook" >
|
||||
insert into tb_process_real_details_book
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="pid != null" >
|
||||
pid,
|
||||
</if>
|
||||
<if test="bookid != null" >
|
||||
bookid,
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser,
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt,
|
||||
</if>
|
||||
<if test="upduser != null" >
|
||||
upduser,
|
||||
</if>
|
||||
<if test="upddt != null" >
|
||||
upddt,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="pid != null" >
|
||||
#{pid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bookid != null" >
|
||||
#{bookid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
#{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
#{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="upduser != null" >
|
||||
#{upduser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="upddt != null" >
|
||||
#{upddt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.RealDetailsBook" >
|
||||
update tb_process_real_details_book
|
||||
<set >
|
||||
<if test="pid != null" >
|
||||
pid = #{pid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bookid != null" >
|
||||
bookid = #{bookid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="upduser != null" >
|
||||
upduser = #{upduser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="upddt != null" >
|
||||
upddt = #{upddt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.RealDetailsBook" >
|
||||
update tb_process_real_details_book
|
||||
set pid = #{pid,jdbcType=VARCHAR},
|
||||
bookid = #{bookid,jdbcType=VARCHAR},
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
upduser = #{upduser,jdbcType=VARCHAR},
|
||||
upddt = #{upddt,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details_book
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details_book
|
||||
${where}
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,78 @@
|
||||
<?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="process.RealDetailsEquipmentMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.RealDetailsEquipment" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="pid" property="pid" jdbcType="VARCHAR" />
|
||||
<result column="equipmentid" property="equipmentid" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="upduser" property="upduser" jdbcType="VARCHAR" />
|
||||
<result column="upddt" property="upddt" jdbcType="TIMESTAMP" />
|
||||
|
||||
<association column="equipmentid" property="equipment" jdbcType="VARCHAR" select="selectEquipment"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectEquipment" parameterType="String" resultType="com.sipai.entity.equipment.EquipmentCard">
|
||||
select TB_EM_EquipmentCard.*,TB_EM_EquipmentClass.name as equipmentclassname
|
||||
from TB_EM_EquipmentCard left join TB_EM_EquipmentClass
|
||||
on TB_EM_EquipmentClass.id=TB_EM_EquipmentCard.equipmentclassid
|
||||
where TB_EM_EquipmentCard.id = #{equipmentid}
|
||||
</select>
|
||||
|
||||
<sql id="Base_Column_List" >
|
||||
id, pid, equipmentid, insuser, insdt, upduser, upddt
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details_equipment
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details_equipment
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.RealDetailsEquipment" >
|
||||
insert into tb_process_real_details_equipment (id, pid, equipmentid,
|
||||
insuser, insdt, upduser,
|
||||
upddt)
|
||||
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{equipmentid,jdbcType=VARCHAR},
|
||||
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{upduser,jdbcType=VARCHAR},
|
||||
#{upddt,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.RealDetailsEquipment" >
|
||||
update tb_process_real_details_equipment
|
||||
<set >
|
||||
<if test="pid != null" >
|
||||
pid = #{pid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="equipmentid != null" >
|
||||
equipmentid = #{equipmentid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="upduser != null" >
|
||||
upduser = #{upduser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="upddt != null" >
|
||||
upddt = #{upddt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details_equipment
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details_equipment
|
||||
${where}
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,82 @@
|
||||
<?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="process.RealDetailsJobMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.RealDetailsJob" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="pid" property="pid" jdbcType="VARCHAR" />
|
||||
<result column="unitid" property="unitid" jdbcType="VARCHAR" />
|
||||
<result column="jobid" property="jobid" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="upduser" property="upduser" jdbcType="VARCHAR" />
|
||||
<result column="upddt" property="upddt" jdbcType="TIMESTAMP" />
|
||||
|
||||
<association column="unitid" property="unitname" jdbcType="VARCHAR" select="selectUnit"/>
|
||||
<association column="jobid" property="jobname" jdbcType="VARCHAR" select="selectJob"/>
|
||||
</resultMap>
|
||||
<select id="selectUnit" parameterType="String" resultType="String">
|
||||
select name from uv_unit where id = #{unitid}
|
||||
</select>
|
||||
<select id="selectJob" parameterType="String" resultType="String">
|
||||
select name from tb_job where id = #{jobid}
|
||||
</select>
|
||||
|
||||
<sql id="Base_Column_List" >
|
||||
id, pid, unitid, jobid, insuser, insdt, upduser, upddt
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details_job
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details_job
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.RealDetailsJob" >
|
||||
insert into tb_process_real_details_job (id, pid, unitid, jobid,
|
||||
insuser, insdt, upduser,
|
||||
upddt)
|
||||
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{unitid,jdbcType=VARCHAR}, #{jobid,jdbcType=VARCHAR},
|
||||
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{upduser,jdbcType=VARCHAR},
|
||||
#{upddt,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.RealDetailsJob" >
|
||||
update tb_process_real_details_job
|
||||
<set >
|
||||
<if test="pid != null" >
|
||||
pid = #{pid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="unitid != null" >
|
||||
unitid = #{unitid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="jobid != null" >
|
||||
jobid = #{jobid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="upduser != null" >
|
||||
upduser = #{upduser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="upddt != null" >
|
||||
upddt = #{upddt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details_job
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details_job
|
||||
${where}
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,104 @@
|
||||
<?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="process.RealDetailsMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.RealDetails" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="pid" property="pid" jdbcType="VARCHAR" />
|
||||
<result column="number" property="number" jdbcType="INTEGER" />
|
||||
<result column="taskname" property="taskname" jdbcType="VARCHAR" />
|
||||
<result column="name" property="name" jdbcType="VARCHAR" />
|
||||
<result column="SOP" property="sop" jdbcType="VARCHAR" />
|
||||
<result column="worktime" property="worktime" jdbcType="VARCHAR" />
|
||||
<result column="description" property="description" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="updateuser" property="updateuser" jdbcType="VARCHAR" />
|
||||
<result column="updatedt" property="updatedt" jdbcType="TIMESTAMP" />
|
||||
<result column="ST" property="st" jdbcType="VARCHAR" />
|
||||
|
||||
<association column="pid" property="pname" jdbcType="VARCHAR" select="selectPname"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectPname" resultType="java.lang.String" parameterType="java.lang.String" >
|
||||
select name from tb_process_real where id = #{pid,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<sql id="Base_Column_List" >
|
||||
id, pid, number, taskname, name, SOP, worktime, description, insuser, insdt, updateuser, updatedt,
|
||||
ST
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.RealDetails" >
|
||||
insert into tb_process_real_details (id, pid, number,
|
||||
taskname, name, SOP, worktime,
|
||||
description, insuser, insdt,
|
||||
updateuser, updatedt, ST
|
||||
)
|
||||
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{number,jdbcType=INTEGER},
|
||||
#{taskname,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{sop,jdbcType=VARCHAR}, #{worktime,jdbcType=VARCHAR},
|
||||
#{description,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
|
||||
#{updateuser,jdbcType=VARCHAR}, #{updatedt,jdbcType=TIMESTAMP}, #{st,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.RealDetails" >
|
||||
update tb_process_real_details
|
||||
<set >
|
||||
<if test="pid != null" >
|
||||
pid = #{pid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="number != null" >
|
||||
number = #{number,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="taskname != null" >
|
||||
taskname = #{taskname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sop != null" >
|
||||
SOP = #{sop,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="worktime != null" >
|
||||
worktime = #{worktime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null" >
|
||||
description = #{description,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateuser != null" >
|
||||
updateuser = #{updateuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updatedt != null" >
|
||||
updatedt = #{updatedt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="st != null" >
|
||||
ST = #{st,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details
|
||||
${where}
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,79 @@
|
||||
<?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="process.RealDetailsMaterialMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.RealDetailsMaterial" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="pid" property="pid" jdbcType="VARCHAR" />
|
||||
<result column="materialid" property="materialid" jdbcType="VARCHAR" />
|
||||
<result column="amount" property="amount" jdbcType="FLOAT" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="upduser" property="upduser" jdbcType="VARCHAR" />
|
||||
<result column="upddt" property="upddt" jdbcType="TIMESTAMP" />
|
||||
|
||||
<association column="materialid" property="material" jdbcType="VARCHAR" select="selectMaterial"/>
|
||||
</resultMap>
|
||||
<select id="selectMaterial" parameterType="String" resultType="com.sipai.entity.material.MaterialInfo">
|
||||
select * from tb_material_info where id = #{materialid}
|
||||
</select>
|
||||
|
||||
<sql id="Base_Column_List" >
|
||||
id, pid, materialid, amount, insuser, insdt, upduser, upddt
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details_material
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details_material
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.RealDetailsMaterial" >
|
||||
insert into tb_process_real_details_material (id, pid, materialid, amount,
|
||||
insuser, insdt, upduser,
|
||||
upddt)
|
||||
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{materialid,jdbcType=VARCHAR}, #{amount,jdbcType=FLOAT},
|
||||
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{upduser,jdbcType=VARCHAR},
|
||||
#{upddt,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.RealDetailsMaterial" >
|
||||
update tb_process_real_details_material
|
||||
<set >
|
||||
<if test="pid != null" >
|
||||
pid = #{pid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="materialid != null" >
|
||||
materialid = #{materialid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="amount != null" >
|
||||
amount = #{amount,jdbcType=FLOAT},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="upduser != null" >
|
||||
upduser = #{upduser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="upddt != null" >
|
||||
upddt = #{upddt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details_material
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details_material
|
||||
${where}
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,71 @@
|
||||
<?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="process.RealDetailsStepMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.RealDetailsStep" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="pid" property="pid" jdbcType="VARCHAR" />
|
||||
<result column="ord" property="ord" jdbcType="INTEGER" />
|
||||
<result column="content" property="content" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="upduser" property="upduser" jdbcType="VARCHAR" />
|
||||
<result column="upddt" property="upddt" jdbcType="TIMESTAMP" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
id, pid, ord, content, insuser, insdt, upduser, upddt
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details_step
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details_step
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.RealDetailsStep" >
|
||||
insert into tb_process_real_details_step (id, pid, ord, content,
|
||||
insuser, insdt, upduser, upddt)
|
||||
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{ord,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR},
|
||||
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{upduser,jdbcType=VARCHAR}, #{upddt,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.RealDetailsStep" >
|
||||
update tb_process_real_details_step
|
||||
<set >
|
||||
<if test="pid != null" >
|
||||
pid = #{pid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ord != null" >
|
||||
ord = #{ord,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="content != null" >
|
||||
content = #{content,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="upduser != null" >
|
||||
upduser = #{upduser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="upddt != null" >
|
||||
upddt = #{upddt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details_step
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details_step
|
||||
${where}
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,90 @@
|
||||
<?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="process.RealDetailsWorkstationMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.RealDetailsWorkstation" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="pid" property="pid" jdbcType="VARCHAR" />
|
||||
<result column="workstationid" property="workstationid" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="upduser" property="upduser" jdbcType="VARCHAR" />
|
||||
<result column="upddt" property="upddt" jdbcType="TIMESTAMP" />
|
||||
|
||||
<association column="workstationid" property="workstation" jdbcType="VARCHAR" select="selectWorkstation"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectWorkstation" parameterType="String" resultType="com.sipai.entity.work.Workstation">
|
||||
select tb_work_workstation.* ,tb_work_workstation_type.name as typename ,uv_unit.name as deptname ,tb_work_line.name as linename
|
||||
from tb_work_workstation
|
||||
left join tb_work_line_workstation on tb_work_line_workstation.workstationid = tb_work_workstation.id
|
||||
left join tb_work_line on tb_work_line.id = tb_work_line_workstation.lineid
|
||||
left join tb_work_workstation_type on tb_work_workstation_type.id = tb_work_workstation.typeid
|
||||
left join uv_unit on uv_unit.id = tb_work_workstation.deptid
|
||||
where tb_work_workstation.id = #{workstationid}
|
||||
</select>
|
||||
|
||||
<sql id="Base_Column_List" >
|
||||
id, pid, workstationid, insuser, insdt, upduser, upddt
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details_workstation
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details_workstation
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.RealDetailsWorkstation" >
|
||||
insert into tb_process_real_details_workstation (id, pid, workstationid,
|
||||
insuser, insdt, upduser,
|
||||
upddt)
|
||||
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{workstationid,jdbcType=VARCHAR},
|
||||
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{upduser,jdbcType=VARCHAR},
|
||||
#{upddt,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.RealDetailsWorkstation" >
|
||||
update tb_process_real_details_workstation
|
||||
<set >
|
||||
<if test="pid != null" >
|
||||
pid = #{pid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="workstationid != null" >
|
||||
workstationid = #{workstationid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="upduser != null" >
|
||||
upduser = #{upduser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="upddt != null" >
|
||||
upddt = #{upddt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real_details_workstation
|
||||
${where}
|
||||
</select>
|
||||
<select id="selectListByWhere1" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select tb_process_real_details_workstation.*,tb_work_line.id as lineid,tb_work_line.name as linename
|
||||
from tb_process_real_details_workstation
|
||||
left join tb_work_workstation on tb_work_workstation.id=tb_process_real_details_workstation.workstationid
|
||||
left join tb_work_line_workstation on tb_work_workstation.id=tb_work_line_workstation.workstationid
|
||||
left join tb_work_line on tb_work_line.id=tb_work_line_workstation.lineid
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_real_details_workstation
|
||||
${where}
|
||||
</delete>
|
||||
</mapper>
|
||||
128
bin/target/classes/com/sipai/mapper/process/RealMapper.xml
Normal file
128
bin/target/classes/com/sipai/mapper/process/RealMapper.xml
Normal file
@ -0,0 +1,128 @@
|
||||
<?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="process.RealMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.Real" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="processid" property="processid" jdbcType="VARCHAR" />
|
||||
<result column="name" property="name" jdbcType="VARCHAR" />
|
||||
<result column="productid" property="productid" jdbcType="VARCHAR" />
|
||||
<result column="lineid" property="lineid" jdbcType="VARCHAR" />
|
||||
<result column="drawing" property="drawing" jdbcType="VARCHAR" />
|
||||
<result column="bomId" property="bomid" jdbcType="VARCHAR" />
|
||||
<result column="description" property="description" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="updateuser" property="updateuser" jdbcType="VARCHAR" />
|
||||
<result column="updatedt" property="updatedt" jdbcType="TIMESTAMP" />
|
||||
<result column="st" property="st" jdbcType="VARCHAR" />
|
||||
|
||||
<association column="productid" property="product" jdbcType="VARCHAR" select="selectProd"/>
|
||||
<association column="processid" property="process" jdbcType="VARCHAR" select="selectProcess"/>
|
||||
</resultMap>
|
||||
<select id="selectProd" parameterType="String" resultType="com.sipai.entity.material.MaterialInfo">
|
||||
select * from tb_material_info where id = #{productid}
|
||||
</select>
|
||||
<select id="selectProcess" parameterType="String" resultType="com.sipai.entity.process.Processes">
|
||||
select * from wf_process where id = #{processid}
|
||||
</select>
|
||||
|
||||
<sql id="Base_Column_List" >
|
||||
id, processid, name, productid, lineid, drawing, bomId, description, insuser, insdt, updateuser,
|
||||
updatedt, st
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<select id="getListByName" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real
|
||||
where name = #{name,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_real
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.Real" >
|
||||
insert into tb_process_real (id, processid, name,
|
||||
productid, lineid, drawing, bomId,
|
||||
description, insuser, insdt,
|
||||
updateuser, updatedt, st
|
||||
)
|
||||
values (#{id,jdbcType=VARCHAR}, #{processid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
||||
#{productid,jdbcType=VARCHAR}, #{lineid,jdbcType=VARCHAR}, #{drawing,jdbcType=VARCHAR}, #{bomid,jdbcType=VARCHAR},
|
||||
#{description,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
|
||||
#{updateuser,jdbcType=VARCHAR}, #{updatedt,jdbcType=TIMESTAMP}, #{st,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.Real" >
|
||||
update tb_process_real
|
||||
<set >
|
||||
<if test="processid != null" >
|
||||
processid = #{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="productid != null" >
|
||||
productid = #{productid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lineid != null" >
|
||||
lineid = #{lineid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="drawing != null" >
|
||||
drawing = #{drawing,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bomid != null" >
|
||||
bomId = #{bomid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null" >
|
||||
description = #{description,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateuser != null" >
|
||||
updateuser = #{updateuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updatedt != null" >
|
||||
updatedt = #{updatedt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="st != null" >
|
||||
st = #{st,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_real
|
||||
${where}
|
||||
</select>
|
||||
<select id="selectListByDetailsID" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select distinct a.* from tb_process_real a
|
||||
left join tb_process_real_details b on b.pid=a.id
|
||||
${where}
|
||||
</select>
|
||||
<select id="getLineListByWhere" resultType="com.sipai.entity.work.Line" parameterType="java.lang.String" >
|
||||
SELECT DISTINCT tb_work_line.*
|
||||
FROM tb_work_line_workstation INNER JOIN
|
||||
tb_work_workstation ON tb_work_line_workstation.workstationid = tb_work_workstation.id INNER JOIN
|
||||
tb_work_line ON tb_work_line_workstation.lineid = tb_work_line.id INNER JOIN
|
||||
tb_process_real_details INNER JOIN
|
||||
tb_process_real_details_workstation ON tb_process_real_details.id = tb_process_real_details_workstation.pid ON
|
||||
tb_work_workstation.id = tb_process_real_details_workstation.workstationid
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_real
|
||||
${where}
|
||||
</delete>
|
||||
</mapper>
|
||||
103
bin/target/classes/com/sipai/mapper/process/StaffSkillMapper.xml
Normal file
103
bin/target/classes/com/sipai/mapper/process/StaffSkillMapper.xml
Normal file
@ -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="process.StaffSkillMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.StaffSkill" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="name" property="name" jdbcType="VARCHAR" />
|
||||
<result column="property" property="property" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
id, insuser, insdt, name, property
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_skill
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_skill
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.StaffSkill" >
|
||||
insert into tb_process_skill (id, insuser, insdt,
|
||||
name, property)
|
||||
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
|
||||
#{name,jdbcType=VARCHAR}, #{property,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.StaffSkill" >
|
||||
insert into tb_process_skill
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser,
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt,
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
name,
|
||||
</if>
|
||||
<if test="property != null" >
|
||||
property,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
#{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
#{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="property != null" >
|
||||
#{property,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.StaffSkill" >
|
||||
update tb_process_skill
|
||||
<set >
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="property != null" >
|
||||
property = #{property,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.StaffSkill" >
|
||||
update tb_process_skill
|
||||
set insuser = #{insuser,jdbcType=VARCHAR},
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
property = #{property,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_skill
|
||||
${where}
|
||||
</delete>
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_skill
|
||||
${where}
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,181 @@
|
||||
<?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="process.TaskEquipmentMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.TaskEquipment" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="processid" property="processid" jdbcType="VARCHAR" />
|
||||
<result column="taskname" property="taskname" jdbcType="VARCHAR" />
|
||||
<result column="equipmentid" property="equipmentid" jdbcType="VARCHAR" />
|
||||
<result column="status" property="status" jdbcType="VARCHAR" />
|
||||
<result column="memo" property="memo" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="modify" property="modify" jdbcType="VARCHAR" />
|
||||
<result column="modifydt" property="modifydt" jdbcType="TIMESTAMP" />
|
||||
<association column="equipmentid" property="equipmentCard" jdbcType="VARCHAR" select="selectEquipment"/>
|
||||
</resultMap>
|
||||
<select id="selectEquipment" parameterType="String" resultType="com.sipai.entity.equipment.EquipmentCard">
|
||||
select TB_EM_EquipmentCard.*,TB_EM_EquipmentClass.name as equipmentclassname
|
||||
from TB_EM_EquipmentCard left join TB_EM_EquipmentClass
|
||||
on TB_EM_EquipmentClass.id=TB_EM_EquipmentCard.equipmentclassid
|
||||
where TB_EM_EquipmentCard.id = #{equipmentid}
|
||||
</select>
|
||||
<sql id="Base_Column_List" >
|
||||
id, processid, taskname, equipmentid, status, memo, insuser, insdt, modify, modifydt
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_equipment
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_task_equipment
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.TaskEquipment" >
|
||||
insert into tb_process_task_equipment (id, processid, taskname,
|
||||
equipmentid, status, memo,
|
||||
insuser, insdt, modify,
|
||||
modifydt)
|
||||
values (#{id,jdbcType=VARCHAR}, #{processid,jdbcType=VARCHAR}, #{taskname,jdbcType=VARCHAR},
|
||||
#{equipmentid,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
|
||||
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{modify,jdbcType=VARCHAR},
|
||||
#{modifydt,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.TaskEquipment" >
|
||||
insert into tb_process_task_equipment
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="processid != null" >
|
||||
processid,
|
||||
</if>
|
||||
<if test="taskname != null" >
|
||||
taskname,
|
||||
</if>
|
||||
<if test="equipmentid != null" >
|
||||
equipmentid,
|
||||
</if>
|
||||
<if test="status != null" >
|
||||
status,
|
||||
</if>
|
||||
<if test="memo != null" >
|
||||
memo,
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser,
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt,
|
||||
</if>
|
||||
<if test="modify != null" >
|
||||
modify,
|
||||
</if>
|
||||
<if test="modifydt != null" >
|
||||
modifydt,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="processid != null" >
|
||||
#{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="taskname != null" >
|
||||
#{taskname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="equipmentid != null" >
|
||||
#{equipmentid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null" >
|
||||
#{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="memo != null" >
|
||||
#{memo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
#{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
#{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="modify != null" >
|
||||
#{modify,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modifydt != null" >
|
||||
#{modifydt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.TaskEquipment" >
|
||||
update tb_process_task_equipment
|
||||
<set >
|
||||
<if test="processid != null" >
|
||||
processid = #{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="taskname != null" >
|
||||
taskname = #{taskname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="equipmentid != null" >
|
||||
equipmentid = #{equipmentid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null" >
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="memo != null" >
|
||||
memo = #{memo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="modify != null" >
|
||||
modify = #{modify,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modifydt != null" >
|
||||
modifydt = #{modifydt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.TaskEquipment" >
|
||||
update tb_process_task_equipment
|
||||
set processid = #{processid,jdbcType=VARCHAR},
|
||||
taskname = #{taskname,jdbcType=VARCHAR},
|
||||
equipmentid = #{equipmentid,jdbcType=VARCHAR},
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
memo = #{memo,jdbcType=VARCHAR},
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
modify = #{modify,jdbcType=VARCHAR},
|
||||
modifydt = #{modifydt,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_equipment
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_task_equipment
|
||||
${where}
|
||||
</delete>
|
||||
<select id="selectListByWhere1" parameterType="String" resultMap="BaseResultMap">
|
||||
SELECT tb_process_task_equipment.*,TB_EM_EquipmentCard.equipmentCardID,TB_EM_EquipmentCard.equipmentName,
|
||||
TB_EM_EquipmentCard.equipmentModel,TB_EM_EquipmentClass.name as equipmentClass,TB_EM_GeographyArea.name as geographyArea,
|
||||
TB_EM_EquipmentCard.currentManageFlag,TB_EM_EquipmentCard.remark
|
||||
FROM tb_process_task_equipment
|
||||
left join TB_EM_EquipmentCard on TB_EM_EquipmentCard.id = tb_process_task_equipment.equipmentid
|
||||
left join TB_EM_EquipmentClass on TB_EM_EquipmentClass.id = TB_EM_EquipmentCard.equipmentClassID
|
||||
left join TB_EM_GeographyArea on TB_EM_GeographyArea.id = TB_EM_EquipmentCard.areaID
|
||||
left join tb_process_real on tb_process_real.processid=tb_process_task_equipment.processid
|
||||
left join tb_process_real_details on tb_process_real_details.pid=tb_process_real.id
|
||||
${where}
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,177 @@
|
||||
<?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="process.TaskMaterialMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.TaskMaterial" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="processid" property="processid" jdbcType="VARCHAR" />
|
||||
<result column="taskname" property="taskname" jdbcType="VARCHAR" />
|
||||
<result column="materialid" property="materialid" jdbcType="VARCHAR" />
|
||||
<result column="status" property="status" jdbcType="VARCHAR" />
|
||||
<result column="memo" property="memo" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="modify" property="modify" jdbcType="VARCHAR" />
|
||||
<result column="modifydt" property="modifydt" jdbcType="TIMESTAMP" />
|
||||
<association column="materialid" property="materialInfo" jdbcType="VARCHAR" select="selectMaterial"/>
|
||||
</resultMap>
|
||||
<select id="selectMaterial" parameterType="String" resultType="com.sipai.entity.material.MaterialInfo">
|
||||
select * from tb_material_info where id = #{materialid}
|
||||
</select>
|
||||
<sql id="Base_Column_List" >
|
||||
id, processid, taskname, materialid, status, memo, insuser, insdt, modify, modifydt
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_material
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_task_material
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.TaskMaterial" >
|
||||
insert into tb_process_task_material (id, processid, taskname,
|
||||
materialid, status, memo,
|
||||
insuser, insdt, modify,
|
||||
modifydt)
|
||||
values (#{id,jdbcType=VARCHAR}, #{processid,jdbcType=VARCHAR}, #{taskname,jdbcType=VARCHAR},
|
||||
#{materialid,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
|
||||
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{modify,jdbcType=VARCHAR},
|
||||
#{modifydt,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.TaskMaterial" >
|
||||
insert into tb_process_task_material
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="processid != null" >
|
||||
processid,
|
||||
</if>
|
||||
<if test="taskname != null" >
|
||||
taskname,
|
||||
</if>
|
||||
<if test="materialid != null" >
|
||||
materialid,
|
||||
</if>
|
||||
<if test="status != null" >
|
||||
status,
|
||||
</if>
|
||||
<if test="memo != null" >
|
||||
memo,
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser,
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt,
|
||||
</if>
|
||||
<if test="modify != null" >
|
||||
modify,
|
||||
</if>
|
||||
<if test="modifydt != null" >
|
||||
modifydt,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="processid != null" >
|
||||
#{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="taskname != null" >
|
||||
#{taskname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="materialid != null" >
|
||||
#{materialid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null" >
|
||||
#{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="memo != null" >
|
||||
#{memo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
#{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
#{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="modify != null" >
|
||||
#{modify,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modifydt != null" >
|
||||
#{modifydt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.TaskMaterial" >
|
||||
update tb_process_task_material
|
||||
<set >
|
||||
<if test="processid != null" >
|
||||
processid = #{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="taskname != null" >
|
||||
taskname = #{taskname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="materialid != null" >
|
||||
materialid = #{materialid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null" >
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="memo != null" >
|
||||
memo = #{memo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="modify != null" >
|
||||
modify = #{modify,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modifydt != null" >
|
||||
modifydt = #{modifydt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.TaskMaterial" >
|
||||
update tb_process_task_material
|
||||
set processid = #{processid,jdbcType=VARCHAR},
|
||||
taskname = #{taskname,jdbcType=VARCHAR},
|
||||
materialid = #{materialid,jdbcType=VARCHAR},
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
memo = #{memo,jdbcType=VARCHAR},
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
modify = #{modify,jdbcType=VARCHAR},
|
||||
modifydt = #{modifydt,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_material
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_task_material
|
||||
${where}
|
||||
</delete>
|
||||
<select id="selectListByWhere1" parameterType="String" resultMap="BaseResultMap">
|
||||
SELECT tb_process_task_material.*,tb_material_info.materialcode,tb_material_info.materialname,
|
||||
tb_material_info.spec,tb_material_info.unit,tb_material_type.typename
|
||||
FROM tb_process_task_material
|
||||
left join tb_material_info on tb_material_info.id = tb_process_task_material.materialid
|
||||
left join tb_material_type on tb_material_type.id = tb_material_info.typeid
|
||||
left join tb_process_real on tb_process_real.processid=tb_process_task_material.processid
|
||||
left join tb_process_real_details on tb_process_real_details.pid=tb_process_real.id
|
||||
${where}
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,174 @@
|
||||
<?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="process.TaskProcedureMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.TaskProcedure">
|
||||
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||
<result column="insuser" jdbcType="VARCHAR" property="insuser" />
|
||||
<result column="insdt" jdbcType="TIMESTAMP" property="insdt" />
|
||||
<result column="procedurecode" jdbcType="VARCHAR" property="procedurecode" />
|
||||
<result column="procedurename" jdbcType="VARCHAR" property="procedurename" />
|
||||
<result column="workstation" jdbcType="VARCHAR" property="workstation" />
|
||||
<result column="keywords" jdbcType="VARCHAR" property="keywords" />
|
||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||
<result column="semiflag" jdbcType="VARCHAR" property="semiflag" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, insuser, insdt, procedurecode, procedurename, workstation, keywords, type, semiflag
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_procedure
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from tb_process_task_procedure
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.TaskProcedure">
|
||||
insert into tb_process_task_procedure (id, insuser, insdt,
|
||||
procedurecode, procedurename, workstation,
|
||||
keywords, type, semiflag
|
||||
)
|
||||
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
|
||||
#{procedurecode,jdbcType=VARCHAR}, #{procedurename,jdbcType=VARCHAR}, #{workstation,jdbcType=VARCHAR},
|
||||
#{keywords,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{semiflag,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.TaskProcedure">
|
||||
insert into tb_process_task_procedure
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="insuser != null">
|
||||
insuser,
|
||||
</if>
|
||||
<if test="insdt != null">
|
||||
insdt,
|
||||
</if>
|
||||
<if test="procedurecode != null">
|
||||
procedurecode,
|
||||
</if>
|
||||
<if test="procedurename != null">
|
||||
procedurename,
|
||||
</if>
|
||||
<if test="workstation != null">
|
||||
workstation,
|
||||
</if>
|
||||
<if test="keywords != null">
|
||||
keywords,
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type,
|
||||
</if>
|
||||
<if test="semiflag != null">
|
||||
semiflag,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null">
|
||||
#{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null">
|
||||
#{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="procedurecode != null">
|
||||
#{procedurecode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="procedurename != null">
|
||||
#{procedurename,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="workstation != null">
|
||||
#{workstation,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="keywords != null">
|
||||
#{keywords,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="semiflag != null">
|
||||
#{semiflag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.TaskProcedure">
|
||||
update tb_process_task_procedure
|
||||
<set>
|
||||
<if test="insuser != null">
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null">
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="procedurecode != null">
|
||||
procedurecode = #{procedurecode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="procedurename != null">
|
||||
procedurename = #{procedurename,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="workstation != null">
|
||||
workstation = #{workstation,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="keywords != null">
|
||||
keywords = #{keywords,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="semiflag != null">
|
||||
semiflag = #{semiflag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.TaskProcedure">
|
||||
update tb_process_task_procedure
|
||||
set insuser = #{insuser,jdbcType=VARCHAR},
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
procedurecode = #{procedurecode,jdbcType=VARCHAR},
|
||||
procedurename = #{procedurename,jdbcType=VARCHAR},
|
||||
workstation = #{workstation,jdbcType=VARCHAR},
|
||||
keywords = #{keywords,jdbcType=VARCHAR},
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
semiflag = #{semiflag,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<select id="selectListByWhere" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_procedure
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String">
|
||||
delete from tb_process_task_procedure
|
||||
${where}
|
||||
</delete>
|
||||
<select id="selectByProcedurecode" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_procedure
|
||||
where procedurecode = #{procedurecode,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<select id="selectByProcedureOrder" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
SELECT P.id
|
||||
,P.insuser
|
||||
,P.insdt
|
||||
,P.procedurecode AS procedurecode
|
||||
,P.procedurename AS procedurename
|
||||
,P.workstation AS workstation
|
||||
,P.keywords AS keywords
|
||||
,P.type AS type
|
||||
,P.semiflag AS semiflag
|
||||
,O.priorityorder,
|
||||
O.sorttype
|
||||
FROM tb_process_task_procedure_order O
|
||||
left outer join tb_process_task_procedure P on O.procedureid = P.id
|
||||
${where}
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,118 @@
|
||||
<?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="process.TaskProcedureOrderMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.TaskProcedureOrder" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="procedureid" property="procedureid" jdbcType="VARCHAR" />
|
||||
<result column="priorityorder" property="priorityorder" jdbcType="INTEGER" />
|
||||
<result column="sorttype" property="sorttype" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
id, insuser, insdt, procedureid, priorityorder, sorttype
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_procedure_order
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_task_procedure_order
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.TaskProcedureOrder" >
|
||||
insert into tb_process_task_procedure_order (id, insuser, insdt,
|
||||
procedureid, priorityorder, sorttype
|
||||
)
|
||||
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
|
||||
#{procedureid,jdbcType=VARCHAR}, #{priorityorder,jdbcType=INTEGER}, #{sorttype,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.TaskProcedureOrder" >
|
||||
insert into tb_process_task_procedure_order
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser,
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt,
|
||||
</if>
|
||||
<if test="procedureid != null" >
|
||||
procedureid,
|
||||
</if>
|
||||
<if test="priorityorder != null" >
|
||||
priorityorder,
|
||||
</if>
|
||||
<if test="sorttype != null" >
|
||||
sorttype,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
#{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
#{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="procedureid != null" >
|
||||
#{procedureid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="priorityorder != null" >
|
||||
#{priorityorder,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="sorttype != null" >
|
||||
#{sorttype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.TaskProcedureOrder" >
|
||||
update tb_process_task_procedure_order
|
||||
<set >
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="procedureid != null" >
|
||||
procedureid = #{procedureid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="priorityorder != null" >
|
||||
priorityorder = #{priorityorder,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="sorttype != null" >
|
||||
sorttype = #{sorttype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.TaskProcedureOrder" >
|
||||
update tb_process_task_procedure_order
|
||||
set insuser = #{insuser,jdbcType=VARCHAR},
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
procedureid = #{procedureid,jdbcType=VARCHAR},
|
||||
priorityorder = #{priorityorder,jdbcType=INTEGER},
|
||||
sorttype = #{sorttype,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_procedure_order
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_task_procedure_order
|
||||
${where}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,114 @@
|
||||
<?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="process.TaskProcedureSkillMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.TaskProcedureSkill" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="userid" property="userid" jdbcType="VARCHAR" />
|
||||
<result column="skillid" property="skillid" jdbcType="VARCHAR" />
|
||||
<association column="userid" property="username" jdbcType="VARCHAR" select="selectUser"></association>
|
||||
</resultMap>
|
||||
<select id="selectUser" resultType="String" parameterType="java.lang.String" >
|
||||
select caption from tb_user where id = #{userid,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<sql id="Base_Column_List" >
|
||||
id, insuser, insdt, userid, skillid
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_procedure_skill
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_task_procedure_skill
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.TaskProcedureSkill" >
|
||||
insert into tb_process_task_procedure_skill (id, insuser, insdt,
|
||||
userid, skillid)
|
||||
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
|
||||
#{userid,jdbcType=VARCHAR}, #{skillid,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.TaskProcedureSkill" >
|
||||
insert into tb_process_task_procedure_skill
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser,
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt,
|
||||
</if>
|
||||
<if test="userid != null" >
|
||||
userid,
|
||||
</if>
|
||||
<if test="skillid != null" >
|
||||
skillid,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
#{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
#{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="userid != null" >
|
||||
#{userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="skillid != null" >
|
||||
#{skillid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.TaskProcedureSkill" >
|
||||
update tb_process_task_procedure_skill
|
||||
<set >
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="userid != null" >
|
||||
userid = #{userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="skillid != null" >
|
||||
skillid = #{skillid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.TaskProcedureSkill" >
|
||||
update tb_process_task_procedure_skill
|
||||
set insuser = #{insuser,jdbcType=VARCHAR},
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
userid = #{userid,jdbcType=VARCHAR},
|
||||
skillid = #{skillid,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_procedure_skill
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_task_procedure_skill
|
||||
${where}
|
||||
</delete>
|
||||
<select id="selectSkillByUser" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
skillid
|
||||
from tb_process_task_procedure_skill
|
||||
${where}
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,124 @@
|
||||
<?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="process.TaskProcedureStaffMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.TaskProcedureStaff" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="procedureid" property="procedureid" jdbcType="VARCHAR" />
|
||||
<result column="leaderid" property="leaderid" jdbcType="VARCHAR" />
|
||||
<result column="chiefid" property="chiefid" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
id, insuser, insdt, procedureid, leaderid, chiefid
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_procedure_staff
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_task_procedure_staff
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.TaskProcedureStaff" >
|
||||
insert into tb_process_task_procedure_staff (id, insuser, insdt,
|
||||
procedureid, leaderid, chiefid
|
||||
)
|
||||
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
|
||||
#{procedureid,jdbcType=VARCHAR}, #{leaderid,jdbcType=VARCHAR}, #{chiefid,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.TaskProcedureStaff" >
|
||||
insert into tb_process_task_procedure_staff
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser,
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt,
|
||||
</if>
|
||||
<if test="procedureid != null" >
|
||||
procedureid,
|
||||
</if>
|
||||
<if test="leaderid != null" >
|
||||
leaderid,
|
||||
</if>
|
||||
<if test="chiefid != null" >
|
||||
chiefid,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
#{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
#{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="procedureid != null" >
|
||||
#{procedureid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="leaderid != null" >
|
||||
#{leaderid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="chiefid != null" >
|
||||
#{chiefid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.TaskProcedureStaff" >
|
||||
update tb_process_task_procedure_staff
|
||||
<set >
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="procedureid != null" >
|
||||
procedureid = #{procedureid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="leaderid != null" >
|
||||
leaderid = #{leaderid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="chiefid != null" >
|
||||
chiefid = #{chiefid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.TaskProcedureStaff" >
|
||||
update tb_process_task_procedure_staff
|
||||
set insuser = #{insuser,jdbcType=VARCHAR},
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
procedureid = #{procedureid,jdbcType=VARCHAR},
|
||||
leaderid = #{leaderid,jdbcType=VARCHAR},
|
||||
chiefid = #{chiefid,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_procedure_staff
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_task_procedure_staff
|
||||
${where}
|
||||
</delete>
|
||||
<select id="getObjByProcedureid" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_procedure_staff
|
||||
where procedureid = #{procedureid,jdbcType=VARCHAR}
|
||||
order by insdt
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,182 @@
|
||||
<?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="process.TaskWorkstationMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.process.TaskWorkstation" >
|
||||
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||
<result column="processid" property="processid" jdbcType="VARCHAR" />
|
||||
<result column="taskname" property="taskname" jdbcType="VARCHAR" />
|
||||
<result column="workstationid" property="workstationid" jdbcType="VARCHAR" />
|
||||
<result column="status" property="status" jdbcType="VARCHAR" />
|
||||
<result column="memo" property="memo" jdbcType="VARCHAR" />
|
||||
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
|
||||
<result column="modify" property="modify" jdbcType="VARCHAR" />
|
||||
<result column="modifydt" property="modifydt" jdbcType="TIMESTAMP" />
|
||||
<association column="workstationid" property="workStation" jdbcType="VARCHAR" select="selectWorkstation"/>
|
||||
</resultMap>
|
||||
<select id="selectWorkstation" parameterType="String" resultType="com.sipai.entity.work.Workstation">
|
||||
select tb_work_workstation.* ,tb_work_workstation_type.name as typename ,tb_dept.name as deptname
|
||||
from tb_work_workstation
|
||||
left join tb_dept on tb_work_workstation.deptid = tb_dept.id
|
||||
left join tb_work_workstation_type on tb_work_workstation_type.id = tb_work_workstation.typeid
|
||||
where tb_work_workstation.id = #{workstationid}
|
||||
</select>
|
||||
<sql id="Base_Column_List" >
|
||||
id, processid, taskname, workstationid, status, memo, insuser, insdt, modify, modifydt
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_workstation
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||
delete from tb_process_task_workstation
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.process.TaskWorkstation" >
|
||||
insert into tb_process_task_workstation (id, processid, taskname,
|
||||
workstationid, status, memo,
|
||||
insuser, insdt, modify,
|
||||
modifydt)
|
||||
values (#{id,jdbcType=VARCHAR}, #{processid,jdbcType=VARCHAR}, #{taskname,jdbcType=VARCHAR},
|
||||
#{workstationid,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
|
||||
#{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{modify,jdbcType=VARCHAR},
|
||||
#{modifydt,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.process.TaskWorkstation" >
|
||||
insert into tb_process_task_workstation
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="processid != null" >
|
||||
processid,
|
||||
</if>
|
||||
<if test="taskname != null" >
|
||||
taskname,
|
||||
</if>
|
||||
<if test="workstationid != null" >
|
||||
workstationid,
|
||||
</if>
|
||||
<if test="status != null" >
|
||||
status,
|
||||
</if>
|
||||
<if test="memo != null" >
|
||||
memo,
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser,
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt,
|
||||
</if>
|
||||
<if test="modify != null" >
|
||||
modify,
|
||||
</if>
|
||||
<if test="modifydt != null" >
|
||||
modifydt,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="processid != null" >
|
||||
#{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="taskname != null" >
|
||||
#{taskname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="workstationid != null" >
|
||||
#{workstationid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null" >
|
||||
#{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="memo != null" >
|
||||
#{memo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
#{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
#{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="modify != null" >
|
||||
#{modify,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modifydt != null" >
|
||||
#{modifydt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.process.TaskWorkstation" >
|
||||
update tb_process_task_workstation
|
||||
<set >
|
||||
<if test="processid != null" >
|
||||
processid = #{processid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="taskname != null" >
|
||||
taskname = #{taskname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="workstationid != null" >
|
||||
workstationid = #{workstationid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null" >
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="memo != null" >
|
||||
memo = #{memo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuser != null" >
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="modify != null" >
|
||||
modify = #{modify,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modifydt != null" >
|
||||
modifydt = #{modifydt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.process.TaskWorkstation" >
|
||||
update tb_process_task_workstation
|
||||
set processid = #{processid,jdbcType=VARCHAR},
|
||||
taskname = #{taskname,jdbcType=VARCHAR},
|
||||
workstationid = #{workstationid,jdbcType=VARCHAR},
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
memo = #{memo,jdbcType=VARCHAR},
|
||||
insuser = #{insuser,jdbcType=VARCHAR},
|
||||
insdt = #{insdt,jdbcType=TIMESTAMP},
|
||||
modify = #{modify,jdbcType=VARCHAR},
|
||||
modifydt = #{modifydt,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_process_task_workstation
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String" >
|
||||
delete from tb_process_task_workstation
|
||||
${where}
|
||||
</delete>
|
||||
|
||||
<select id="selectListByWhere1" parameterType="String" resultMap="BaseResultMap">
|
||||
SELECT tb_process_task_workstation.*,tb_dept.name as deptname,tb_work_workstation_type.name as typename,
|
||||
tb_work_workstation.serial,tb_work_workstation.name
|
||||
FROM tb_process_task_workstation
|
||||
left join tb_work_workstation on tb_work_workstation.id = tb_process_task_workstation.workstationid
|
||||
left join tb_work_workstation_type on tb_work_workstation.typeid = tb_work_workstation_type.id
|
||||
left join tb_dept on tb_work_workstation.deptid = tb_dept.id
|
||||
left join tb_process_real on tb_process_real.processid=tb_process_task_workstation.processid
|
||||
left join tb_process_real_details on tb_process_real_details.pid=tb_process_real.id
|
||||
${where}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user