Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hubin
long-tern-care-service
Commits
bbd2c759
Commit
bbd2c759
authored
Sep 14, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务机构分配服务方式绑定护理机构提供服务方式
parent
78717895
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
8 deletions
+44
-8
ChSrvOrgan.java
...java/com/hungraim/ltc/pojo/entity/disable/ChSrvOrgan.java
+4
-4
SrvTypeData.java
...ava/com/hungraim/ltc/pojo/entity/disable/SrvTypeData.java
+15
-0
BuildBedController.java
...ungraim/ltc/governance/controller/BuildBedController.java
+25
-4
No files found.
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/disable/ChSrvOrgan.java
View file @
bbd2c759
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
disable
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.hungraim.ltc.pojo.entity.PageInfo
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* 护理机构表
...
...
@@ -52,6 +50,8 @@ public class ChSrvOrgan extends PageInfo implements Serializable {
private
Integer
lcu
;
private
String
checkRemarkLp
;
private
String
srvType
;
@TableField
(
exist
=
false
)
private
List
<
SrvTypeData
>
srvTypeData
;
private
String
districtProvincial
;
private
String
checkNameLp
;
private
Integer
cardType
;
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/disable/SrvTypeData.java
0 → 100644
View file @
bbd2c759
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
disable
;
import
lombok.Data
;
/**
* @author zwl
* @ClassName SrvTypeData
* @description
* @date 2023/9/13 16:57
**/
@Data
public
class
SrvTypeData
{
private
String
value
;
private
String
label
;
}
governance/src/main/java/com/hungraim/ltc/governance/controller/BuildBedController.java
View file @
bbd2c759
...
...
@@ -13,6 +13,7 @@ import com.hungraim.ltc.governance.service.*;
import
com.hungraim.ltc.pojo.entity.account.ChPunchDetailsVO
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan
;
import
com.hungraim.ltc.pojo.entity.disable.SrvTypeData
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvProgram
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend
;
import
com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetailVo
;
...
...
@@ -31,10 +32,7 @@ import org.springframework.web.bind.annotation.*;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
java.text.ParseException
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
/**
* @author jiaguokai
...
...
@@ -218,6 +216,29 @@ public class BuildBedController {
// 总记录数
long
total
=
page
.
getTotal
();
List
<
ChSrvOrgan
>
records
=
page
.
getRecords
();
for
(
ChSrvOrgan
record
:
records
)
{
List
<
SrvTypeData
>
srvTypeDataList
=
new
ArrayList
<>();
String
srvType
=
record
.
getSrvType
();
List
<
String
>
list
=
Arrays
.
asList
(
srvType
.
split
(
","
));
for
(
String
value
:
list
)
{
SrvTypeData
srvTypeData
=
new
SrvTypeData
();
String
lable
=
""
;
if
(
value
.
equals
(
"1"
)){
lable
=
"医疗"
;
}
else
if
(
value
.
equals
(
"2"
)){
lable
=
"养老"
;
}
else
if
(
value
.
equals
(
"3"
)){
lable
=
"上门"
;
}
else
{
continue
;
}
srvTypeData
.
setLabel
(
lable
);
srvTypeData
.
setValue
(
value
);
srvTypeDataList
.
add
(
srvTypeData
);
}
record
.
setSrvTypeData
(
srvTypeDataList
);
}
Map
map
=
new
HashMap
<>();
map
.
put
(
"total"
,
total
);
map
.
put
(
"recors"
,
records
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment