Commit b87f8c41 by YG8429

车辆维保,会议室管理功能开发

parent 51684653
package com.baosight.hpjx.hp.xt.service; package com.baosight.hpjx.hp.xt.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation; import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.common.DdynamicEnum;
import com.baosight.hpjx.common.InventTypeEnum;
import com.baosight.hpjx.core.constant.CommonConstant; import com.baosight.hpjx.core.constant.CommonConstant;
import com.baosight.hpjx.core.dao.DaoUtils; import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.hp.cg.domain.HPCG001;
import com.baosight.hpjx.hp.cg.domain.HPCG002;
import com.baosight.hpjx.hp.cg.domain.HPCG002A;
import com.baosight.hpjx.hp.constant.HPConstant; import com.baosight.hpjx.hp.constant.HPConstant;
import com.baosight.hpjx.hp.kc.domain.HPKC010;
import com.baosight.hpjx.hp.pz.domain.HPPZ006;
import com.baosight.hpjx.hp.pz.tools.HPPZTools;
import com.baosight.hpjx.hp.sb.domain.HPSB003;
import com.baosight.hpjx.hp.xt.domain.HPXT001; import com.baosight.hpjx.hp.xt.domain.HPXT001;
import com.baosight.hpjx.util.*; import com.baosight.hpjx.util.*;
import com.baosight.hpjx.util.contants.ACConstants; import com.baosight.hpjx.util.contants.ACConstants;
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <!-- table information
Generate time : 2024-10-06 15:42:22
Version : 1.0
schema : hpjx
tableName : T_HPXT003
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR NOT NULL,
DEP_CODE VARCHAR,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
MAINTENANCE_DATE VARCHAR,
MAINTENANCE_NUMBER VARCHAR,
MAINTENANCE_TYPE VARCHAR,
LICENSE_PLATE VARCHAR,
HANDLER VARCHAR,
MAINTENANCE_COST DECIMAL,
MAINTENANCE_REASON VARCHAR,
DELETE_FLAG TINYINT
-->
<sqlMap namespace="HPXT003">
<sql id="condition">
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceDate">
MAINTENANCE_DATE = #maintenanceDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceNumber">
MAINTENANCE_NUMBER = #maintenanceNumber#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceType">
MAINTENANCE_TYPE = #maintenanceType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="licensePlate">
LICENSE_PLATE = #licensePlate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="handler">
HANDLER = #handler#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceCost">
MAINTENANCE_COST = #maintenanceCost#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceReason">
MAINTENANCE_REASON = #maintenanceReason#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
</sql>
<select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hpjx.hp.xt.domain.HPXT003">
SELECT
ID as "id", <!-- 主键id -->
COMPANY_CODE as "companyCode", <!-- 企业编码 预留 -->
DEP_CODE as "depCode", <!-- 部门编码 -->
CREATED_BY as "createdBy", <!-- 创建人 -->
CREATED_NAME as "createdName", <!-- 创建人名称 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 更新人 -->
UPDATED_NAME as "updatedName", <!-- 更新人名称 -->
UPDATED_TIME as "updatedTime", <!-- 更新时间 -->
MAINTENANCE_DATE as "maintenanceDate", <!-- 维护日期 -->
MAINTENANCE_NUMBER as "maintenanceNumber", <!-- 维保单号 -->
MAINTENANCE_TYPE as "maintenanceType", <!-- 维保类型 -->
LICENSE_PLATE as "licensePlate", <!-- 车牌号 -->
HANDLER as "handler", <!-- 经办人 -->
MAINTENANCE_COST as "maintenanceCost", <!-- 维保费用 -->
MAINTENANCE_REASON as "maintenanceReason", <!-- 维保原因 -->
DELETE_FLAG as "deleteFlag" <!-- 删除标记 -->
FROM ${hpjxSchema}.T_HPXT003 WHERE 1=1
<include refid="condition" />
<dynamic prepend="ORDER BY">
<isNotEmpty property="orderBy">
$orderBy$
</isNotEmpty>
<isEmpty property="orderBy">
ID asc
</isEmpty>
</dynamic>
</select>
<select id="count" resultClass="int">
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPXT003 WHERE 1=1
<include refid="condition" />
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceDate">
MAINTENANCE_DATE = #maintenanceDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceNumber">
MAINTENANCE_NUMBER = #maintenanceNumber#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceType">
MAINTENANCE_TYPE = #maintenanceType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="licensePlate">
LICENSE_PLATE = #licensePlate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="handler">
HANDLER = #handler#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceCost">
MAINTENANCE_COST = #maintenanceCost#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="maintenanceReason">
MAINTENANCE_REASON = #maintenanceReason#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
-->
<insert id="insert">
INSERT INTO ${hpjxSchema}.T_HPXT003 (ID, <!-- 主键id -->
COMPANY_CODE, <!-- 企业编码 预留 -->
DEP_CODE, <!-- 部门编码 -->
CREATED_BY, <!-- 创建人 -->
CREATED_NAME, <!-- 创建人名称 -->
CREATED_TIME, <!-- 创建时间 -->
UPDATED_BY, <!-- 更新人 -->
UPDATED_NAME, <!-- 更新人名称 -->
UPDATED_TIME, <!-- 更新时间 -->
MAINTENANCE_DATE, <!-- 维护日期 -->
MAINTENANCE_NUMBER, <!-- 维保单号 -->
MAINTENANCE_TYPE, <!-- 维保类型 -->
LICENSE_PLATE, <!-- 车牌号 -->
HANDLER, <!-- 经办人 -->
MAINTENANCE_COST, <!-- 维保费用 -->
MAINTENANCE_REASON, <!-- 维保原因 -->
DELETE_FLAG <!-- 删除标记 -->
)
VALUES (#id#, #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #maintenanceDate#, #maintenanceNumber#, #maintenanceType#, #licensePlate#, #handler#, #maintenanceCost#, #maintenanceReason#, #deleteFlag#)
</insert>
<delete id="delete">
DELETE FROM ${hpjxSchema}.T_HPXT003 WHERE
ID = #id#
</delete>
<update id="deleteFlag">
UPDATE ${hpjxSchema}.T_HPXT003
SET
UPDATED_BY = #updatedBy#, <!-- 修改人 -->
UPDATED_NAME = #updatedName#, <!-- 修改人名称 -->
UPDATED_TIME = #updatedTime#, <!-- 修改时间 -->
DELETE_FLAG = #deleteFlag# <!-- 是否删除0:否1.是 -->
WHERE
ID = #id#
</update>
<update id="update">
UPDATE ${hpjxSchema}.T_HPXT003
SET
COMPANY_CODE = #companyCode#, <!-- 企业编码 预留 -->
DEP_CODE = #depCode#, <!-- 部门编码 -->
CREATED_BY = #createdBy#, <!-- 创建人 -->
CREATED_NAME = #createdName#, <!-- 创建人名称 -->
CREATED_TIME = #createdTime#, <!-- 创建时间 -->
UPDATED_BY = #updatedBy#, <!-- 更新人 -->
UPDATED_NAME = #updatedName#, <!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#, <!-- 更新时间 -->
MAINTENANCE_DATE = #maintenanceDate#, <!-- 维护日期 -->
MAINTENANCE_NUMBER = #maintenanceNumber#, <!-- 维保单号 -->
MAINTENANCE_TYPE = #maintenanceType#, <!-- 维保类型 -->
LICENSE_PLATE = #licensePlate#, <!-- 车牌号 -->
HANDLER = #handler#, <!-- 经办人 -->
MAINTENANCE_COST = #maintenanceCost#, <!-- 维保费用 -->
MAINTENANCE_REASON = #maintenanceReason#, <!-- 维保原因 -->
DELETE_FLAG = #deleteFlag# <!-- 删除标记 -->
WHERE
ID = #id#
</update>
</sqlMap>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment