first commit

This commit is contained in:
2026-01-16 14:13:44 +08:00
commit 903ff8d495
34603 changed files with 8585054 additions and 0 deletions

View File

@ -0,0 +1,198 @@
<?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="equipment.EquipmentArrangementMapper">
<resultMap id="BaseResultMap" type="com.sipai.entity.equipment.EquipmentArrangement">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="workorderid" jdbcType="VARCHAR" property="workorderid" />
<result column="taskcode" jdbcType="VARCHAR" property="taskcode" />
<result column="insdt" jdbcType="TIMESTAMP" property="insdt" />
<result column="insuser" jdbcType="VARCHAR" property="insuser" />
<result column="equipmentid" jdbcType="VARCHAR" property="equipmentid" />
<result column="arrangementdate" jdbcType="TIMESTAMP" property="arrangementdate" />
<result column="groupManageid" jdbcType="CHAR" property="groupManageid" />
<result column="stdt" jdbcType="TIMESTAMP" property="stdt" />
<result column="enddt" jdbcType="TIMESTAMP" property="enddt" />
</resultMap>
<sql id="Base_Column_List">
id, workorderid, taskcode, insdt, insuser, equipmentid, arrangementdate, groupManageid,
stdt, enddt
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from TB_EM_Arrangement
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from TB_EM_Arrangement
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.equipment.EquipmentArrangement">
insert into TB_EM_Arrangement (id, workorderid, taskcode,
insdt, insuser, equipmentid,
arrangementdate, groupManageid, stdt,
enddt)
values (#{id,jdbcType=VARCHAR}, #{workorderid,jdbcType=VARCHAR}, #{taskcode,jdbcType=VARCHAR},
#{insdt,jdbcType=TIMESTAMP}, #{insuser,jdbcType=VARCHAR}, #{equipmentid,jdbcType=VARCHAR},
#{arrangementdate,jdbcType=TIMESTAMP}, #{groupManageid,jdbcType=CHAR}, #{stdt,jdbcType=TIMESTAMP},
#{enddt,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.equipment.EquipmentArrangement">
insert into TB_EM_Arrangement
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="workorderid != null">
workorderid,
</if>
<if test="taskcode != null">
taskcode,
</if>
<if test="insdt != null">
insdt,
</if>
<if test="insuser != null">
insuser,
</if>
<if test="equipmentid != null">
equipmentid,
</if>
<if test="arrangementdate != null">
arrangementdate,
</if>
<if test="groupManageid != null">
groupManageid,
</if>
<if test="stdt != null">
stdt,
</if>
<if test="enddt != null">
enddt,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="workorderid != null">
#{workorderid,jdbcType=VARCHAR},
</if>
<if test="taskcode != null">
#{taskcode,jdbcType=VARCHAR},
</if>
<if test="insdt != null">
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="insuser != null">
#{insuser,jdbcType=VARCHAR},
</if>
<if test="equipmentid != null">
#{equipmentid,jdbcType=VARCHAR},
</if>
<if test="arrangementdate != null">
#{arrangementdate,jdbcType=TIMESTAMP},
</if>
<if test="groupManageid != null">
#{groupManageid,jdbcType=CHAR},
</if>
<if test="stdt != null">
#{stdt,jdbcType=TIMESTAMP},
</if>
<if test="enddt != null">
#{enddt,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.equipment.EquipmentArrangement">
update TB_EM_Arrangement
<set>
<if test="workorderid != null">
workorderid = #{workorderid,jdbcType=VARCHAR},
</if>
<if test="taskcode != null">
taskcode = #{taskcode,jdbcType=VARCHAR},
</if>
<if test="insdt != null">
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="insuser != null">
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="equipmentid != null">
equipmentid = #{equipmentid,jdbcType=VARCHAR},
</if>
<if test="arrangementdate != null">
arrangementdate = #{arrangementdate,jdbcType=TIMESTAMP},
</if>
<if test="groupManageid != null">
groupManageid = #{groupManageid,jdbcType=CHAR},
</if>
<if test="stdt != null">
stdt = #{stdt,jdbcType=TIMESTAMP},
</if>
<if test="enddt != null">
enddt = #{enddt,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.equipment.EquipmentArrangement">
update TB_EM_Arrangement
set workorderid = #{workorderid,jdbcType=VARCHAR},
taskcode = #{taskcode,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
insuser = #{insuser,jdbcType=VARCHAR},
equipmentid = #{equipmentid,jdbcType=VARCHAR},
arrangementdate = #{arrangementdate,jdbcType=TIMESTAMP},
groupManageid = #{groupManageid,jdbcType=CHAR},
stdt = #{stdt,jdbcType=TIMESTAMP},
enddt = #{enddt,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from TB_EM_Arrangement
${where}
</select>
<select id="selectByWhere" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from TB_EM_Arrangement
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String">
delete from TB_EM_Arrangement
${where}
</delete>
<resultMap id="ResultMap_groupManage" type="com.sipai.entity.equipment.EquipmentArrangement">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="workorderid" jdbcType="VARCHAR" property="workorderid" />
<result column="taskcode" jdbcType="VARCHAR" property="taskcode" />
<result column="insdt" jdbcType="TIMESTAMP" property="insdt" />
<result column="insuser" jdbcType="VARCHAR" property="insuser" />
<result column="equipmentid" jdbcType="VARCHAR" property="equipmentid" />
<result column="arrangementdate" jdbcType="TIMESTAMP" property="arrangementdate" />
<result column="groupManageid" jdbcType="CHAR" property="groupManageid" />
<result column="stdt" jdbcType="TIMESTAMP" property="stdt" />
<result column="enddt" jdbcType="TIMESTAMP" property="enddt" />
<result column="gt_sdt" jdbcType="TIMESTAMP" property="gt_sdt" />
<result column="gt_enddt" jdbcType="TIMESTAMP" property="gt_enddt" />
<result column="gt_name" jdbcType="VARCHAR" property="gt_name" />
<result column="gt_id" jdbcType="VARCHAR" property="gt_id" />
</resultMap>
<!-- 查看设备按班次的安排情况 -->
<select id="selectEquipArrangementByWhere" parameterType="java.lang.String" resultMap="ResultMap_groupManage">
select gt.sdt as gt_sdt,gt.edt as gt_enddt,gt.name as gt_name,gt.id as groupManageid,
agresult.*
from tb_work_groupManage gt
left join (select * from TB_EM_Arrangement
${where}
)agresult
on gt.id=agresult.groupManageid order by agresult.stdt asc
</select>
</mapper>

View File

@ -0,0 +1,362 @@
<?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="equipment.EquipmentCardMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.equipment.EquipmentCard" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="VARCHAR" />
<result column="equipmentCardID" property="equipmentcardid" jdbcType="VARCHAR" />
<result column="equipmentClassID" property="equipmentclassid" jdbcType="VARCHAR" />
<result column="equipmentModel" property="equipmentmodel" jdbcType="VARCHAR" />
<result column="areaID" property="areaid" jdbcType="VARCHAR" />
<result column="currentManageFlag" property="currentmanageflag" jdbcType="VARCHAR" />
<result column="equipmentName" property="equipmentname" jdbcType="CLOB" />
<result column="remark" property="remark" jdbcType="CLOB" />
<result column="equipmentManufacturer" property="equipmentmanufacturer" jdbcType="VARCHAR" />
<result column="responsiblePerson" property="responsibleperson" jdbcType="VARCHAR" />
<result column="storageLocation" property="storagelocation" jdbcType="VARCHAR" />
<result column="equipmentValue" property="equipmentvalue" jdbcType="VARCHAR" />
<result column="productionDate" property="productiondate" jdbcType="TIMESTAMP" />
<result column="responsibleDepartment" property="responsibledepartment" jdbcType="VARCHAR" />
<result column="equipmentClas" property="equipmentclas" jdbcType="VARCHAR" />
<result column="equipmentStatus" property="equipmentstatus" jdbcType="VARCHAR" />
</resultMap>
<!-- <resultMap id="ResultMapWithBLOBs" type="com.sipai.entity.equipment.EquipmentCardWithBLOBs" extends="BaseResultMap" > -->
<!-- <result column="equipmentName" property="equipmentname" jdbcType="CLOB" /> -->
<!-- <result column="remark" property="remark" jdbcType="CLOB" /> -->
<!-- </resultMap> -->
<sql id="Base_Column_List" >
id, insuser, insdt, equipmentCardID, equipmentClassID, equipmentModel, areaID, currentManageFlag,equipmentName, remark,
equipmentManufacturer, responsiblePerson, storageLocation, equipmentValue, productionDate,
responsibleDepartment,equipmentClas,equipmentStatus
</sql>
<!-- <sql id="Blob_Column_List" > -->
<!-- equipmentName, remark -->
<!-- </sql> -->
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_EquipmentCard
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TB_EM_EquipmentCard
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.equipment.EquipmentCard" >
insert into TB_EM_EquipmentCard (id, insuser, insdt,
equipmentCardID, equipmentClassID, equipmentModel,
areaID, currentManageFlag, equipmentName,
remark, equipmentManufacturer, responsiblePerson, storageLocation, equipmentValue, productionDate,
responsibleDepartment,equipmentClas,equipmentStatus)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=VARCHAR},
#{equipmentcardid,jdbcType=VARCHAR}, #{equipmentclassid,jdbcType=VARCHAR}, #{equipmentmodel,jdbcType=VARCHAR},
#{areaid,jdbcType=VARCHAR}, #{currentmanageflag,jdbcType=VARCHAR}, #{equipmentname,jdbcType=CLOB},
#{remark,jdbcType=CLOB},#{equipmentmanufacturer,jdbcType=VARCHAR},
#{responsibleperson,jdbcType=VARCHAR}, #{storagelocation,jdbcType=VARCHAR}, #{equipmentvalue,jdbcType=VARCHAR},
#{productiondate,jdbcType=TIMESTAMP}, #{responsibledepartment,jdbcType=VARCHAR},
#{equipmentclas,jdbcType=VARCHAR},#{equipmentstatus,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.equipment.EquipmentCard" >
insert into TB_EM_EquipmentCard
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="equipmentcardid != null" >
equipmentCardID,
</if>
<if test="equipmentclassid != null" >
equipmentClassID,
</if>
<if test="equipmentmodel != null" >
equipmentModel,
</if>
<if test="areaid != null" >
areaID,
</if>
<if test="currentmanageflag != null" >
currentManageFlag,
</if>
<if test="equipmentname != null" >
equipmentName,
</if>
<if test="remark != null" >
remark,
</if>
<if test="equipmentmanufacturer != null" >
equipmentManufacturer,
</if>
<if test="responsibleperson != null" >
responsiblePerson,
</if>
<if test="storagelocation != null" >
storageLocation,
</if>
<if test="equipmentvalue != null" >
equipmentValue,
</if>
<if test="productiondate != null" >
productionDate,
</if>
<if test="responsibledepartment != null" >
responsibleDepartment,
</if>
<if test="equipmentclas != null" >
equipmentClas,
</if>
<if test="equipmentstatus != null" >
equipmentStatus,
</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=VARCHAR},
</if>
<if test="equipmentcardid != null" >
#{equipmentcardid,jdbcType=VARCHAR},
</if>
<if test="equipmentclassid != null" >
#{equipmentclassid,jdbcType=VARCHAR},
</if>
<if test="equipmentmodel != null" >
#{equipmentmodel,jdbcType=VARCHAR},
</if>
<if test="areaid != null" >
#{areaid,jdbcType=VARCHAR},
</if>
<if test="currentmanageflag != null" >
#{currentmanageflag,jdbcType=VARCHAR},
</if>
<if test="equipmentname != null" >
#{equipmentname,jdbcType=CLOB},
</if>
<if test="remark != null" >
#{remark,jdbcType=CLOB},
</if>
<if test="equipmentmanufacturer != null" >
#{equipmentmanufacturer,jdbcType=VARCHAR},
</if>
<if test="responsibleperson != null" >
#{responsibleperson,jdbcType=VARCHAR},
</if>
<if test="storagelocation != null" >
#{storagelocation,jdbcType=VARCHAR},
</if>
<if test="equipmentvalue != null" >
#{equipmentvalue,jdbcType=VARCHAR},
</if>
<if test="productiondate != null" >
#{productiondate,jdbcType=TIMESTAMP},
</if>
<if test="responsibledepartment != null" >
#{responsibledepartment,jdbcType=VARCHAR},
</if>
<if test="equipmentclas!= null" >
#{equipmentclas,jdbcType=VARCHAR},
</if>
<if test="equipmentstatus!= null" >
#{equipmentstatus,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.equipment.EquipmentCard" >
update TB_EM_EquipmentCard
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=VARCHAR},
</if>
<if test="equipmentcardid != null" >
equipmentCardID = #{equipmentcardid,jdbcType=VARCHAR},
</if>
<if test="equipmentclassid != null" >
equipmentClassID = #{equipmentclassid,jdbcType=VARCHAR},
</if>
<if test="equipmentmodel != null" >
equipmentModel = #{equipmentmodel,jdbcType=VARCHAR},
</if>
<if test="areaid != null" >
areaID = #{areaid,jdbcType=VARCHAR},
</if>
<if test="currentmanageflag != null" >
currentManageFlag = #{currentmanageflag,jdbcType=VARCHAR},
</if>
<if test="equipmentname != null" >
equipmentName = #{equipmentname,jdbcType=CLOB},
</if>
<if test="remark != null" >
remark = #{remark,jdbcType=CLOB},
</if>
<if test="equipmentmanufacturer != null" >
equipmentManufacturer = #{equipmentmanufacturer,jdbcType=VARCHAR},
</if>
<if test="responsibleperson != null" >
responsiblePerson = #{responsibleperson,jdbcType=VARCHAR},
</if>
<if test="storagelocation != null" >
storageLocation = #{storagelocation,jdbcType=VARCHAR},
</if>
<if test="equipmentvalue != null" >
equipmentValue = #{equipmentvalue,jdbcType=VARCHAR},
</if>
<if test="productiondate != null" >
productionDate = #{productiondate,jdbcType=TIMESTAMP},
</if>
<if test="responsibledepartment != null" >
responsibleDepartment = #{responsibledepartment,jdbcType=VARCHAR},
</if>
<if test=" equipmentclas != null" >
equipmentClas = #{equipmentclas,jdbcType=VARCHAR},
</if>
<if test=" equipmentstatus != null" >
equipmentStatus = #{ equipmentstatus,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.equipment.EquipmentCard" >
update TB_EM_EquipmentCard
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=VARCHAR},
equipmentCardID = #{equipmentcardid,jdbcType=VARCHAR},
equipmentClassID = #{equipmentclassid,jdbcType=VARCHAR},
equipmentModel = #{equipmentmodel,jdbcType=VARCHAR},
areaID = #{areaid,jdbcType=VARCHAR},
currentManageFlag = #{currentmanageflag,jdbcType=VARCHAR},
equipmentName = #{equipmentname,jdbcType=CLOB},
remark = #{remark,jdbcType=CLOB},
equipmentManufacturer = #{equipmentmanufacturer,jdbcType=VARCHAR},
responsiblePerson = #{responsibleperson,jdbcType=VARCHAR},
storageLocation = #{storagelocation,jdbcType=VARCHAR},
equipmentValue = #{equipmentvalue,jdbcType=VARCHAR},
productionDate = #{productiondate,jdbcType=TIMESTAMP},
responsibleDepartment = #{responsibledepartment,jdbcType=VARCHAR},
equipmentClas = #{equipmentclas,jdbcType=VARCHAR},
equipmentStatus = #{equipmentstatus,jdbcType=VARCHAR},
where id = #{id,jdbcType=VARCHAR}
</update>
<!-- <update id="updateByPrimaryKey" parameterType="com.sipai.entity.equipment.EquipmentCard" >
update TB_EM_EquipmentCard
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=VARCHAR},
equipmentCardID = #{equipmentcardid,jdbcType=VARCHAR},
equipmentClassID = #{equipmentclassid,jdbcType=VARCHAR},
equipmentModel = #{equipmentmodel,jdbcType=VARCHAR},
areaID = #{areaid,jdbcType=VARCHAR},
currentManageFlag = #{currentmanageflag,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update> -->
<select id="selectList" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_EquipmentCard
order by equipmentName
</select>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_EquipmentCard
${where}
</select>
<select id="selectByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_EquipmentCard
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from TB_EM_EquipmentCard
${where}
</delete>
<select id="getEquipmentCard" resultMap="ClassResultMapEquipmentCard" parameterType="java.lang.String">
SELECT
E.id as e_id,
E.equipmentCardID,
E.equipmentName,
E.equipmentClassID,
E.equipmentModel,
E.areaID,
E.currentManageFlag,
E.equipmentManufacturer,
E.responsiblePerson,
E.storageLocation,
E.equipmentValue,
E.productionDate,
E.responsibleDepartment,
E.equipmentClas,
E.equipmentStatus,
E.remark as e_remark,
E.insuser as e_insuser,
E.insdt as e_insdt,
C.id as c_id,
C.name as c_name,
C.status as c_status,
G.id as g_id,
G.name as g_name,
G.status as g_status
FROM TB_EM_EquipmentCard E
LEFT OUTER JOIN TB_EM_EquipmentClass C ON C.id = E.equipmentClassID
LEFT OUTER JOIN TB_EM_GeographyArea G ON G.id = E.areaID
${where}
</select>
<resultMap id="ClassResultMapEquipmentCard" type="com.sipai.entity.equipment.EquipmentCard">
<id property="id" column="e_id" />
<result property="equipmentcardid" column="equipmentCardID"/>
<result property="equipmentname" column="equipmentName"/>
<result property="equipmentclassid" column="equipmentClassID"/>
<result property="equipmentmodel" column="equipmentModel"/>
<result property="areaid" column="areaID"/>
<result property="currentmanageflag" column="currentManageFlag"/>
<result property="remark" column="e_remark"/>
<result column="equipmentManufacturer" property="equipmentmanufacturer" jdbcType="VARCHAR" />
<result column="responsiblePerson" property="responsibleperson" jdbcType="VARCHAR" />
<result column="storageLocation" property="storagelocation" jdbcType="VARCHAR" />
<result column="equipmentValue" property="equipmentvalue" jdbcType="VARCHAR" />
<result column="productionDate" property="productiondate" jdbcType="TIMESTAMP" />
<result column="responsibleDepartment" property="responsibledepartment" jdbcType="VARCHAR" />
<result property="equipmentclas" column="equipmentClas"/>
<result property="equipmentstatus" column="equipmentStatus"/>
<result property="insuser" column="e_insuser"/>
<result property="insdt" column="e_insdt"/>
<association property="equipmentclass" resultMap="equipmentclassResult" />
<association property="geographyarea" resultMap="geographyareaResult" />
</resultMap>
<resultMap id="equipmentclassResult" type="com.sipai.entity.equipment.EquipmentClass">
<id property="id" column="c_id"/>
<result property="name" column="c_name"/>
<result property="status" column="c_status"/>
</resultMap>
<resultMap id="geographyareaResult" type="com.sipai.entity.equipment.GeographyArea">
<id property="id" column="g_id"/>
<result property="name" column="g_name"/>
<result property="status" column="g_status"/>
</resultMap>
<select id="getEquipmentCardByCardId" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_EquipmentCard
where equipmentcardId = #{equipmentcardid,jdbcType=VARCHAR}
</select>
</mapper>

