From 336eb77c1a07ca3e3ead4482b51f848fa16ab3b7 Mon Sep 17 00:00:00 2001 From: xiejun <xj@2023> Date: 星期日, 12 十一月 2023 20:15:38 +0800 Subject: [PATCH] 自定义流水相关开发 --- Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeRuleMapper.xml | 75 +++++++++++++++++++++++++++++++++++++ 1 files changed, 75 insertions(+), 0 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeRuleMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeRuleMapper.xml index dbf33c5..ea4b273 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeRuleMapper.xml +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeRuleMapper.xml @@ -2,5 +2,80 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.vci.ubcs.code.mapper.CodeRuleMapper"> + <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 --> + <resultMap id="codeRuleResultMap" type="com.vci.ubcs.code.entity.CodeRule"> + <id property="oid" column="OID"/> + <result property="btmname" column="BTMNAME"/> + <result property="revisionOid" column="REVISIONOID"/> + <result property="nameOid" column="NAMEOID"/> + <result property="lastR" column="LASTR"/> + <result property="firstR" column="FIRSTR"/> + <result property="lastV" column="LASTV"/> + <result property="firstV" column="FIRSTV"/> + <result property="creator" column="CREATOR"/> + <result property="createTime" column="CREATETIME"/> + <result property="lastModifier" column="LASTMODIFIER"/> + <result property="lastModifyTime" column="LASTMODIFYTIME"/> + <result property="revisionRule" column="REVISIONVALUE"/> + <result property="versionRule" column="VISIONRULE"/> + <result property="revisionValue" column="REVISIONRULE"/> + <result property="versionValue" column="VERSIONVALUE"/> + <result property="revisionSeq" column="REVISIONSEQ"/> + <result property="versionSeq" column="VERSIONSEQ"/> + <result property="lctid" column="LCTID"/> + <result property="lcStatus" column="LCSTATUS"/> + <result property="ts" column="TS"/> + <result property="id" column="ID"/> + <result property="name" column="NAME"/> + <result property="description" column="DESCRIPTION"/> + <result property="owner" column="OWNER"/> + <result property="copyFromVersion" column="COPYFROMVERSION"/> + <result property="tenantId" column="TENANTID"/> + </resultMap> + + <select id="selectCodeRulePage" resultMap="codeRuleResultMap"> + SELECT PCR.oid, + PCR.REVISIONOID, + PCR.NAMEOID, + PCR.BTMNAME, + PCR.LASTR, + PCR.FIRSTR, + PCR.LASTV, + PCR.FIRSTV, + PCR.CREATOR, + PCR.CREATETIME, + PCR.LASTMODIFIER, + PCR.LASTMODIFYTIME, + PCR.REVISIONRULE, + PCR.VERSIONRULE, + PCR.REVISIONVALUE, + PCR.VERSIONVALUE, + PCR.REVISIONSEQ, + PCR.VERSIONSEQ, + PCR.LCTID, + PCR.LCSTATUS, + PCR.TS, + PCR.ID, + PCR.NAME, + PCR.DESCRIPTION, + PCR.OWNER, + PCR.COPYFROMVERSION, + PCR.TENANTID + FROM PL_CODE_RULE PCR + <where> + <if test="codeRule.id != null and codeRule.id != ''"> + and ID like concat(concat('%',#{codeRule.id}),'%') + </if> + <if test="codeRule.name != null and codeRule.name != ''"> + and NAME like concat(concat('%',#{codeRule.name}),'%') + </if> + <if test="codeRule.description != null and codeRule.description != ''"> + and DESCRIPTION like concat(concat('%',#{codeRule.description}),'%') + </if> + <if test="codeRule.lcStatus != null and codeRule.lcStatus != ''"> + and lcStatus like concat(concat('%',#{codeRule.lcStatus}),'%') + </if> + </where> + </select> </mapper> -- Gitblit v1.9.3