贵阳委托送检
This commit is contained in:
39
src/main/resources/banner.txt
Normal file
39
src/main/resources/banner.txt
Normal file
@@ -0,0 +1,39 @@
|
||||
${AnsiColor.BRIGHT_GREEN}
|
||||
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMWWMMMMMMMMMMMMWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWMWWMMMMMWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWMWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMWMMMMMWKk0WMMMMMMMMMNkxOXWMMMMMMMMMMMMMMMMMMWk::cOWMMMMMMMMMMMW0llokKWMMWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNXK0OkxocoXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMN0ockWWMMMMMMNo. .oXMMMMMMMMk. .'xNMMMMMMMMMMMMMMMMMWc oMMMMMMMMMMMMX: .xWWMMMMMMMMMMMMMMMMMMMWK0000OOOOkkkxxdddollc::;,'... ;0WMMMMMMMMMMMMMMMMMMMMMMMMNkoooooooooooooooooooooooKMMMMMMM
|
||||
MMMMMWO' .cKWMMMMWW0: ,kWMMWWWK; cKMMMMMMMMMMMMMMMMMMWl .xMMMMMMMMMMMNo. ;0WMMMMMMMMMMMMMMMMMMMNo. . .....'',,,;:::ccxNMMMMMMW0xdxxxxxxxxxxxxx0X: .xMMMMMMM
|
||||
MMWMMMWO; .xNMWWMMMNx. .lXMWWXc .lXWMMMMMMMMMMMMMMMMMWWl .xMMMMMMMMMMNo. ', 'kNWMMMMMMMMMMMMMMMMMMXl'',;;,;clloddoc,,l00KXXNNWXo;lxOXWMMWWMMMMNc cXc cOkOOx' .lkkkOx' .kMMMMMMM
|
||||
MMMMMWWWNx. cXWNKOO0Oo. ,lOK00l. ;k0OO0OKWMMMMMMMMNKKXXKc .oXXXKXWMMWKc. :KXl. .:OWMMMMMMMMMMMMMMMMMMWNN0l,.:0MMWMWd. 'OWWMMMMNl. ,kWWMMMMMMWWkllooo, ,oolllONc .xMMMMX; .kMMMMX; .kMMMMMMM
|
||||
MMMMMWMMMW0,.'oKWX:. .. ..... . lNMMMMMMMWo..... .....;0MWO, cXMMWk' .:kXMMMMMMMMMMMMMMMWWMWK: ;KMMMWXc .OWMMMXl. .cKWWMMMMMMMMMMMMMMMd. oMMMMMMWc .xMMMMX; .kMMMMX; .kMMMMMMM
|
||||
MMMMMWMMMMMX0NMWWXo,;;;;;::,. ,:::;:;;;;,dWMMMMMMWWx,',,. .,,,'cKKl. .oNMWMMW0c. 'cxKWMMMMMMMMMMMMMMWMK; :XMWWMXc ..oXWWK: 'kNMMMMMMMMMMMMMMMMMMd. dMMMMMMWc ':;;:,. ':;:;;. .xMMMMMMM
|
||||
MMMMMWWMMMWMMMWWMWWWWMMMMWMK; '0MMMMMMMMMWWMMWMMMMWWWNNWWd. .dWWWN0o. ,oddoddodo;'. .,lkNMMMMMMWNKKKKKKd,;coOKKKKKkodO000x' ,kKKKKKKKXWMMMMMMMMMMMx. dMMMWMMWc ..''.. .''.'.. .kMMMMMMM
|
||||
MMMWKkkkkkOOk0NWWWMMMMMMMMM0' ,KMMMMMMMMMMMMMMWMMMMMMWMMK, .xMNOc. .' c0d;. .xNMMMMMMNl........................ .........lNMMMMMWWWWMWd. oWWWWWMWc .oNXNN0; .xNNNNK; .xMMMMMMM
|
||||
MMMWc 'OWXkkkOOOOOOOo. 'xOOOkOOOOkkk0WMMMMMMMMMMNc .xWNk:. .lK0doddddddddddOWMWKxc;kWMMMMMMMWc .,,'''''''''''''''''','',,'''',. cNMMWMMKl,,;;. .;;,,xWNc .xMWWMX; .kMMMMX; .xMMMMMMM
|
||||
MMMWx;;;:,. '0Mx. :XMMMMMMMMMNl .;c;xNOd0WWWMWNKkdOWMMMMMKxx0XNWWMMMMMMMMWc oNNNWWWWWWWWWWWWWWWWWNNWWWWNNNWd. :NMMMMM0;.... ....lNNc .oXKKXO, .dKXXXO, .xMMMMMMM
|
||||
MMMMMWMMM0, '0M0c:::cccc:;. .::cccccc::::xNMMMMMMMMNl. .oXN0ol0MWx. 'OWMMMWo .'xWMMMMMMMMMNc oWNOxxxxxkkkkkkkkkkkkkkxkkk0WMMx. :NMMMMMWK0KKKl cKK00XWX: ...... ...... .xMMMMMMM
|
||||
MMMMMMMMM0, '0MWMMMMMMMMNd. .:xKWMMMMMMMMMMMMMMMMMXl. c: .c; .cl. ,KMXc :XMMM0' :XMMMMMMMMMMNkcclOM0, .dWWWXkxx0WMMMMMMMMMMMx. oMMMMMMNx::;;::::,. ';;::;::;c0MMMMMMM
|
||||
MMMMMMMMM0' ,0WMMMMMMMMXl. .'. .:xXWMMMMMMMMMMMMM0: cXl .x0;'ckO; :XMK; oWMNl ;KMMMMMMMMMMMMMMMMMMXd::. .;:::::::::. .lNMMMMMMMMMMMMMMMMMMMMx. dMMMMMMMMMMMMMMMMX; .kWWMMMMMMMMMMMMMMM
|
||||
MMMMMMMMM0' '0MMMMMMMXx, ;0NOc. .ckXMWWMMMMMWWK: :XWl .xWNNWMM0' cNMk. .kWx. '0MMMMMMMMMMMMMMMMMMMMMMW0, .dNWMMMMWNx. .oNMMMMMMMMMMMMMMMMMMMMMx. oMMMMMMMWWMMMMMMMX; .kMMMMMMMMWWMMMMMMM
|
||||
MMMMMMMMM0' '0MMMWWKd, .oXMMMWXd, 'o0NMMMMMMMN0o'cXWWl .xMMMMMMWk. .dWNc .oO, .kWMMMMMMMMMMMMMMMMMMMMMMMMK: .cKWMMWKl. .xNMMMMMMMMMMMMMMMMMMMMMMx. oMWX0k00c;;;;;;;;,. ';;;;;;;;,oXMMMMMM
|
||||
MMMMMMMMM0' '0MWXd:. .c0WMMMMMMMNk:. ;KWMMWWMMWMWXNWWWl .dMMMMMMMWo ,0WKxOKKc .dWMMMMMMMMMMMMMMMMMMMMMMMMWWXo. .o0Kd' .:0WMMMMMMMMMMMMMMMMMMMMMMWx. ;o:.. :x;......... ..........:KMMMMMM
|
||||
MMMMMMMMNd. .oXWKc. ,dKWMWMMMMMMMMMWO:'lXWWWMMMMMMMMMMMMWl .xMMMMMMMMKolx0NMWWMNo. lNMMMMMMMMMMMMMMMMMMMMMMMMMWWMW0c. .. ,kNWWMMMMMMMMMMMMMMMMMWNKOxl' ..;ckXXXXXXXXXX0, .dXXXXXXXXKXWMMMMMM
|
||||
MMMMMNOl' .:dkxokNMMMMMMMMMMMMMMMMWXNWNXKXMMMMMMMMMMMWl .xMWKkxkkOOOOOOOOOOkl. 'dOOkkxxONMMMMMMMMMMMMMWMMMWWX0kd:. .;oxOKNWWMMMWMWWMMMMMWWO;. .':lx0XWMMMMMMMMMMMMX; .kMMMMMMMMMMMMMMMMM
|
||||
MWWNO;. .;odl,. .',;:clllllolllllccc:;,''.:0MMMMMMMMMMMWl .xMWo '0MMMMMMMMNOOOxdolc:,.. .;lc;. ..,;::cllllxXMMMMWXc .,lx0NWMMMMWKOO000000000x' .oO00000000OkKWMMMM
|
||||
WWMNk;..;kNWWMN0dc;'.. .kWMMMMMMMMMMMWc .dWM0llooooooooooooolooooooooollxXMMMMMMMMK:. .';ldOXWWMWKOdl:,'. ,ONMMMMMWXOKWMWWMMMMWMWl .. . .... :XMMMM
|
||||
MMMMMWOONMMMMMMMWWWNK0OkxxdddddoddddddddxxxxONMMMMMMMMMMMMWd..'kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXo,;:lodk0KNMMMMMMMMMWWMMMWNK0kxdooldKMMMMMMMWWMMMMMMMMMMMMWkccccccccccccccccccccccccccc:xWMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNXXNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
|
||||
|
||||
Entrustment 委托(送检受理)系统
|
||||
|
||||
版本: ${version}
|
||||
创建: ${timestamp}
|
||||
|
||||
${AnsiColor.DEFAULT}
|
||||
|
||||
89
src/main/resources/bootstrap.yml
Normal file
89
src/main/resources/bootstrap.yml
Normal file
@@ -0,0 +1,89 @@
|
||||
logging:
|
||||
level:
|
||||
digital.laboratory.platform.entrustment.mapper: debug
|
||||
server:
|
||||
port: 5203
|
||||
mybatis:
|
||||
mapper-locations: classpath*:mapper/*.xml
|
||||
|
||||
mybatis-plus:
|
||||
type-handlers-package: digital.laboratory.platform.entrustment.config
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: @artifactId@
|
||||
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: ${NACOS_HOST:dlp-nacos}:${NACOS_PORT:8848}
|
||||
config:
|
||||
server-addr: ${spring.cloud.nacos.discovery.server-addr}
|
||||
file-extension: yml
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
||||
profiles:
|
||||
active: @profiles.active@
|
||||
|
||||
# datasource:
|
||||
# type: com.zaxxer.hikari.HikariDataSource
|
||||
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# username: root
|
||||
# password: 7990016
|
||||
# url: jdbc:mysql://dlp-mysql:3306/dlp_entrustment?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
|
||||
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ant-path-matcher
|
||||
hiddenmethod:
|
||||
filter:
|
||||
enabled: true
|
||||
|
||||
servlet:
|
||||
multipart:
|
||||
# 根据实际需求作调整
|
||||
# 默认最大上传文件大小为1M, 单个文件大小
|
||||
max-file-size: 20MB
|
||||
# 默认最大请求大小为10M, 总上传的数据大小
|
||||
max-request-size: 55MB
|
||||
|
||||
|
||||
# 文件上传相关 支持阿里云、华为云、腾讯、minio
|
||||
oss:
|
||||
endpoint: http://127.0.0.1:9000
|
||||
accessKey: admin
|
||||
secretKey: 87990016
|
||||
bucket-name: dlpfiles
|
||||
|
||||
dlp:
|
||||
entrustment:
|
||||
clientChoiceCheckers: true # 审核人员由委托创建者选择
|
||||
singleOperateUser: true # 委托的审核审批是否由单一人员负责
|
||||
processDefinitionId: EntrustmentAccept:3:53fef9cb-cde0-11ec-bdc1-0862664bd485
|
||||
|
||||
datasource:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: dlp
|
||||
password: 7990016
|
||||
jdbcUrl: jdbc:mysql://dlp-mysql:3306/dlp_entrustment?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
|
||||
|
||||
config:
|
||||
activemq:
|
||||
brokerUrl: tcp://192.168.9.74:61616
|
||||
# brokerUrl: tcp://omen-chen:61616
|
||||
user: admin
|
||||
password: admin
|
||||
#true:topic模式,false:queue模式
|
||||
pub-sub-domain: true
|
||||
msgListener:
|
||||
hardwareTopicName: hardware
|
||||
countryDrugSystem:
|
||||
apiPath:
|
||||
tokenPath: /api/token
|
||||
taskListPath: /api/sample/environment/sample # 污水样品列表查询
|
||||
receivePath: /api/sample/environment/receive # 样品签收
|
||||
rejectPath: /api/sample/environment/reject # 样品拒收
|
||||
returnPath: /api/sample/environment/return # 样品退回
|
||||
closePath: /api/sample/environment/close # 样品作废申请
|
||||
61
src/main/resources/logback-spring.xml
Normal file
61
src/main/resources/logback-spring.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration debug="false" scan="false">
|
||||
<springProperty scop="context" name="spring.application.name" source="spring.application.name" defaultValue=""/>
|
||||
<property name="log.path" value="logs/${spring.application.name}"/>
|
||||
<!-- 彩色日志格式 -->
|
||||
<property name="CONSOLE_LOG_PATTERN"
|
||||
value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/>
|
||||
<!-- 彩色日志依赖的渲染类 -->
|
||||
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter"/>
|
||||
<conversionRule conversionWord="wex"
|
||||
converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter"/>
|
||||
<conversionRule conversionWord="wEx"
|
||||
converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter"/>
|
||||
<!-- Console log output -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- Log file debug output -->
|
||||
<appender name="debug" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/debug.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log.path}/%d{yyyy-MM, aux}/debug.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
|
||||
<maxFileSize>50MB</maxFileSize>
|
||||
<maxHistory>30</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>%date [%thread] %-5level [%logger{50}] %file:%line - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- Log file error output -->
|
||||
<appender name="error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/error.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log.path}/%d{yyyy-MM}/error.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
|
||||
<maxFileSize>50MB</maxFileSize>
|
||||
<maxHistory>30</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>%date [%thread] %-5level [%logger{50}] %file:%line - %msg%n</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>ERROR</level>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!--nacos 心跳 INFO 屏蔽-->
|
||||
<logger name="com.alibaba.nacos" level="OFF">
|
||||
<appender-ref ref="error"/>
|
||||
</logger>
|
||||
|
||||
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
|
||||
<root level="INFO">
|
||||
<appender-ref ref="console"/>
|
||||
<appender-ref ref="debug"/>
|
||||
<appender-ref ref="error"/>
|
||||
</root>
|
||||
</configuration>
|
||||
167
src/main/resources/mapper/CaseEventMapper.xml
Normal file
167
src/main/resources/mapper/CaseEventMapper.xml
Normal file
@@ -0,0 +1,167 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.CaseEventMapper">
|
||||
|
||||
<resultMap id="caseEventMap" type="digital.laboratory.platform.entrustment.entity.CaseEvent">
|
||||
<id property="id" column="id"/>
|
||||
<result property="caseNo" column="case_no"/>
|
||||
<result property="thirdPartySysNo" column="third_party_sys_no"/>
|
||||
<result property="caseName" column="case_name"/>
|
||||
<result property="caseType" column="case_type"/>
|
||||
<result property="happenTime" column="happen_time"/>
|
||||
<result property="caseAddress" column="case_address"/>
|
||||
<result property="caseArea" column="case_area"/>
|
||||
<result property="caseOwnOrgId" column="case_own_org_id"/>
|
||||
<result property="caseRank" column="case_rank"/>
|
||||
<result property="caseBrief" column="case_brief"/>
|
||||
<result property="comments" column="comments"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="caseEventVOMap" type="digital.laboratory.platform.entrustment.vo.CaseEventVO" extends="caseEventMap">
|
||||
<result property="caseOrgName" column="case_org_name"/>
|
||||
<result property="caseOrgShortName" column="case_org_short_name"/>
|
||||
<result property="caseCreateUserName" column="case_create_user_name"/>
|
||||
<result property="caseUpdateUserName" column="case_update_user_name"/>
|
||||
<result property="caseAreaName" column="case_area_name"/>
|
||||
|
||||
<result property="caseEntrustmentCount" column="case_entrustment_count"/>
|
||||
<result property="caseEvidenceCount" column="case_evidence_count"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="getCaseVoList" parameterType="String" resultType="digital.laboratory.platform.entrustment.vo.CaseEventVO">
|
||||
SELECT cj.*,
|
||||
org.name AS case_org_name,
|
||||
org.alias AS case_org_short_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=cj.create_by
|
||||
) AS case_create_user_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=cj.update_by
|
||||
) AS case_update_user_name,
|
||||
(
|
||||
SELECT area.name
|
||||
FROM dlp_base.b_area area
|
||||
WHERE area.id=cj.case_area
|
||||
) AS case_area_name,
|
||||
|
||||
(
|
||||
SELECT COUNT(*)
|
||||
FROM b_entrustment e
|
||||
WHERE e.case_id=cj.id
|
||||
) AS case_entrustment_count,
|
||||
(
|
||||
SELECT COUNT(*)
|
||||
FROM b_case_evidence ce
|
||||
WHERE ce.case_id=cj.id
|
||||
) AS case_evidence_count
|
||||
FROM b_case_event cj, dlp_base.sys_org org WHERE org.org_id=cj.case_own_org_id
|
||||
<if test="fromDate !=null and fromDate !=''">
|
||||
AND cj.happen_time >= STR_TO_DATE(#{fromDate},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="toDate !=null and toDate !=''">
|
||||
AND cj.happen_time < STR_TO_DATE(#{toDate},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="caseName !=null and caseName !=''">
|
||||
AND cj.case_name like CONCAT('%',#{caseName},'%')
|
||||
</if>
|
||||
<if test="caseType !=null and caseType !=''">
|
||||
AND cj.case_type = #{caseType}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getCaseVoPage" resultType="digital.laboratory.platform.entrustment.vo.CaseEventVO">
|
||||
SELECT cj.*,
|
||||
|
||||
org.name AS case_org_name,
|
||||
org.alias AS case_org_short_name,
|
||||
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=cj.create_by
|
||||
) AS case_create_user_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=cj.update_by
|
||||
) AS case_update_user_name,
|
||||
(
|
||||
SELECT area.name
|
||||
FROM dlp_base.b_area area
|
||||
WHERE area.id=cj.case_area
|
||||
) AS case_area_name,
|
||||
|
||||
(
|
||||
SELECT COUNT(*)
|
||||
FROM b_entrustment e
|
||||
WHERE e.case_id=cj.id
|
||||
) AS case_entrustment_count,
|
||||
(
|
||||
SELECT COUNT(*)
|
||||
FROM b_case_evidence ce
|
||||
WHERE ce.case_id=cj.id
|
||||
) AS case_evidence_count
|
||||
FROM b_case_event cj
|
||||
LEFT JOIN dlp_base.sys_org org on org.org_id=cj.case_own_org_id
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getCaseVOById" resultType="digital.laboratory.platform.entrustment.vo.CaseEventVO" parameterType="String">
|
||||
SELECT cj.*,
|
||||
|
||||
org.name AS case_org_name,
|
||||
org.alias AS case_org_short_name,
|
||||
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=cj.create_by
|
||||
) AS case_create_user_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=cj.update_by
|
||||
) AS case_update_user_name,
|
||||
(
|
||||
SELECT area.name
|
||||
FROM dlp_base.b_area area
|
||||
WHERE area.id=cj.case_area
|
||||
) AS case_area_name,
|
||||
|
||||
(
|
||||
SELECT COUNT(*)
|
||||
FROM b_entrustment e
|
||||
WHERE e.case_id=cj.id
|
||||
) AS case_entrustment_count,
|
||||
(
|
||||
SELECT COUNT(*)
|
||||
FROM b_case_evidence ce
|
||||
WHERE ce.case_id=cj.id
|
||||
) AS case_evidence_count
|
||||
FROM b_case_event cj
|
||||
LEFT JOIN dlp_base.sys_org org on org.org_id=cj.case_own_org_id
|
||||
WHERE cj.id = #{id}
|
||||
</select>
|
||||
|
||||
<!-- 取最大案件号, 目的是为了生成新的案件号 -->
|
||||
<select id="getMaxCaseNo" parameterType="String" resultType="java.lang.String">
|
||||
SELECT MAX(case_no) AS maxno
|
||||
FROM b_case_event
|
||||
WHERE case_no LIKE concat(#{prefix}, '%')
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
49
src/main/resources/mapper/CaseEvidenceMapper.xml
Normal file
49
src/main/resources/mapper/CaseEvidenceMapper.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.CaseEvidenceMapper">
|
||||
|
||||
<resultMap id="caseEvidenceMap" type="digital.laboratory.platform.entrustment.entity.CaseEvidence">
|
||||
<id property="id" column="id"/>
|
||||
<result property="evidenceNo" column="evidence_no"/>
|
||||
<result property="caseId" column="case_id"/>
|
||||
<result property="thirdPartySysEvidenceNo" column="third_party_sys_evidence_no"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="fieldLabelNo" column="field_label_no"/>
|
||||
<result property="source" column="source"/>
|
||||
<result property="color" column="color"/>
|
||||
<result property="form" column="form"/>
|
||||
<result property="fundName" column="fund_name"/>
|
||||
<result property="fundQuantity" column="fund_quantity"/>
|
||||
<result property="fundUnit" column="fund_unit"/>
|
||||
<result property="quantity" column="quantity"/>
|
||||
<result property="unit" column="unit"/>
|
||||
<result property="additionalProperties" column="additional_properties" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||
<result property="personName" column="person_name"/>
|
||||
<result property="personCert" column="person_cert"/>
|
||||
<result property="personId" column="person_id"/>
|
||||
<result property="personGender" column="person_gender"/>
|
||||
<result property="personNationality" column="person_nationality"/>
|
||||
<result property="personNation" column="person_nation"/>
|
||||
<result property="personAddress" column="person_address"/>
|
||||
<result property="personAge" column="person_age"/>
|
||||
<result property="pack" column="pack"/>
|
||||
<result property="storageMethod" column="storage_method"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="comments" column="comments"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 取最大物证号, 目的是为了生成新的物证号 -->
|
||||
<select id="getMaxEvidenceNo" parameterType="String" resultType="java.lang.String">
|
||||
SELECT MAX(evidence_no) AS maxno
|
||||
FROM b_case_evidence
|
||||
WHERE evidence_no LIKE concat(#{prefix}, '%')
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
20
src/main/resources/mapper/DelivererMapper.xmlx
Normal file
20
src/main/resources/mapper/DelivererMapper.xmlx
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.DelivererMapper">
|
||||
|
||||
<resultMap id="delivererMap" type="digital.laboratory.platform.entrustment.entity.Deliverer">
|
||||
<id property="id" column="id"/>
|
||||
<result property="ownerUserId" column="owner_user_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="position" column="position"/>
|
||||
<result property="cert" column="cert"/>
|
||||
<result property="idnum" column="idnum"/>
|
||||
<result property="phone" column="phone"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
@@ -0,0 +1,115 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.EntrustmentIdentificationMaterialMapper">
|
||||
|
||||
<resultMap id="entrustmentIdentificationMaterialMap" type="digital.laboratory.platform.entrustment.entity.EntrustmentIdentificationMaterial">
|
||||
<id property="id" column="id"/>
|
||||
<result property="imNo" column="im_no"/>
|
||||
<result property="evidenceId" column="evidence_id"/>
|
||||
<result property="caseId" column="case_id"/>
|
||||
<result property="entrustmentId" column="entrustment_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="color" column="color"/>
|
||||
<result property="form" column="form"/>
|
||||
<result property="fundName" column="fund_name"/>
|
||||
<result property="fundQuantity" column="fund_quantity"/>
|
||||
<result property="fundUnit" column="fund_unit"/>
|
||||
<result property="quantity" column="quantity"/>
|
||||
<result property="unit" column="unit"/>
|
||||
<result property="additionalProperties" column="additional_properties" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||
<result property="drawWay" column="draw_way"/>
|
||||
<result property="personName" column="person_name"/>
|
||||
<result property="personCert" column="person_cert"/>
|
||||
<result property="personId" column="person_id"/>
|
||||
<result property="personGender" column="person_gender"/>
|
||||
<result property="personNationality" column="person_nationality"/>
|
||||
<result property="personNation" column="person_nation"/>
|
||||
<result property="personAddress" column="person_address"/>
|
||||
<result property="personAge" column="person_age"/>
|
||||
<!-- <result property="take1UserId" column="take1_user_id"/>-->
|
||||
<result property="take1Name" column="take1_name"/>
|
||||
<result property="take1Position" column="take1_position"/>
|
||||
<result property="take1Cert" column="take1_cert"/>
|
||||
<result property="take1Id" column="take1_id"/>
|
||||
<result property="take1Phone" column="take1_phone"/>
|
||||
<!-- <result property="take2UserId" column="take2_user_id"/>-->
|
||||
<result property="take2Name" column="take2_name"/>
|
||||
<result property="take2Position" column="take2_position"/>
|
||||
<result property="take2Cert" column="take2_cert"/>
|
||||
<result property="take2Id" column="take2_id"/>
|
||||
<result property="take2Phone" column="take2_phone"/>
|
||||
<result property="takeTime" column="take_time"/>
|
||||
<result property="witnessName" column="witness_name"/>
|
||||
<result property="witnessCert" column="witness_cert"/>
|
||||
<result property="witnessId" column="witness_id"/>
|
||||
<result property="pack" column="pack"/>
|
||||
<result property="storageMethod" column="storage_method"/>
|
||||
<result property="candidateDrugs" column="candidate_drugs" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="checkTime" column="check_time"/>
|
||||
<result property="checkPassed" column="check_passed"/>
|
||||
<result property="approveTime" column="approve_time"/>
|
||||
<result property="approvePassed" column="approve_passed"/>
|
||||
<result property="acceptTime" column="accept_time"/>
|
||||
<!-- <result property="acceptPassed" column="accept_passed"/>-->
|
||||
<!-- <result property="providedSample1Present" column="provided_sample1_present"/>-->
|
||||
<result property="providedSample1No" column="provided_sample1_no"/>
|
||||
<result property="providedSample1FundQuantity" column="provided_sample1_fund_quantity"/>
|
||||
<result property="providedSample1Quantity" column="provided_sample1_quantity"/>
|
||||
<result property="providedSample2Present" column="provided_sample2_present"/>
|
||||
<result property="providedSample2No" column="provided_sample2_no"/>
|
||||
<result property="providedSample2FundQuantity" column="provided_sample2_fund_quantity"/>
|
||||
<result property="providedSample2Quantity" column="provided_sample2_quantity"/>
|
||||
<result property="splitedSample" column="splited_sample"/>
|
||||
<!-- <result property="sample1Present" column="sample1_present"/>-->
|
||||
<result property="sample1No" column="sample1_no"/>
|
||||
<result property="sample1FundQuantity" column="sample1_fund_quantity"/>
|
||||
<result property="sample1Quantity" column="sample1_quantity"/>
|
||||
<result property="sample1BoxId" column="sample1_box_id"/>
|
||||
<result property="sample2Present" column="sample2_present"/>
|
||||
<result property="sample2No" column="sample2_no"/>
|
||||
<result property="sample2FundQuantity" column="sample2_fund_quantity"/>
|
||||
<result property="sample2Quantity" column="sample2_quantity"/>
|
||||
<result property="sample2BoxId" column="sample2_box_id"/>
|
||||
<result property="sample1RepeatWeigh" column="sample1_repeat_weigh"/>
|
||||
<result property="sample2RepeatWeigh" column="sample2_repeat_weigh"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="entrustmentIdentificationMaterialVO" type="digital.laboratory.platform.entrustment.vo.EntrustmentIdentificationMaterialVO" extends="entrustmentIdentificationMaterialMap">
|
||||
<result property="formName" column ="form_name"/>
|
||||
<result property="sample1Type" column ="sample1_type"/>
|
||||
<result property="sample2Type" column ="sample2_type"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 根据条件取 entrustmentIdentificationMaterialVO 列表 -->
|
||||
<select id="getEntrustmentIdentificationMaterialVOList" resultMap="entrustmentIdentificationMaterialVO" resultType="digital.laboratory.platform.entrustment.vo.EntrustmentIdentificationMaterialVO">
|
||||
SELECT im.*,
|
||||
(SELECT dict.label FROM dlp_base.sys_dictionary dict WHERE dict.type="wzxz" AND dict.id=im.form) AS form_name,
|
||||
(SELECT sb.sample_type FROM b_sample_box sb WHERE sb.id=im.sample1_box_id ) AS sample1_type,
|
||||
(SELECT sb.sample_type FROM b_sample_box sb WHERE sb.id=im.sample2_box_id ) AS sample2_type
|
||||
FROM b_entrustment_identification_material im
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 取最大检材号, 目的是为了生成新的检材号 -->
|
||||
<select id="getMaxIdentificationMaterialNo" parameterType="String" resultType="java.lang.String">
|
||||
SELECT MAX(im_no) AS maxno
|
||||
FROM b_entrustment_identification_material
|
||||
WHERE im_no LIKE concat(#{prefix}, '%')
|
||||
</select>
|
||||
<!-- 生成受理编号-->
|
||||
<select id="getMaxMaterialAcceptNo" parameterType="String" resultType="java.lang.String">
|
||||
SELECT MAX(accept_no) AS maxno
|
||||
FROM b_entrustment_identification_material
|
||||
where accept_no LIKE concat(#{prefix}, '%')
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
284
src/main/resources/mapper/EntrustmentMapper.xml
Normal file
284
src/main/resources/mapper/EntrustmentMapper.xml
Normal file
@@ -0,0 +1,284 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.EntrustmentMapper">
|
||||
|
||||
<resultMap id="entrustmentMap" type="digital.laboratory.platform.entrustment.entity.Entrustment">
|
||||
<id property="id" column="id"/>
|
||||
<result property="caseId" column="case_id"/>
|
||||
<result property="entrustmentNo" column="entrustment_no"/>
|
||||
<result property="entrustmentType" column="entrustment_type"/>
|
||||
<result property="businessType" column="business_type"/>
|
||||
<result property="processInstanceId" column="process_instance_id"/>
|
||||
<result property="identificationId" column="identification_id"/>
|
||||
<result property="entrustmentTime" column="entrustment_time"/>
|
||||
<result property="submitter" column="submitter"/>
|
||||
<result property="submitTime" column="submit_time"/>
|
||||
<result property="clientOrgId" column="client_org_id"/>
|
||||
<result property="clientOrgName" column="client_org_name"/>
|
||||
<result property="clientAddress" column="client_address"/>
|
||||
<result property="clientPostcode" column="client_postcode"/>
|
||||
<result property="clientTel" column="client_tel"/>
|
||||
<result property="clientFax" column="client_fax"/>
|
||||
<result property="identificationDomain" column="identification_domain"/>
|
||||
<result property="identificationOrgName" column="identification_org_name"/>
|
||||
<result property="qualitativeAnalysis" column="qualitative_analysis"/>
|
||||
<result property="quantitativeAnalysis" column="quantitative_analysis"/>
|
||||
<result property="otherIdentificationRequests" column="other_identification_requests"/>
|
||||
<result property="candidateDrugs" column="candidate_drugs" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||
<result property="isClientSpecifiedMethod" column="is_client_specified_method"/>
|
||||
<result property="clientSpecifiedMethod" column="client_specified_method"/>
|
||||
<result property="destructiveAnalysis" column="destructive_analysis"/>
|
||||
<result property="otherIdentificationNotes" column="other_identification_notes"/>
|
||||
<result property="reidentification" column="reidentification"/>
|
||||
<result property="oldIdentificationOrgName" column="old_identification_org_name"/>
|
||||
<result property="oldIdentificationDocument" column="old_identification_document"/>
|
||||
<result property="oldIdentificationResult" column="old_identification_result"/>
|
||||
<result property="reidentificationReason" column="reidentification_reason"/>
|
||||
<result property="avoidIdentifier" column="avoid_identifier" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||
<result property="specifiedIdentifier" column="specified_identifier"/>
|
||||
<result property="otherAgreement" column="other_agreement"/>
|
||||
<result property="comments" column="comments"/>
|
||||
<result property="checkCandidateUser" column="check_candidate_user"/>
|
||||
<result property="checkClaimUser" column="check_claim_user"/>
|
||||
<result property="checkClaimTime" column="check_claim_time"/>
|
||||
<result property="checkUser" column="check_user"/>
|
||||
<result property="checkTime" column="check_time"/>
|
||||
<result property="checkComments" column="check_comments"/>
|
||||
<result property="checkTimes" column="check_times"/>
|
||||
<result property="checkAllIdentificationMaterialConfirmed" column="check_all_identification_material_confirmed"/>
|
||||
<result property="approveCandidateUser" column="approve_candidate_user"/>
|
||||
<result property="approveClaimUser" column="approve_claim_user"/>
|
||||
<result property="approveClaimTime" column="approve_claim_time"/>
|
||||
<result property="approveUser" column="approve_user"/>
|
||||
<result property="approveTime" column="approve_time"/>
|
||||
<result property="approveComments" column="approve_comments"/>
|
||||
<result property="approveTimes" column="approve_times"/>
|
||||
<result property="deliverConfirmUser" column="deliver_confirm_user"/>
|
||||
<result property="deliverConfirmTime" column="deliver_confirm_time"/>
|
||||
<result property="deliverConfirmComments" column="deliver_confirm_comments"/>
|
||||
<result property="deliverTime" column="deliver_time"/>
|
||||
<result property="deliverSubmitter" column="deliver_submitter"/>
|
||||
<!-- <result property="deliverer1UserId" column="deliverer1_user_id"/>-->
|
||||
<result property="deliverer1Name" column="deliverer1_name"/>
|
||||
<result property="deliverer1Position" column="deliverer1_position"/>
|
||||
<result property="deliverer1Cert" column="deliverer1_cert"/>
|
||||
<result property="deliverer1Id" column="deliverer1_id"/>
|
||||
<result property="deliverer1Phone" column="deliverer1_phone"/>
|
||||
<!-- <result property="deliverer2UserId" column="deliverer2_user_id"/>-->
|
||||
<result property="deliverer2Name" column="deliverer2_name"/>
|
||||
<result property="deliverer2Position" column="deliverer2_position"/>
|
||||
<result property="deliverer2Cert" column="deliverer2_cert"/>
|
||||
<result property="deliverer2Id" column="deliverer2_id"/>
|
||||
<result property="deliverer2Phone" column="deliverer2_phone"/>
|
||||
<!-- <result property="acceptClaimUser" column="accept_claim_user"/>-->
|
||||
<!-- <result property="acceptClaimTime" column="accept_claim_time"/>-->
|
||||
<result property="acceptNo" column="accept_no"/>
|
||||
<result property="acceptUser" column="accept_user"/>
|
||||
<result property="acceptTime" column="accept_time"/>
|
||||
<result property="acceptComments" column="accept_comments"/>
|
||||
<result property="identificationItemsConfirmPrinted" column="identification_items_confirm_printed"/>
|
||||
<result property="processInfo" column="process_info" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||
<result property="reportReceiveMode" column="report_receive_mode"/>
|
||||
<result property="reportReceiver1UserId" column="report_receiver1_user_id"/>
|
||||
<result property="reportReceiver1Name" column="report_receiver1_name"/>
|
||||
<result property="reportReceiver1Position" column="report_receiver1_position"/>
|
||||
<result property="reportReceiver1Cert" column="report_receiver1_cert"/>
|
||||
<result property="reportReceiver1Id" column="report_receiver1_id"/>
|
||||
<result property="reportReceiver1Phone" column="report_receiver1_phone"/>
|
||||
<result property="reportReceiver2UserId" column="report_receiver2_user_id"/>
|
||||
<result property="reportReceiver2Name" column="report_receiver2_name"/>
|
||||
<result property="reportReceiver2Position" column="report_receiver2_position"/>
|
||||
<result property="reportReceiver2Cert" column="report_receiver2_cert"/>
|
||||
<result property="reportReceiver2Id" column="report_receiver2_id"/>
|
||||
<result property="reportReceiver2Phone" column="report_receiver2_phone"/>
|
||||
<result property="reportSenderUserId" column="report_sender_user_id"/>
|
||||
<result property="reportSentTime" column="report_sent_time"/>
|
||||
<result property="reportReceiver1Signature" column="report_receiver1_signature"/>
|
||||
<result property="reportReceiver2Signature" column="report_receiver2_signature"/>
|
||||
<result property="sampleReceiveMode" column="sample_receive_mode"/>
|
||||
<result property="sampleReceiver1UserId" column="sample_receiver1_user_id"/>
|
||||
<result property="sampleReceiver1Name" column="sample_receiver1_name"/>
|
||||
<result property="sampleReceiver1Position" column="sample_receiver1_position"/>
|
||||
<result property="sampleReceiver1Cret" column="sample_receiver1_cret"/>
|
||||
<result property="sampleReceiver1Id" column="sample_receiver1_id"/>
|
||||
<result property="sampleReceiver1Phone" column="sample_receiver1_phone"/>
|
||||
<result property="sampleReceiver2UserId" column="sample_receiver2_user_id"/>
|
||||
<result property="sampleReceiver2Name" column="sample_receiver2_name"/>
|
||||
<result property="sampleReceiver2Position" column="sample_receiver2_position"/>
|
||||
<result property="sampleReceiver2Cret" column="sample_receiver2_cret"/>
|
||||
<result property="sampleReceiver2Id" column="sample_receiver2_id"/>
|
||||
<result property="sampleReceiver2Phone" column="sample_receiver2_phone"/>
|
||||
<result property="sampleSenderUserId" column="sample_sender_user_id"/>
|
||||
<result property="sampleSentTime" column="sample_sent_time"/>
|
||||
<result property="sampleReceiver1PersonSignature" column="sample_receiver1_person_signature"/>
|
||||
<result property="sampleReceiver2PersonSignnature" column="sample_receiver2_person_signnature"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="previousStatus" column="previous_status"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="returnOrNot" column="return_or_not"/>
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="entrustmentVO" type="digital.laboratory.platform.entrustment.vo.EntrustmentVO" extends="entrustmentMap">
|
||||
<result property="caseName" column ="case_name"/>
|
||||
<result property="caseNo" column ="case_no"/>
|
||||
<result property="caseBrief" column ="case_brief"/>
|
||||
|
||||
<result property="submitterName" column ="submitter_name"/>
|
||||
<result property="checkClaimUserName" column ="check_claim_user_name"/>
|
||||
<result property="checkUserName" column ="check_user_name"/>
|
||||
<result property="approveClaimUserName" column ="approve_claim_user_name"/>
|
||||
<result property="approveUserName" column ="approve_user_name"/>
|
||||
<result property="deliverConfirmUserName" column ="deliver_confirm_user_name"/>
|
||||
<result property="deliverSubmitterName" column="deliver_submitter_name"/>
|
||||
<result property="acceptUserName" column ="accept_user_name"/>
|
||||
|
||||
<result property="createUserName" column ="create_user_name"/>
|
||||
<result property="updateUserName" column ="update_user_name"/>
|
||||
|
||||
<result property="identificationMaterialCount" column ="identification_material_count"/>
|
||||
|
||||
<result property="identificationNo" column ="identification_no"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="getEntrustmentVOSQL">
|
||||
SELECT e.*,
|
||||
c.case_name,
|
||||
c.case_no,
|
||||
c.case_brief,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=e.submitter
|
||||
) AS submitter_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=e.check_claim_user
|
||||
) AS check_claim_user_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=e.check_user
|
||||
) AS check_user_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=e.approve_claim_user
|
||||
) AS approve_claim_user_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=e.approve_user
|
||||
) AS approve_user_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=e.deliver_confirm_user
|
||||
) AS deliver_confirm_user_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=e.deliver_submitter
|
||||
) AS deliver_submitter_name,
|
||||
-- (
|
||||
-- SELECT user.name
|
||||
-- FROM dlp_base.sys_user user
|
||||
-- WHERE user.user_id=e.accept_claim_user
|
||||
-- ) AS accept_claim_user_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=e.accept_user
|
||||
) AS accept_user_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=e.report_sender_user_id
|
||||
) AS report_sender_user_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=e.sample_sender_user_id
|
||||
) AS sample_sender_user_name,
|
||||
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=e.create_by
|
||||
) AS create_user_name,
|
||||
(
|
||||
SELECT user.name
|
||||
FROM dlp_base.sys_user user
|
||||
WHERE user.user_id=e.update_by
|
||||
) AS update_user_name,
|
||||
|
||||
(
|
||||
SELECT COUNT(*)
|
||||
FROM b_entrustment_identification_material eim
|
||||
WHERE eim.entrustment_id=e.id
|
||||
) AS identification_material_count,
|
||||
|
||||
(
|
||||
select identification_no
|
||||
from b_identification i
|
||||
where i.id = e.identification_id
|
||||
) as identification_no
|
||||
|
||||
FROM b_entrustment e
|
||||
LEFT JOIN b_case_event c on e.case_id=c.id
|
||||
</sql>
|
||||
|
||||
<!-- 取委托列表分页 -->
|
||||
<select id="getEntrustmentVOPage" resultMap="entrustmentVO" resultType="digital.laboratory.platform.entrustment.vo.EntrustmentVO">
|
||||
<include refid="getEntrustmentVOSQL"/>
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
<!-- 取委托列表 -->
|
||||
<select id="getEntrustmentVOList" resultMap="entrustmentVO" resultType="digital.laboratory.platform.entrustment.vo.EntrustmentVO">
|
||||
<include refid="getEntrustmentVOSQL"/>
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
<!-- 取指定 Id 的委托 -->
|
||||
<select id="getEntrustmentVOById" resultMap="entrustmentVO" resultType="digital.laboratory.platform.entrustment.vo.EntrustmentVO">
|
||||
<include refid="getEntrustmentVOSQL"/>
|
||||
where e.id=#{id}
|
||||
</select>
|
||||
|
||||
<!-- 取最大委托号, 目的是为了生成新的委托号 -->
|
||||
<select id="getMaxEntrustmentNo" parameterType="String" resultType="java.lang.String">
|
||||
SELECT MAX(entrustment_no) AS maxno
|
||||
FROM b_entrustment
|
||||
WHERE entrustment_no LIKE concat(#{prefix}, '%')
|
||||
</select>
|
||||
<select id="getMaxEntrustmentNoNew" parameterType="String" resultType="java.lang.String">
|
||||
SELECT MAX(entrustment_no) AS maxno
|
||||
FROM b_entrustment
|
||||
WHERE entrustment_no LIKE concat(#{prefix}, '%')
|
||||
</select>
|
||||
<select id="getMaxEntrustAcceptNo" parameterType="String" resultType="java.lang.String">
|
||||
SELECT MAX(accept_no) AS maxno
|
||||
FROM b_entrustment
|
||||
WHERE accept_no LIKE concat(#{prefix}, '%')
|
||||
</select>
|
||||
|
||||
<!-- 通过前端提供的字典ID 获取对应的检材类别 -->
|
||||
|
||||
<select id="getTypeForDictionary" resultType="String">
|
||||
SELECT d.label
|
||||
from dlp_base.sys_dictionary d
|
||||
where d.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
55
src/main/resources/mapper/IdentificationMapper.xml
Normal file
55
src/main/resources/mapper/IdentificationMapper.xml
Normal file
@@ -0,0 +1,55 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.IdentificationMapper">
|
||||
|
||||
<resultMap id="identificationMap" type="digital.laboratory.platform.entrustment.entity.Identification">
|
||||
<id property="id" column="id"/>
|
||||
<result property="identificationNo" column="identification_no"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="identificationVO" type="digital.laboratory.platform.entrustment.vo.IdentificationVO" extends="identificationMap">
|
||||
<result property="entrustmentId" column="entrustment_id"/>
|
||||
<result property="entrustmentNo" column="entrustment_no"/>
|
||||
<result property="entrustmentTime" column="entrustment_time"/>
|
||||
<result property="acceptTime" column="accept_time"/>
|
||||
<result property="entrustmentStatus" column="entrustment_status"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 根据案件取 IdentificationVO 列表, 一个Identification可能会有多行, 一个委托对应一行, xxxx, 取消了-->
|
||||
<select id="getIdentificationVOList" resultMap="identificationVO"
|
||||
resultType="digital.laboratory.platform.entrustment.vo.IdentificationVO" parameterType="String">
|
||||
SELECT i.*,
|
||||
e.id as entrustment_id,
|
||||
e.entrustment_no,
|
||||
e.entrustment_time,
|
||||
e.accept_time,
|
||||
e.status as entrustment_status
|
||||
FROM b_entrustment e, b_identification i
|
||||
WHERE e.identification_id=i.id AND e.case_id=#{caseId};
|
||||
</select>
|
||||
<!-- 根据 caseId 取 Identification 列表, 供新建的补充委托选择老的 Identification(鉴定), 以使新建的委托作为老的鉴定的一部分 -->
|
||||
<select id="getIdentificationListByCaseId" resultMap="identificationMap"
|
||||
resultType="digital.laboratory.platform.entrustment.entity.Identification" parameterType="String">
|
||||
SELECT *
|
||||
FROM b_identification
|
||||
WHERE id IN (
|
||||
SELECT e.identification_id
|
||||
FROM b_entrustment e
|
||||
WHERE e.identification_id IS NOT NULL AND e.status <![CDATA[ >= ]]> 8 AND e.status <![CDATA[ <= ]]> 90 AND e.case_id=#{caseId})
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 取最大鉴定号, 目的是为了生成新的鉴定号 -->
|
||||
<select id="getMaxIdentificationNo" parameterType="String" resultType="java.lang.String">
|
||||
SELECT MAX(identification_no) AS maxno
|
||||
FROM b_identification
|
||||
WHERE identification_no LIKE concat(#{prefix}, '%')
|
||||
</select>
|
||||
</mapper>
|
||||
21
src/main/resources/mapper/SampleBoxInLogMapper.xml
Normal file
21
src/main/resources/mapper/SampleBoxInLogMapper.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.SampleBoxInLogMapper">
|
||||
|
||||
<resultMap id="sampleBoxInLogMap" type="digital.laboratory.platform.entrustment.entity.SampleBoxInLog">
|
||||
<id property="id" column="id"/>
|
||||
<result property="boxId" column="box_id"/>
|
||||
<result property="isIn" column="is_in"/>
|
||||
<result property="reason" column="reason"/>
|
||||
<result property="personId" column="person_id"/>
|
||||
<result property="fromBox" column="from_box"/>
|
||||
<result property="toBox" column="to_box"/>
|
||||
<result property="storeKeeper" column="store_keeper"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
32
src/main/resources/mapper/SampleBoxMapper.xml
Normal file
32
src/main/resources/mapper/SampleBoxMapper.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.SampleBoxMapper">
|
||||
|
||||
<resultMap id="sampleBoxMap" type="digital.laboratory.platform.sys.entity.entrustment.SampleBox">
|
||||
<id property="id" column="id"/>
|
||||
<result property="boxNo" column="box_no"/>
|
||||
<result property="boxType" column="box_type"/>
|
||||
<result property="storageMethod" column="storage_method"/>
|
||||
<result property="source" column="source"/>
|
||||
<result property="entrustmentId" column="entrustment_id"/>
|
||||
<result property="jobId" column="job_id"/>
|
||||
<result property="sampleType" column="sample_type"/>
|
||||
<result property="sealedUser1Id" column="sealed_user1_id"/>
|
||||
<result property="sealedUser2Id" column="sealed_user2_id"/>
|
||||
<result property="comments" column="comments"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<!-- 取最大盒子号, 目的是为了生成新的盒子号 -->
|
||||
<select id="getMaxBoxNo" parameterType="String" resultType="java.lang.String">
|
||||
SELECT MAX(box_no) AS maxno
|
||||
FROM b_sample_box
|
||||
WHERE box_no LIKE concat(#{prefix}, '%')
|
||||
</select>
|
||||
</mapper>
|
||||
37
src/main/resources/mapper/SampleMapper.xml
Normal file
37
src/main/resources/mapper/SampleMapper.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.SampleMapper">
|
||||
|
||||
<resultMap id="sampleMap" type="digital.laboratory.platform.sys.entity.entrustment.Sample">
|
||||
<id property="id" column="id"/>
|
||||
<result property="identificationMaterialId" column="identification_material_id"/>
|
||||
<result property="sampleNo" column="sample_no"/>
|
||||
<result property="source" column="source"/>
|
||||
<result property="entrustmentId" column="entrustment_id"/>
|
||||
<result property="sewageJobId" column="sewage_job_id"/>
|
||||
<result property="hairJobId" column="hair_job_id"/>
|
||||
<result property="qualitativeAnalysis" column="qualitative_analysis"/>
|
||||
<result property="quantitativeAnalysis" column="quantitative_analysis"/>
|
||||
<result property="candidateDrugs" column="candidate_drugs" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||
<result property="fundName" column="fund_name"/>
|
||||
<result property="fundQuantity" column="fund_quantity"/>
|
||||
<result property="fundUnit" column="fund_unit"/>
|
||||
<result property="quantity" column="quantity"/>
|
||||
<result property="unit" column="unit"/>
|
||||
<result property="additionalProperties" column="additional_properties" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||
<result property="drawWay" column="draw_way"/>
|
||||
<result property="boxId" column="box_id"/>
|
||||
<result property="sampleType" column="sample_type"/>
|
||||
<result property="storageMethod" column="storage_method"/>
|
||||
<result property="acceptTime" column="accept_time"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="holder" column="holder"/>
|
||||
<result property="acceptNo" column="accept_no"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
19
src/main/resources/mapper/SampleStoreChangeDutyLogMapper.xml
Normal file
19
src/main/resources/mapper/SampleStoreChangeDutyLogMapper.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.SampleStoreChangeDutyLogMapper">
|
||||
|
||||
<resultMap id="sampleStoreChangeDutyLogMap" type="digital.laboratory.platform.entrustment.entity.SampleStoreChangeDutyLog">
|
||||
<id property="id" column="id"/>
|
||||
<result property="oldKeeper1" column="old_keeper1"/>
|
||||
<result property="oldKeeper2" column="old_keeper2"/>
|
||||
<result property="newKeeper1" column="new_keeper1"/>
|
||||
<result property="newKeeper2" column="new_keeper2"/>
|
||||
<result property="comments" column="comments"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
22
src/main/resources/mapper/SampleStoreLogMapper.xml
Normal file
22
src/main/resources/mapper/SampleStoreLogMapper.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.SampleStoreLogMapper">
|
||||
|
||||
<resultMap id="sampleStoreLogMap" type="digital.laboratory.platform.entrustment.entity.SampleStoreLog">
|
||||
<id property="id" column="id"/>
|
||||
<result property="boxId" column="box_id"/>
|
||||
<result property="isIn" column="is_in"/>
|
||||
<result property="reason" column="reason"/>
|
||||
<result property="personId" column="person_id"/>
|
||||
<result property="fromBox" column="from_box"/>
|
||||
<result property="toBox" column="to_box"/>
|
||||
<result property="storeKeeper1" column="store_keeper1"/>
|
||||
<result property="storeKeeper2" column="store_keeper2"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
18
src/main/resources/mapper/SampleStoreMapper.xml
Normal file
18
src/main/resources/mapper/SampleStoreMapper.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.SampleStoreMapper">
|
||||
|
||||
<resultMap id="sampleStoreMap" type="digital.laboratory.platform.entrustment.entity.SampleStore">
|
||||
<id property="id" column="id"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="keeper1" column="keeper1"/>
|
||||
<result property="keeper2" column="keeper2"/>
|
||||
<result property="comments" column="comments"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
17
src/main/resources/mapper/StorageCabinetMapper.xml
Normal file
17
src/main/resources/mapper/StorageCabinetMapper.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.StorageCabinetMapper">
|
||||
|
||||
<resultMap id="storageCabinetMap" type="digital.laboratory.platform.entrustment.entity.StorageCabinet">
|
||||
<id property="id" column="id"/>
|
||||
<result property="cabinetNo" column="cabinet_no"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="comments" column="comments"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
15
src/main/resources/mapper/StorageCellLogMapper.xml
Normal file
15
src/main/resources/mapper/StorageCellLogMapper.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.StorageCellLogMapper">
|
||||
|
||||
<resultMap id="storageCellLogMap" type="digital.laboratory.platform.entrustment.entity.StorageCellLog">
|
||||
<id property="id" column="id"/>
|
||||
<result property="cellId" column="cell_id"/>
|
||||
<result property="operate" column="operate"/>
|
||||
<result property="boxId" column="box_id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
21
src/main/resources/mapper/StorageCellMapper.xml
Normal file
21
src/main/resources/mapper/StorageCellMapper.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.StorageCellMapper">
|
||||
|
||||
<resultMap id="storageCellMap" type="digital.laboratory.platform.entrustment.entity.StorageCell">
|
||||
<id property="id" column="id"/>
|
||||
<result property="cabinetNo" column="cabinet_no"/>
|
||||
<result property="cellNo" column="cell_no"/>
|
||||
<result property="openCode" column="open_code"/>
|
||||
<result property="openCodeExpiration" column="open_code_expiration"/>
|
||||
<result property="available" column="available"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="boxId" column="box_id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
20
src/main/resources/mapper/TakerMapper.xml
Normal file
20
src/main/resources/mapper/TakerMapper.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.TakerMapper">
|
||||
|
||||
<resultMap id="takerMap" type="digital.laboratory.platform.entrustment.entity.Taker">
|
||||
<id property="id" column="id"/>
|
||||
<result property="ownerUserId" column="owner_user_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="position" column="position"/>
|
||||
<result property="cert" column="cert"/>
|
||||
<result property="idnum" column="idnum"/>
|
||||
<result property="phone" column="phone"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.HairJobIdentificationMaterialMapper">
|
||||
|
||||
<resultMap id="hairJobIdentificationMaterialMap" type="digital.laboratory.platform.entrustment.entity.HairJobIdentificationMaterial">
|
||||
<id property="id" column="id"/>
|
||||
<result property="jobId" column="job_id"/>
|
||||
<result property="jobItemId" column="job_item_id"/>
|
||||
<result property="imNo" column="im_no"/>
|
||||
<result property="sample1No" column="sample1_no"/>
|
||||
<result property="sample2No" column="sample2_no"/>
|
||||
<result property="sample1BoxId" column="sample1_box_id"/>
|
||||
<result property="sample2BoxId" column="sample2_box_id"/>
|
||||
<result property="personName" column="person_name"/>
|
||||
<result property="personCard" column="person_card"/>
|
||||
<result property="personType" column="person_type"/>
|
||||
<result property="projectName" column="project_name"/>
|
||||
<result property="executionTime" column="execution_time"/>
|
||||
<result property="drugType" column="drug_type"/>
|
||||
<result property="collector" column="collector"/>
|
||||
<result property="collectorGroup" column="collector_group"/>
|
||||
<result property="collectTime" column="collect_time"/>
|
||||
<result property="collectPlace" column="collect_place"/>
|
||||
<result property="supervisor" column="supervisor"/>
|
||||
<result property="acceptTime" column="accept_time"/>
|
||||
<result property="acceptPassed" column="accept_passed"/>
|
||||
<result property="comments" column="comments"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="name" column="name"/>
|
||||
<!-- <result property="quantity" column="quantity"/>-->
|
||||
<!-- <result property="sample1Quantity" column="sample1_quantity"/>-->
|
||||
<!-- <result property="sample2Quantity" column="sample2_quantity"/>-->
|
||||
<!-- <result property="unit" column="unit"/>-->
|
||||
</resultMap>
|
||||
</mapper>
|
||||
26
src/main/resources/mapper/xHairJobMapper.xmlx
Normal file
26
src/main/resources/mapper/xHairJobMapper.xmlx
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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="digital.laboratory.platform.entrustment.mapper.HairJobMapper">
|
||||
|
||||
<resultMap id="hairJobMap" type="digital.laboratory.platform.entrustment.entity.HairJob">
|
||||
<id property="id" column="id"/>
|
||||
<result property="rootId" column="root_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="jobNo" column="job_no"/>
|
||||
<result property="jobIssueOrg" column="job_issue_org"/>
|
||||
<result property="jobExecOrg" column="job_exec_org"/>
|
||||
<result property="jobFrom" column="job_from"/>
|
||||
<result property="expirationDate" column="expiration_date"/>
|
||||
<result property="startDate" column="start_date"/>
|
||||
<result property="comments" column="comments"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="jobType" column="job_type"/>
|
||||
<result property="xxxjobIdentifyType" column="xxxjob_identify_type"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user