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
4bcf4c27
Commit
4bcf4c27
authored
Feb 28, 2023
by
董天德
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_ch_master' into dev_ch_master
parents
497ea688
fcca4ac6
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
101 additions
and
1 deletion
+101
-1
ChSrvOrganProjectMapper.java
...in/java/com/hungraim/ltc/dao/ChSrvOrganProjectMapper.java
+11
-0
ServiceTypeDetailedMapper.java
.../java/com/hungraim/ltc/dao/ServiceTypeDetailedMapper.java
+11
-0
ServiceTypeMapper.java
...src/main/java/com/hungraim/ltc/dao/ServiceTypeMapper.java
+11
-0
ChSrvOrganProjectService.java
...va/com/hungraim/ltc/service/ChSrvOrganProjectService.java
+8
-0
ChSrvOrganProjectServiceImpl.java
...ngraim/ltc/service/impl/ChSrvOrganProjectServiceImpl.java
+13
-0
SrvOrganServiceImpl.java
...va/com/hungraim/ltc/service/impl/SrvOrganServiceImpl.java
+46
-0
ReTaskController.java
...in/java/com/hungraim/ltc/controller/ReTaskController.java
+1
-1
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ChSrvOrganProjectMapper.java
0 → 100644
View file @
4bcf4c27
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvOrganProject
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
@Mapper
@Repository
public
interface
ChSrvOrganProjectMapper
extends
BaseMapper
<
ChSrvOrganProject
>
{
}
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ServiceTypeDetailedMapper.java
0 → 100644
View file @
4bcf4c27
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.disable.ChServiceTypeDetailed
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
@Mapper
@Repository
public
interface
ServiceTypeDetailedMapper
extends
BaseMapper
<
ChServiceTypeDetailed
>
{
}
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ServiceTypeMapper.java
0 → 100644
View file @
4bcf4c27
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.disable.ChServiceType
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
@Mapper
@Repository
public
interface
ServiceTypeMapper
extends
BaseMapper
<
ChServiceType
>
{
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/ChSrvOrganProjectService.java
0 → 100644
View file @
4bcf4c27
package
com
.
hungraim
.
ltc
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvOrganProject
;
public
interface
ChSrvOrganProjectService
extends
IService
<
ChSrvOrganProject
>
{
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/ChSrvOrganProjectServiceImpl.java
0 → 100644
View file @
4bcf4c27
package
com
.
hungraim
.
ltc
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.hungraim.ltc.dao.ChSrvOrganProjectMapper
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvOrganProject
;
import
com.hungraim.ltc.service.ChSrvOrganProjectService
;
import
org.springframework.stereotype.Service
;
@Service
public
class
ChSrvOrganProjectServiceImpl
extends
ServiceImpl
<
ChSrvOrganProjectMapper
,
ChSrvOrganProject
>
implements
ChSrvOrganProjectService
{
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganServiceImpl.java
View file @
4bcf4c27
...
...
@@ -2,18 +2,24 @@ package com.hungraim.ltc.service.impl;
import
cn.hutool.core.util.StrUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.api.AttachFeignService
;
import
com.hungraim.ltc.dao.*
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChCfgSrvOrganType
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndSrvOrganLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChServiceType
;
import
com.hungraim.ltc.pojo.entity.disable.ChServiceTypeDetailed
;
import
com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan
;
import
com.hungraim.ltc.pojo.entity.riskLevel.ChSrvorganRiskLevel
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvOrganProject
;
import
com.hungraim.ltc.pojo.vo.disable.ChServiceTypeVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvModeVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganListVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.SrvOrganVo
;
import
com.hungraim.ltc.service.ChSrvOrganProjectService
;
import
com.hungraim.ltc.service.OrganService
;
import
com.hungraim.ltc.service.SrvOrganService
;
import
com.hungraim.ltc.util.AttachType
;
...
...
@@ -22,6 +28,7 @@ import com.hungraim.ltc.util.ResultCode;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -48,6 +55,12 @@ public class SrvOrganServiceImpl implements SrvOrganService {
private
final
ChSrvorganRiskLevelMapper
chSrvorganRiskLevelMapper
;
private
final
ServiceTypeMapper
serviceTypeMapper
;
private
final
ServiceTypeDetailedMapper
serviceTypeDetailedMapper
;
private
final
ChSrvOrganProjectMapper
chSrvOrganProjectMapper
;
private
final
ChSrvOrganProjectService
chSrvOrganProjectService
;
@Override
public
Page
<
SrvOrganListVo
>
getSrvOrganList
(
Page
<
SrvOrganListVo
>
page
,
Long
organId
,
Boolean
isInvolveChild
,
String
creditCode
,
String
srvOrganName
,
Long
srvOrganId
)
{
...
...
@@ -129,6 +142,39 @@ public class SrvOrganServiceImpl implements SrvOrganService {
chSrvorganRiskLevel
.
setStatus
(
0
);
chSrvorganRiskLevel
.
setFcd
(
new
Date
());
chSrvorganRiskLevelMapper
.
insert
(
chSrvorganRiskLevel
);
//添加48项服务配置
//1、查询所有的服务配置
List
<
ChServiceType
>
list
=
serviceTypeMapper
.
selectList
(
new
QueryWrapper
<>());
List
<
ChServiceTypeVo
>
chServiceTypeVoList
=
new
ArrayList
<
ChServiceTypeVo
>();
for
(
ChServiceType
chServiceType
:
list
){
if
(
chServiceType
.
getParaId
()
==
0L
){
ChServiceTypeVo
chServiceTypeVo
=
new
ChServiceTypeVo
();
chServiceTypeVo
.
setServiceTypeId
(
chServiceType
.
getServiceTypeId
());
chServiceTypeVo
.
setServiceTypeName
(
chServiceType
.
getServiceTypeName
());
QueryWrapper
<
ChServiceTypeDetailed
>
wrapper
=
new
QueryWrapper
<
ChServiceTypeDetailed
>();
wrapper
.
eq
(
"para_id"
,
chServiceType
.
getServiceTypeId
());
List
<
ChServiceTypeDetailed
>
detailedList
=
serviceTypeDetailedMapper
.
selectList
(
wrapper
);
chServiceTypeVo
.
setList
(
detailedList
);
chServiceTypeVoList
.
add
(
chServiceTypeVo
);
}
}
Long
srvOrganIdL
=
Long
.
valueOf
(
chSrvOrgan
.
getSrvOrganId
());
List
<
ChSrvOrganProject
>
chSrvOrganProjectList
=
new
ArrayList
<>();
//进行服务处理
chServiceTypeVoList
.
stream
().
forEach
(
chServiceTypeVo
->{
chServiceTypeVo
.
getList
().
stream
().
forEach
(
e
->{
ChSrvOrganProject
chSrvOrganProject
=
new
ChSrvOrganProject
();
chSrvOrganProject
.
setSrvOrganId
(
srvOrganIdL
);
chSrvOrganProject
.
setItemName
(
e
.
getServiceTypeDetailedId
()+
""
);
chSrvOrganProject
.
setCategoryType
(
chServiceTypeVo
.
getServiceTypeId
().
shortValue
());
chSrvOrganProject
.
setIsConf
(
new
Short
(
"0"
));
chSrvOrganProject
.
setStatus
(
new
Short
(
"0"
));
chSrvOrganProjectList
.
add
(
chSrvOrganProject
);
});
});
//批量添加内容
chSrvOrganProjectService
.
saveBatch
(
chSrvOrganProjectList
);
}
}
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/ReTaskController.java
View file @
4bcf4c27
...
...
@@ -80,7 +80,7 @@ public class ReTaskController {
*/
@RequestMapping
(
"/disableExamine"
)
public
Result
disableExamine
(
String
applyId
,
String
checkName
,
Short
applyStatus
,
String
checkRemark
)
{
if
(
StringUtils
.
isBlank
(
applyId
)
||
StringUtils
.
isBlank
(
checkName
)
||
StringUtils
.
isBlank
(
checkRemark
)
||
null
==
applyStatus
)
{
if
(
StringUtils
.
isBlank
(
applyId
)
||
StringUtils
.
isBlank
(
checkName
)
||
null
==
applyStatus
)
{
return
Result
.
failed
(
"查询参数错误"
);
}
reTaskService
.
disableExamine
(
applyId
,
checkName
,
applyStatus
,
checkRemark
);
...
...
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