View File

@ -0,0 +1,186 @@
<?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="equipment.EquipmentClassMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.equipment.EquipmentClass" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="name" property="name" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="remark" property="remark" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="VARCHAR" />
<result column="bizid" property="bizid" jdbcType="VARCHAR" />
<result column="code" property="code" jdbcType="VARCHAR" />
<result column="pid" property="pid" jdbcType="VARCHAR" />
<result column="flag" property="flag" jdbcType="VARCHAR" />
<result column=" interfacetype" property=" interfacetype" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, name, insdt, insuser, remark, status, bizid, code, pid, flag, interfacetype
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_EquipmentClass
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TB_EM_EquipmentClass
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.equipment.EquipmentClass" >
insert into TB_EM_EquipmentClass (id, name, insdt,
insuser, remark, status,
bizid, code, pid, flag,
interfacetype
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{insuser,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
#{bizid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{flag,jdbcType=VARCHAR},
#{interfacetype,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.equipment.EquipmentClass" >
insert into TB_EM_EquipmentClass
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="name != null" >
name,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="remark != null" >
remark,
</if>
<if test="status != null" >
status,
</if>
<if test="bizid != null" >
bizid,
</if>
<if test="code != null" >
code,
</if>
<if test="pid != null" >
pid,
</if>
<if test="flag != null" >
flag,
</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="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
#{remark,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="bizid != null" >
#{bizid,jdbcType=VARCHAR},
</if>
<if test="code != null" >
#{code,jdbcType=VARCHAR},
</if>
<if test="pid != null" >
#{pid,jdbcType=VARCHAR},
</if>
<if test="flag != null" >
#{flag,jdbcType=VARCHAR},
</if>
<if test="interfacetype != null" >
#{ interfacetype,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.equipment.EquipmentClass" >
update TB_EM_EquipmentClass
<set >
<if test="name != null" >
name = #{name,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="status != null" >
status = #{status,jdbcType=VARCHAR},
</if>
<if test="bizid != null" >
bizid = #{bizid,jdbcType=VARCHAR},
</if>
<if test="code != null" >
code = #{code,jdbcType=VARCHAR},
</if>
<if test="pid != null" >
pid = #{pid,jdbcType=VARCHAR},
</if>
<if test="flag != null" >
flag = #{flag,jdbcType=VARCHAR},
</if>
<if test="interfacetype != null" >
interfacetype = #{interfacetype,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.equipment.EquipmentClass" >
update TB_EM_EquipmentClass
set name = #{name,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
insuser = #{insuser,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
bizid = #{bizid,jdbcType=VARCHAR},
code = #{code,jdbcType=VARCHAR},
pid = #{pid,jdbcType=VARCHAR},
flag = #{flag,jdbcType=VARCHAR},
interfacetype = #{interfacetype,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectList" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_EquipmentClass
order by name
</select>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_EquipmentClass
${where}
</select>
<select id="selectByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_EquipmentClass
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from TB_EM_EquipmentClass
${where}
</delete>
</mapper>

View File

@ -0,0 +1,215 @@
<?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="equipment.EquipmentMaintainMapper">
<resultMap id="BaseResultMap" type="com.sipai.entity.equipment.EquipmentMaintain">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="insuser" jdbcType="VARCHAR" property="insuser" />
<result column="insdt" jdbcType="TIMESTAMP" property="insdt" />
<result column="equipmentCardID" jdbcType="VARCHAR" property="equipmentcardid" />
<result column="equipmentName" jdbcType="VARCHAR" property="equipmentname" />
<result column="equipmentClassID" jdbcType="VARCHAR" property="equipmentclassid" />
<result column="equipmentModel" jdbcType="VARCHAR" property="equipmentmodel" />
<result column="areaID" jdbcType="VARCHAR" property="areaid" />
<result column="currentManageFlag" jdbcType="VARCHAR" property="currentmanageflag" />
<result column="describe" jdbcType="VARCHAR" property="describe" />
<result column="maintenanceman" jdbcType="VARCHAR" property="maintenanceman" />
<result column="time" jdbcType="TIMESTAMP" property="time"/>
<result column="equipmentcode" property="equipmentcode" jdbcType="VARCHAR"/>
<result column="mancaption" property="mancaption" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id, insuser, insdt, equipmentCardID, equipmentName, equipmentClassID, equipmentModel,
areaID, currentManageFlag, describe, maintenanceman, time
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from TB_EM_EquipmentMaintain
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from TB_EM_EquipmentMaintain
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.equipment.EquipmentMaintain">
insert into TB_EM_EquipmentMaintain (id, insuser, insdt,
equipmentCardID, equipmentName, equipmentClassID,
equipmentModel, areaID, currentManageFlag,
describe, maintenanceman, time
)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{equipmentcardid,jdbcType=VARCHAR}, #{equipmentname,jdbcType=VARCHAR}, #{equipmentclassid,jdbcType=VARCHAR},
#{equipmentmodel,jdbcType=VARCHAR}, #{areaid,jdbcType=VARCHAR}, #{currentmanageflag,jdbcType=VARCHAR},
#{describe,jdbcType=VARCHAR}, #{maintenanceman,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.equipment.EquipmentMaintain">
insert into TB_EM_EquipmentMaintain
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="insuser != null">
insuser,
</if>
<if test="insdt != null">
insdt,
</if>
<if test="equipmentcardid != null">
equipmentCardID,
</if>
<if test="equipmentname != null">
equipmentName,
</if>
<if test="equipmentclassid != null">
equipmentClassID,
</if>
<if test="equipmentmodel != null">
equipmentModel,
</if>
<if test="areaid != null">
areaID,
</if>
<if test="currentmanageflag != null">
currentManageFlag,
</if>
<if test="describe != null">
describe,
</if>
<if test="maintenanceman != null">
maintenanceman,
</if>
<if test="time != null">
time,
</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="equipmentcardid != null">
#{equipmentcardid,jdbcType=VARCHAR},
</if>
<if test="equipmentname != null">
#{equipmentname,jdbcType=VARCHAR},
</if>
<if test="equipmentclassid != null">
#{equipmentclassid,jdbcType=VARCHAR},
</if>
<if test="equipmentmodel != null">
#{equipmentmodel,jdbcType=VARCHAR},
</if>
<if test="areaid != null">
#{areaid,jdbcType=VARCHAR},
</if>
<if test="currentmanageflag != null">
#{currentmanageflag,jdbcType=VARCHAR},
</if>
<if test="describe != null">
#{describe,jdbcType=VARCHAR},
</if>
<if test="maintenanceman != null">
#{maintenanceman,jdbcType=VARCHAR},
</if>
<if test="time != null">
#{time,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.equipment.EquipmentMaintain">
update TB_EM_EquipmentMaintain
<set>
<if test="insuser != null">
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null">
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="equipmentcardid != null">
equipmentCardID = #{equipmentcardid,jdbcType=VARCHAR},
</if>
<if test="equipmentname != null">
equipmentName = #{equipmentname,jdbcType=VARCHAR},
</if>
<if test="equipmentclassid != null">
equipmentClassID = #{equipmentclassid,jdbcType=VARCHAR},
</if>
<if test="equipmentmodel != null">
equipmentModel = #{equipmentmodel,jdbcType=VARCHAR},
</if>
<if test="areaid != null">
areaID = #{areaid,jdbcType=VARCHAR},
</if>
<if test="currentmanageflag != null">
currentManageFlag = #{currentmanageflag,jdbcType=VARCHAR},
</if>
<if test="describe != null">
describe = #{describe,jdbcType=VARCHAR},
</if>
<if test="maintenanceman != null">
maintenanceman = #{maintenanceman,jdbcType=VARCHAR},
</if>
<if test="time != null">
time = #{time,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.equipment.EquipmentMaintain">
update TB_EM_EquipmentMaintain
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
equipmentCardID = #{equipmentcardid,jdbcType=VARCHAR},
equipmentName = #{equipmentname,jdbcType=VARCHAR},
equipmentClassID = #{equipmentclassid,jdbcType=VARCHAR},
equipmentModel = #{equipmentmodel,jdbcType=VARCHAR},
areaID = #{areaid,jdbcType=VARCHAR},
currentManageFlag = #{currentmanageflag,jdbcType=VARCHAR},
describe = #{describe,jdbcType=VARCHAR},
maintenanceman = #{maintenanceman,jdbcType=VARCHAR},
time = #{time,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from TB_EM_EquipmentMaintain
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String">
delete from TB_EM_EquipmentMaintain
${where}
</delete>
<select id="getEquipmentMaintain" parameterType="java.lang.String" resultMap="BaseResultMap">
SELECT
E.id,
E.equipmentCardID ,
C.equipmentName as equipmentname,
A.name as equipmentclassid,
C.equipmentModel as equipmentmodel,
G.name as areaid,
C.currentManageFlag as currentManageflag,
E.maintenanceman as maintenanceman,
E.time as time,
E.describe as describe,
C.equipmentCardID as equipmentcode,
U.caption as mancaption
FROM TB_EM_EquipmentMaintain E
Left outer join TB_EM_EquipmentCard C On E.equipmentCardID = C.id
Left outer join tb_user U ON U.id = E.maintenanceman
left outer join TB_EM_GeographyArea G on C.areaID = G.id
left outer join TB_EM_EquipmentClass A on A.id = C.equipmentClassID
${where}
</select>
</mapper>

View 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="equipment.EquipmentPointMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.equipment.EquipmentPoint" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="equipmentCardid" property="equipmentcardid" jdbcType="VARCHAR" />
<result column="pointId" property="pointid" jdbcType="VARCHAR" />
<result column="equipmentCardName" property="equipmentcardname" jdbcType="VARCHAR" />
<result column="pointName" property="pointname" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, insdt, insuser, equipmentCardid, pointId, equipmentCardName, pointName
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_EquipmentPoint
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TB_EM_EquipmentPoint
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.equipment.EquipmentPoint" >
insert into TB_EM_EquipmentPoint (id, insdt, insuser,
equipmentCardid, pointId, equipmentCardName,
pointName)
values (#{id,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP}, #{insuser,jdbcType=VARCHAR},
#{equipmentcardid,jdbcType=VARCHAR}, #{pointid,jdbcType=VARCHAR}, #{equipmentcardname,jdbcType=VARCHAR},
#{pointname,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.equipment.EquipmentPoint" >
insert into TB_EM_EquipmentPoint
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="equipmentcardid != null" >
equipmentCardid,
</if>
<if test="pointid != null" >
pointId,
</if>
<if test="equipmentcardname != null" >
equipmentCardName,
</if>
<if test="pointname != null" >
pointName,
</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="equipmentcardid != null" >
#{equipmentcardid,jdbcType=VARCHAR},
</if>
<if test="pointid != null" >
#{pointid,jdbcType=VARCHAR},
</if>
<if test="equipmentcardname != null" >
#{equipmentcardname,jdbcType=VARCHAR},
</if>
<if test="pointname != null" >
#{pointname,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.equipment.EquipmentPoint" >
update TB_EM_EquipmentPoint
<set >
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="equipmentcardid != null" >
equipmentCardid = #{equipmentcardid,jdbcType=VARCHAR},
</if>
<if test="pointid != null" >
pointId = #{pointid,jdbcType=VARCHAR},
</if>
<if test="equipmentcardname != null" >
equipmentCardName = #{equipmentcardname,jdbcType=VARCHAR},
</if>
<if test="pointname != null" >
pointName = #{pointname,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.equipment.EquipmentPoint" >
update TB_EM_EquipmentPoint
set insdt = #{insdt,jdbcType=TIMESTAMP},
insuser = #{insuser,jdbcType=VARCHAR},
equipmentCardid = #{equipmentcardid,jdbcType=VARCHAR},
pointId = #{pointid,jdbcType=VARCHAR},
equipmentCardName = #{equipmentcardname,jdbcType=VARCHAR},
pointName = #{pointname,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_EM_EquipmentPoint
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from TB_EM_EquipmentPoint
${where}
</delete>
</mapper>

View File

@ -0,0 +1,161 @@
<?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="equipment.GeographyAreaMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.equipment.GeographyArea" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="name" property="name" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="remark" property="remark" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="VARCHAR" />
<result column="bizid" property="bizid" jdbcType="VARCHAR" />
<result column="code" property="code" jdbcType="VARCHAR" />
<result column="pid" property="pid" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, name, insdt, insuser, remark, status, bizid, code, pid
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_GeographyArea
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TB_EM_GeographyArea
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.equipment.GeographyArea" >
insert into TB_EM_GeographyArea (id, name, insdt,
insuser, remark, status,
bizid, code, pid)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{insuser,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
#{bizid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.equipment.GeographyArea" >
insert into TB_EM_GeographyArea
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="name != null" >
name,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="remark != null" >
remark,
</if>
<if test="status != null" >
status,
</if>
<if test="bizid != null" >
bizid,
</if>
<if test="code != null" >
code,
</if>
<if test="pid != null" >
pid,
</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="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
#{remark,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="bizid != null" >
#{bizid,jdbcType=VARCHAR},
</if>
<if test="code != null" >
#{code,jdbcType=VARCHAR},
</if>
<if test="pid != null" >
#{pid,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.equipment.GeographyArea" >
update TB_EM_GeographyArea
<set >
<if test="name != null" >
name = #{name,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="status != null" >
status = #{status,jdbcType=VARCHAR},
</if>
<if test="bizid != null" >
bizid = #{bizid,jdbcType=VARCHAR},
</if>
<if test="code != null" >
code = #{code,jdbcType=VARCHAR},
</if>
<if test="pid != null" >
pid = #{pid,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.equipment.GeographyArea" >
update TB_EM_GeographyArea
set name = #{name,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
insuser = #{insuser,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
bizid = #{bizid,jdbcType=VARCHAR},
code = #{code,jdbcType=VARCHAR},
pid = #{pid,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectList" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_GeographyArea
order by name
</select>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_GeographyArea
${where}
</select>
<select id="selectByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_EM_GeographyArea
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from TB_EM_GeographyArea
${where}
</delete>
</mapper>

View File

@ -0,0 +1,122 @@
<?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="equipment.MaintenancePlanEquipmentMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.equipment.MaintenancePlanEquipment" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="maintenanceplanid" property="maintenanceplanid" jdbcType="VARCHAR" />
<result column="EquipmentCardid" property="equipmentcardid" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, insuser, insdt, maintenanceplanid, EquipmentCardid
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_equipment_maintenanceplan_equipmentcard
where id = #{id,jdbcType=VARCHAR}
</select>
<resultMap id="BaseResultMap1" type="com.sipai.entity.equipment.EquipmentCard" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="VARCHAR" />
<result column="equipmentCardID" property="equipmentcardid" jdbcType="VARCHAR" />
<result column="equipmentClassID" property="equipmentclassid" jdbcType="VARCHAR" />
<result column="equipmentModel" property="equipmentmodel" jdbcType="VARCHAR" />
<result column="areaID" property="areaid" jdbcType="VARCHAR" />
<result column="currentManageFlag" property="currentmanageflag" jdbcType="VARCHAR" />
<result column="equipmentName" property="equipmentname" jdbcType="CLOB" />
<result column="remark" property="remark" jdbcType="CLOB" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_equipment_maintenanceplan_equipmentcard
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.equipment.MaintenancePlanEquipment" >
insert into tb_equipment_maintenanceplan_equipmentcard (id, insuser, insdt,
maintenanceplanid, EquipmentCardid)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{maintenanceplanid,jdbcType=VARCHAR}, #{equipmentcardid,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.equipment.MaintenancePlanEquipment" >
insert into tb_equipment_maintenanceplan_equipmentcard
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="maintenanceplanid != null" >
maintenanceplanid,
</if>
<if test="equipmentcardid != null" >
EquipmentCardid,
</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="maintenanceplanid != null" >
#{maintenanceplanid,jdbcType=VARCHAR},
</if>
<if test="equipmentcardid != null" >
#{equipmentcardid,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.equipment.MaintenancePlanEquipment" >
update tb_equipment_maintenanceplan_equipmentcard
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="maintenanceplanid != null" >
maintenanceplanid = #{maintenanceplanid,jdbcType=VARCHAR},
</if>
<if test="equipmentcardid != null" >
EquipmentCardid = #{equipmentcardid,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.equipment.MaintenancePlanEquipment" >
update tb_equipment_maintenanceplan_equipmentcard
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
maintenanceplanid = #{maintenanceplanid,jdbcType=VARCHAR},
EquipmentCardid = #{equipmentcardid,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectEquipmentCard" resultMap="BaseResultMap1" parameterType="java.lang.String">
select tb_EM_EquipmentCard.* from tb_equipment_maintenanceplan_equipmentcard left join tb_EM_EquipmentCard
on tb_EM_EquipmentCard.id=tb_equipment_maintenanceplan_equipmentcard.EquipmentCardid
${where}
</select>
<select id="selectListByWhere" resultMap="BaseResultMap"
parameterType="java.lang.String">
select
<include refid="Base_Column_List" />
from tb_equipment_maintenanceplan_equipmentcard
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String">
delete from
tb_equipment_maintenanceplan_equipmentcard
${where}
</delete>
</mapper>

View File

@ -0,0 +1,198 @@
<?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="equipment.MaintenancePlanMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.equipment.MaintenancePlan" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="plantype" property="plantype" jdbcType="VARCHAR" />
<result column="plannumber" property="plannumber" jdbcType="VARCHAR" />
<result column="plancontent" property="plancontent" jdbcType="VARCHAR" />
<result column="condition" property="condition" jdbcType="VARCHAR" />
<result column="plantime" property="plantime" jdbcType="VARCHAR" />
<result column="realtime" property="realtime" jdbcType="VARCHAR" />
<result column="behaviordescription" property="behaviordescription" jdbcType="VARCHAR" />
<result column="performer" property="performer" jdbcType="VARCHAR" />
<result column="remark" property="remark" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, insuser, insdt, plantype, plannumber, plancontent, condition, plantime, realtime,
behaviordescription, performer,remark
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_equipment_maintenanceplan
where id = #{id,jdbcType=VARCHAR}
</select>
<select id="getListByPlanNumber" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_equipment_maintenanceplan
where plannumber = #{plannumber,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_equipment_maintenanceplan
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.equipment.MaintenancePlan" >
insert into tb_equipment_maintenanceplan (id, insuser, insdt,
plantype, plannumber, plancontent,
condition, plantime, realtime,
behaviordescription, performer,remark)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{plantype,jdbcType=VARCHAR}, #{plannumber,jdbcType=VARCHAR}, #{plancontent,jdbcType=VARCHAR},
#{condition,jdbcType=VARCHAR}, #{plantime,jdbcType=VARCHAR}, #{realtime,jdbcType=VARCHAR},
#{behaviordescription,jdbcType=VARCHAR}, #{performer,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.equipment.MaintenancePlan" >
insert into tb_plan_maintenanceplan
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="plantype != null" >
plantype,
</if>
<if test="plannumber != null" >
plannumber,
</if>
<if test="plancontent != null" >
plancontent,
</if>
<if test="condition != null" >
condition,
</if>
<if test="plantime != null" >
plantime,
</if>
<if test="realtime != null" >
realtime,
</if>
<if test="behaviordescription != null" >
behaviordescription,
</if>
<if test="performer != null" >
performer,
</if>
<if test="remark != null" >
remark,
</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="plantype != null" >
#{plantype,jdbcType=VARCHAR},
</if>
<if test="plannumber != null" >
#{plannumber,jdbcType=VARCHAR},
</if>
<if test="plancontent != null" >
#{plancontent,jdbcType=VARCHAR},
</if>
<if test="condition != null" >
#{condition,jdbcType=VARCHAR},
</if>
<if test="plantime != null" >
#{plantime,jdbcType=VARCHAR},
</if>
<if test="realtime != null" >
#{realtime,jdbcType=VARCHAR},
</if>
<if test="behaviordescription != null" >
#{behaviordescription,jdbcType=VARCHAR},
</if>
<if test="performer != null" >
#{performer,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.equipment.MaintenancePlan" >
update tb_equipment_maintenanceplan
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="plantype != null" >
plantype = #{plantype,jdbcType=VARCHAR},
</if>
<if test="plannumber != null" >
plannumber = #{plannumber,jdbcType=VARCHAR},
</if>
<if test="plancontent != null" >
plancontent = #{plancontent,jdbcType=VARCHAR},
</if>
<if test="condition != null" >
condition = #{condition,jdbcType=VARCHAR},
</if>
<if test="plantime != null" >
plantime = #{plantime,jdbcType=VARCHAR},
</if>
<if test="realtime != null" >
realtime = #{realtime,jdbcType=VARCHAR},
</if>
<if test="behaviordescription != null" >
behaviordescription = #{behaviordescription,jdbcType=VARCHAR},
</if>
<if test="performer != null" >
performer = #{performer,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.equipment.MaintenancePlan" >
update tb_equipment_maintenanceplan
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
plantype = #{plantype,jdbcType=VARCHAR},
plannumber = #{plannumber,jdbcType=VARCHAR},
plancontent = #{plancontent,jdbcType=VARCHAR},
condition = #{condition,jdbcType=VARCHAR},
plantime = #{plantime,jdbcType=VARCHAR},
realtime = #{realtime,jdbcType=VARCHAR},
behaviordescription = #{behaviordescription,jdbcType=VARCHAR},
performer = #{performer,jdbcType=VARCHAR},
remark = #{remark,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_equipment_maintenanceplan
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from tb_equipment_maintenanceplan
${where}
</delete>
<select id="getRootByNumberAndVersion" resultMap="BaseResultMap" parameterType="com.sipai.entity.material.MaterialInfo" >
select
<include refid="Base_Column_List" />
from tb_equipment_maintenanceplan
where plannumber = #{plannumber,jdbcType=VARCHAR}
</select>
</mapper>

View File

@ -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="equipment.MaintenanceRecordEquipmentMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.equipment.MaintenanceRecordEquipment" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="maintenancerecordid" property="maintenancerecordid" jdbcType="VARCHAR" />
<result column="EquipmentCardid" property="equipmentcardid" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, insuser, insdt, maintenancerecordid, EquipmentCardid
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_equipment_maintenancerecord_equipmentcard
where id = #{id,jdbcType=VARCHAR}
</select>
<resultMap id="BaseResultMap1" type="com.sipai.entity.equipment.EquipmentCard" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="VARCHAR" />
<result column="equipmentCardID" property="equipmentcardid" jdbcType="VARCHAR" />
<result column="equipmentClassID" property="equipmentclassid" jdbcType="VARCHAR" />
<result column="equipmentModel" property="equipmentmodel" jdbcType="VARCHAR" />
<result column="areaID" property="areaid" jdbcType="VARCHAR" />
<result column="currentManageFlag" property="currentmanageflag" jdbcType="VARCHAR" />
<result column="equipmentName" property="equipmentname" jdbcType="CLOB" />
<result column="remark" property="remark" jdbcType="CLOB" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_equipment_maintenancerecord_equipmentcard
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.equipment.MaintenanceRecordEquipment" >
insert into tb_equipment_maintenancerecord_equipmentcard (id, insuser, insdt,
maintenancerecordid, EquipmentCardid)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{maintenancerecordid,jdbcType=VARCHAR}, #{equipmentcardid,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.equipment.MaintenanceRecordEquipment" >
insert into tb_equipment_maintenancerecord_equipmentcard
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="maintenancerecordid != null" >
maintenancerecordid,
</if>
<if test="equipmentcardid != null" >
EquipmentCardid,
</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="maintenancerecordid != null" >
#{maintenancerecordid,jdbcType=VARCHAR},
</if>
<if test="equipmentcardid != null" >
#{equipmentcardid,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.equipment.MaintenanceRecordEquipment" >
update tb_equipment_maintenancerecord_equipmentcard
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="maintenancerecordid != null" >
maintenancerecordid = #{maintenancerecordid,jdbcType=VARCHAR},
</if>
<if test="equipmentcardid != null" >
EquipmentCardid = #{equipmentcardid,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.equipment.MaintenanceRecordEquipment" >
update tb_equipment_maintenancerecord_equipmentcard
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
maintenancerecordid = #{maintenancerecordid,jdbcType=VARCHAR},
EquipmentCardid = #{equipmentcardid,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectEquipmentCard" resultMap="BaseResultMap1" parameterType="java.lang.String">
select tb_EM_EquipmentCard.* from tb_equipment_maintenancerecord_equipmentcard left join tb_EM_EquipmentCard
on tb_EM_EquipmentCard.id=tb_equipment_maintenancerecord_equipmentcard.EquipmentCardid
${where}
</select>
<select id="selectListByWhere" resultMap="BaseResultMap"
parameterType="java.lang.String">
select
<include refid="Base_Column_List" />
from tb_equipment_maintenancerecord_equipmentcard
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String">
delete from
tb_equipment_maintenancerecord_equipmentcard
${where}
</delete>
</mapper>

View File

@ -0,0 +1,223 @@
<?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="equipment.MaintenanceRecordMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.equipment.MaintenanceRecord" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="plantype" property="plantype" jdbcType="VARCHAR" />
<result column="plannumber" property="plannumber" jdbcType="VARCHAR" />
<result column="plancontent" property="plancontent" jdbcType="VARCHAR" />
<result column="condition" property="condition" jdbcType="VARCHAR" />
<result column="plantime" property="plantime" jdbcType="VARCHAR" />
<result column="realtime" property="realtime" jdbcType="VARCHAR" />
<result column="behaviordescription" property="behaviordescription" jdbcType="VARCHAR" />
<result column="performer" property="performer" jdbcType="VARCHAR" />
<result column="remark" property="remark" jdbcType="VARCHAR" />
<result column="c_judge" property="c_judge" jdbcType="VARCHAR" />
<result column="c_judge1" property="c_judge1" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, insuser, insdt, plantype, plannumber, plancontent, condition, plantime, realtime,
behaviordescription, performer, remark,c_judge,c_judge1
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_equipment_maintenancerecord
where id = #{id,jdbcType=VARCHAR}
</select>
<select id="getListByPlanNumber" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_equipment_maintenancerecord
where plannumber = #{plannumber,jdbcType=VARCHAR}
</select>
<select id="getListById" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_equipment_maintenancerecord
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_equipment_maintenancerecord
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.equipment.MaintenanceRecord" >
insert into tb_equipment_maintenancerecord (id, insuser, insdt,
plantype, plannumber, plancontent,
condition, plantime, realtime,
behaviordescription, performer, remark,c_judge,c_judge1
)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{plantype,jdbcType=VARCHAR}, #{plannumber,jdbcType=VARCHAR}, #{plancontent,jdbcType=VARCHAR},
#{condition,jdbcType=VARCHAR}, #{plantime,jdbcType=VARCHAR}, #{realtime,jdbcType=VARCHAR},
#{behaviordescription,jdbcType=VARCHAR}, #{performer,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},#{c_judge,jdbcType=VARCHAR},#{c_judge1,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.equipment.MaintenanceRecord" >
insert into tb_equipment_maintenancerecord
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="plantype != null" >
plantype,
</if>
<if test="plannumber != null" >
plannumber,
</if>
<if test="plancontent != null" >
plancontent,
</if>
<if test="condition != null" >
condition,
</if>
<if test="plantime != null" >
plantime,
</if>
<if test="realtime != null" >
realtime,
</if>
<if test="behaviordescription != null" >
behaviordescription,
</if>
<if test="performer != null" >
performer,
</if>
<if test="remark != null" >
remark,
</if>
<if test="c_judge != null" >
c_judge,
</if>
<if test="c_judge1 != null" >
c_judge1,
</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="plantype != null" >
#{plantype,jdbcType=VARCHAR},
</if>
<if test="plannumber != null" >
#{plannumber,jdbcType=VARCHAR},
</if>
<if test="plancontent != null" >
#{plancontent,jdbcType=VARCHAR},
</if>
<if test="condition != null" >
#{condition,jdbcType=VARCHAR},
</if>
<if test="plantime != null" >
#{plantime,jdbcType=VARCHAR},
</if>
<if test="realtime != null" >
#{realtime,jdbcType=VARCHAR},
</if>
<if test="behaviordescription != null" >
#{behaviordescription,jdbcType=VARCHAR},
</if>
<if test="performer != null" >
#{performer,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
#{remark,jdbcType=VARCHAR},
</if>
<if test="c_judge != null" >
#{c_judge,jdbcType=VARCHAR},
</if>
<if test="c_judge1 != null" >
#{c_judge1,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.equipment.MaintenanceRecord" >
update tb_equipment_maintenancerecord
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="plantype != null" >
plantype = #{plantype,jdbcType=VARCHAR},
</if>
<if test="plannumber != null" >
plannumber = #{plannumber,jdbcType=VARCHAR},
</if>
<if test="plancontent != null" >
plancontent = #{plancontent,jdbcType=VARCHAR},
</if>
<if test="condition != null" >
condition = #{condition,jdbcType=VARCHAR},
</if>
<if test="plantime != null" >
plantime = #{plantime,jdbcType=VARCHAR},
</if>
<if test="realtime != null" >
realtime = #{realtime,jdbcType=VARCHAR},
</if>
<if test="behaviordescription != null" >
behaviordescription = #{behaviordescription,jdbcType=VARCHAR},
</if>
<if test="performer != null" >
performer = #{performer,jdbcType=VARCHAR},
</if>
<if test="remark != null" >
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="c_judge != null" >
c_judge = #{c_judge,jdbcType=VARCHAR},
</if>
<if test="c_judge1 != null" >
c_judge1 = #{c_judge1,jdbcType=VARCHAR},
</if>
</set>
where id= #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.equipment.MaintenanceRecord" >
update tb_equipment_maintenancerecord
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
plantype = #{plantype,jdbcType=VARCHAR},
plannumber = #{plannumber,jdbcType=VARCHAR},
plancontent = #{plancontent,jdbcType=VARCHAR},
condition = #{condition,jdbcType=VARCHAR},
plantime = #{plantime,jdbcType=VARCHAR},
realtime = #{realtime,jdbcType=VARCHAR},
behaviordescription = #{behaviordescription,jdbcType=VARCHAR},
performer = #{performer,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
c_judge = #{c_judge,jdbcType=VARCHAR},
c_judge1 = #{c_judge1,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_equipment_maintenancerecord
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String">
delete from
tb_equipment_maintenancerecord
${where}
</delete>
</mapper>