From 101e8e9738e4bfe0ef7a5170d117b47bf901b8f6 Mon Sep 17 00:00:00 2001 From: ludc <pUXmgxCf6A> Date: 星期一, 29 五月 2023 11:29:48 +0800 Subject: [PATCH] 集团主模型发布接口方法移植开发 --- Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeSerialValueMapper.xml | 68 ++++++++++++++++++++++++++++++++++ 1 files changed, 68 insertions(+), 0 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeSerialValueMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeSerialValueMapper.xml index e159c35..5df9fc8 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeSerialValueMapper.xml +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeSerialValueMapper.xml @@ -2,5 +2,73 @@ <!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.CodeSerialValueMapper"> + <resultMap id="codeSerialValueMap" type="com.vci.ubcs.code.entity.CodeSerialValue"> + <id property="oid" column="OID"/> + <result property="revisionOid" column="REVISIONOID"/> + <result property="nameOid" column="NAMEOID"/> + <result property="btmname" column="BTMNAME"/> + <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="REVISIONRULE"/> + <result property="revisionValue" column="REVISIONVALUE"/> + <result property="versionSeq" column="VERSIONSEQ"/> + <result property="versionValue" column="VERSIONVALUE"/> + <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="codeRuleOid" column="coderuleoid"/> + <result property="serialUnit" column="serialunit"/> + <result property="codeSecOid" column="codesecoid"/> + <result property="maxSerial" column="maxserial"/> + </resultMap> + + <select id="selectByCodeRoleId" resultMap="codeSerialValueMap"> + select PL_CODE_SERIALVALUE.OID, + PL_CODE_SERIALVALUE.REVISIONOID, + PL_CODE_SERIALVALUE.NAMEOID, + PL_CODE_SERIALVALUE.BTMNAME, + PL_CODE_SERIALVALUE.LASTR, + PL_CODE_SERIALVALUE.FIRSTR, + PL_CODE_SERIALVALUE.LASTV, + PL_CODE_SERIALVALUE.FIRSTV, + PL_CODE_SERIALVALUE.CREATOR, + PL_CODE_SERIALVALUE.CREATETIME, + PL_CODE_SERIALVALUE.LASTMODIFIER, + PL_CODE_SERIALVALUE.LASTMODIFYTIME, + PL_CODE_SERIALVALUE.REVISIONRULE, + PL_CODE_SERIALVALUE.VERSIONRULE, + PL_CODE_SERIALVALUE.REVISIONSEQ, + PL_CODE_SERIALVALUE.REVISIONVALUE, + PL_CODE_SERIALVALUE.VERSIONSEQ, + PL_CODE_SERIALVALUE.VERSIONVALUE, + PL_CODE_SERIALVALUE.LCTID, + PL_CODE_SERIALVALUE.LCSTATUS, + PL_CODE_SERIALVALUE.TS, + PL_CODE_SERIALVALUE.ID, + PL_CODE_SERIALVALUE.NAME, + PL_CODE_SERIALVALUE.DESCRIPTION, + PL_CODE_SERIALVALUE.OWNER, + PL_CODE_SERIALVALUE.COPYFROMVERSION, + PL_CODE_SERIALVALUE.coderuleoid, + PL_CODE_SERIALVALUE.serialunit, + PL_CODE_SERIALVALUE.codesecoid, + PL_CODE_SERIALVALUE.maxserial, + COUNT(*) OVER () "##VCI_COUNT_VCI##" + from PL_CODE_SERIALVALUE + where 1 = 1 + and PL_CODE_SERIALVALUE.coderuleoid = #{codeRuleOid} + </select> + </mapper> -- Gitblit v1.9.3