Commit 05eb2cdd3935addfbb1cc55b0e11bea5924eed28
1 parent
84fed3450d
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 106 additions and 0 deletions
platform-biz-service/src/main/resources/mainOrm/master/MasterLis.xml
View file @
05eb2cd
1 | +<?xml version="1.0" encoding="UTF-8" ?> | |
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | |
3 | +<mapper namespace="com.lyms.platform.permission.dao.master.MasterLisMapper"> | |
4 | + | |
5 | + <insert id="saveLisData" parameterType="com.lyms.platform.permission.model.LisReportModel"> | |
6 | + INSERT INTO LIS_REPORT_TBL( | |
7 | + LIS_ID, | |
8 | + TITLE, | |
9 | + TYPE, | |
10 | + VCCARDNO, | |
11 | + NAME, | |
12 | + BHNUM, | |
13 | + AGE, | |
14 | + SEX, | |
15 | + APPLY_TIME, | |
16 | + CHECK_TIME, | |
17 | + PUBLISH_TIME, | |
18 | + APPLY_DOCTOR, | |
19 | + APPLY_DEPT, | |
20 | + CHECKER, | |
21 | + MODIFIED, | |
22 | + CREATED, | |
23 | + HOSPITAL_ID | |
24 | + ) VALUES ( | |
25 | + #{lisId}, | |
26 | + #{title}, | |
27 | + #{type}, | |
28 | + #{vcCardNo}, | |
29 | + #{name}, | |
30 | + #{ bhnum}, | |
31 | + #{age}, | |
32 | + #{sex}, | |
33 | + #{applyTime}, | |
34 | + #{checkTime}, | |
35 | + #{publishTime}, | |
36 | + #{applyDoctor}, | |
37 | + #{applyDept}, | |
38 | + #{checker}, | |
39 | + #{modified}, | |
40 | + #{created}, | |
41 | + #{hospitalId} | |
42 | + ) | |
43 | + | |
44 | + </insert> | |
45 | + | |
46 | + <insert id="saveLisItemsData" parameterType="java.util.List"> | |
47 | + insert into LIS_REPORT_ITEM_TBL ( | |
48 | + LIS_ID, | |
49 | + CODE, | |
50 | + NAME, | |
51 | + RESULT, | |
52 | + RESULT_FLAG, | |
53 | + REF, | |
54 | + RESULT_TYPE, | |
55 | + UNIT, | |
56 | + PRINT_ORDER, | |
57 | + HOSPITAL_ID | |
58 | + ) | |
59 | + values | |
60 | + <foreach collection="list" item="item" index="index" separator="," > | |
61 | + ( | |
62 | + #{item.rId}, | |
63 | + #{item.code}, | |
64 | + #{item.name}, | |
65 | + #{item.result}, | |
66 | + #{item.resultFlag}, | |
67 | + #{item.ref}, | |
68 | + #{item.resultType}, | |
69 | + #{item.unit}, | |
70 | + #{item.modifyDate}, | |
71 | + #{item.printOrder}, | |
72 | + #{item.hospitalId} | |
73 | + ) | |
74 | + </foreach> | |
75 | + </insert> | |
76 | + | |
77 | + <delete id="deleteLisData" parameterType="com.lyms.platform.permission.model.LisReportModel"> | |
78 | + DELETE FROM LIS_REPORT_TBL WHERE LIS_ID = #{lisId} AND HOSPITAL_ID = #{hospitalId} | |
79 | + </delete> | |
80 | + | |
81 | + <select id="queryLisDataByModel" parameterType="com.lyms.platform.permission.model.LisReportModel" | |
82 | + resultType="com.lyms.platform.permission.model.LisReportModel"> | |
83 | + SELECT | |
84 | + ID AS id, | |
85 | + LIS_ID AS lisId, | |
86 | + TITLE AS title, | |
87 | + TYPE AS type, | |
88 | + VCCARDNO AS vcCardNo, | |
89 | + NAME AS name, | |
90 | + BHNUM AS bhnum, | |
91 | + AGE AS age, | |
92 | + SEX AS sex, | |
93 | + APPLY_TIME AS applyTime, | |
94 | + CHECK_TIME AS checkTime, | |
95 | + PUBLISH_TIME AS publishTime, | |
96 | + APPLY_DOCTOR AS applyDoctor, | |
97 | + APPLY_DEPT AS applyDept, | |
98 | + CHECKER AS checker, | |
99 | + MODIFIED AS modified, | |
100 | + CREATED AS created, | |
101 | + HOSPITAL_ID AS hospitalId | |
102 | + FROM LIS_REPORT_TBL | |
103 | + WHERE LIS_ID = #{lisId} | |
104 | + AND HOSPITAL_ID = #{hospitalId} | |
105 | + </select> | |
106 | +</mapper> |