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
cb5ff3d6
Commit
cb5ff3d6
authored
May 26, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
失能评定报告附件上传
parent
d7003e78
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
86 additions
and
38 deletions
+86
-38
DisableService.java
...rc/main/java/com/hungraim/ltc/service/DisableService.java
+0
-2
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+1
-0
pom.xml
assessment/assessment-service/pom.xml
+12
-0
AssessmentApplication.java
...src/main/java/com/hungraim/ltc/AssessmentApplication.java
+4
-0
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+8
-4
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+3
-2
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+49
-21
bootstrap.yml
...sment/assessment-service/src/main/resources/bootstrap.yml
+3
-0
DisableAssessmentCriteriaService.java
.../governance/service/DisableAssessmentCriteriaService.java
+0
-2
SrvProgramService.java
...om/hungraim/ltc/governance/service/SrvProgramService.java
+0
-2
SrvSendService.java
...a/com/hungraim/ltc/governance/service/SrvSendService.java
+0
-3
SrvTaskService.java
...a/com/hungraim/ltc/governance/service/SrvTaskService.java
+0
-2
DisableAssessmentCriteriaServiceImpl.java
...ce/service/impl/DisableAssessmentCriteriaServiceImpl.java
+2
-0
SrvProgramServiceImpl.java
...im/ltc/governance/service/impl/SrvProgramServiceImpl.java
+2
-0
SrvTaskServiceImpl.java
...graim/ltc/governance/service/impl/SrvTaskServiceImpl.java
+2
-0
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/service/DisableService.java
View file @
cb5ff3d6
...
@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.hungraim.ltc.pojo.entity.disable.*
;
import
com.hungraim.ltc.pojo.entity.disable.*
;
import
com.hungraim.ltc.pojo.vo.disable.*
;
import
com.hungraim.ltc.pojo.vo.disable.*
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
import
java.util.List
;
...
@@ -27,7 +26,6 @@ public interface DisableService {
...
@@ -27,7 +26,6 @@ public interface DisableService {
* @param applyId 申请id
* @param applyId 申请id
* @return 失能审核信息详情
* @return 失能审核信息详情
*/
*/
@Transactional
()
DisableExamineInfoVO
disableExamineInfo
(
String
applyId
);
DisableExamineInfoVO
disableExamineInfo
(
String
applyId
);
void
addDisable
(
ChDisableApply
chDisableApply
);
void
addDisable
(
ChDisableApply
chDisableApply
);
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
cb5ff3d6
...
@@ -91,6 +91,7 @@ public class DisableServiceImpl implements DisableService {
...
@@ -91,6 +91,7 @@ public class DisableServiceImpl implements DisableService {
districtCity
,
districtArea
,
realName
,
certiCode
,
dataFrom
,
srvOrganName
);
districtCity
,
districtArea
,
realName
,
certiCode
,
dataFrom
,
srvOrganName
);
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
DisableExamineInfoVO
disableExamineInfo
(
String
applyId
)
{
public
DisableExamineInfoVO
disableExamineInfo
(
String
applyId
)
{
DisableExamineInfoVO
disableExamineInfoVO
=
disableApplyMapper
.
selectDisableExamineInfoByApplyId
(
applyId
);
DisableExamineInfoVO
disableExamineInfoVO
=
disableApplyMapper
.
selectDisableExamineInfoByApplyId
(
applyId
);
...
...
assessment/assessment-service/pom.xml
View file @
cb5ff3d6
...
@@ -23,6 +23,18 @@
...
@@ -23,6 +23,18 @@
<version>
2.2.5.RELEASE
</version>
<version>
2.2.5.RELEASE
</version>
</dependency>
</dependency>
<!--feign服务调用-->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
</dependency>
<!--系统服务api-->
<dependency>
<groupId>
com.hungraim.ltc
</groupId>
<artifactId>
system-api
</artifactId>
<version>
0.0.1
</version>
</dependency>
<!--基础包-->
<!--基础包-->
<dependency>
<dependency>
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/AssessmentApplication.java
View file @
cb5ff3d6
...
@@ -3,6 +3,8 @@ package com.hungraim.ltc;
...
@@ -3,6 +3,8 @@ package com.hungraim.ltc;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
/**
/**
* 评定服务: 负责 评定任务管理 评定报告录入
* 评定服务: 负责 评定任务管理 评定报告录入
...
@@ -11,6 +13,8 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
...
@@ -11,6 +13,8 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
*/
*/
@SpringBootApplication
@SpringBootApplication
@EnableDiscoveryClient
@EnableDiscoveryClient
@EnableTransactionManagement
@EnableFeignClients
public
class
AssessmentApplication
{
public
class
AssessmentApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
AssessmentApplication
.
class
,
args
);
SpringApplication
.
run
(
AssessmentApplication
.
class
,
args
);
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
cb5ff3d6
package
com
.
hungraim
.
ltc
.
controller
;
package
com
.
hungraim
.
ltc
.
controller
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.assessment.ChRefuseReason
;
import
com.hungraim.ltc.pojo.entity.assessment.ChRefuseReason
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
...
@@ -121,9 +122,10 @@ public class TaskController {
...
@@ -121,9 +122,10 @@ public class TaskController {
* @param disableLevelId 失能等级id
* @param disableLevelId 失能等级id
* @param polNo 保单号
* @param polNo 保单号
* @param remark 备注
* @param remark 备注
* @param fileDataList 附件
*/
*/
@RequestMapping
(
"/addReport"
)
@RequestMapping
(
"/addReport"
)
public
Result
addReport
(
Integer
taskId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
String
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
)
{
public
Result
addReport
(
Integer
taskId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
String
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
,
List
<
ChFndAttach
>
fileDataList
)
{
if
(
person1
==
null
)
{
if
(
person1
==
null
)
{
return
Result
.
failed
(
"鉴定人员1不能为空!"
);
return
Result
.
failed
(
"鉴定人员1不能为空!"
);
}
}
...
@@ -143,7 +145,7 @@ public class TaskController {
...
@@ -143,7 +145,7 @@ public class TaskController {
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
return
Result
.
failed
(
"评估时间格式不正确!"
);
return
Result
.
failed
(
"评估时间格式不正确!"
);
}
}
Result
<
Object
>
objectResult
=
taskService
.
addReport
(
taskId
,
person1
,
person2
,
person3
,
evaluateDate
,
disableLevelId
,
polNo
,
remark
);
Result
<
Object
>
objectResult
=
taskService
.
addReport
(
taskId
,
person1
,
person2
,
person3
,
evaluateDate
,
disableLevelId
,
polNo
,
remark
,
fileDataList
);
if
(!
ResultCode
.
SUCCESS
.
getCode
().
equals
(
objectResult
.
getCode
()))
{
if
(!
ResultCode
.
SUCCESS
.
getCode
().
equals
(
objectResult
.
getCode
()))
{
//失败
//失败
return
Result
.
failed
(
objectResult
.
getMsg
());
return
Result
.
failed
(
objectResult
.
getMsg
());
...
@@ -162,9 +164,11 @@ public class TaskController {
...
@@ -162,9 +164,11 @@ public class TaskController {
* @param disableLevelId 失能等级id
* @param disableLevelId 失能等级id
* @param polNo 保单号
* @param polNo 保单号
* @param remark 备注
* @param remark 备注
* @param remark 备注
* @param fileDataList 附件
*/
*/
@RequestMapping
(
"/updateReport"
)
@RequestMapping
(
"/updateReport"
)
public
Result
updateReport
(
Integer
reportId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
String
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
)
{
public
Result
updateReport
(
Integer
reportId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
String
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
,
List
<
ChFndAttach
>
fileDataList
)
{
if
(
disableLevelId
==
null
)
{
if
(
disableLevelId
==
null
)
{
return
Result
.
failed
(
"失能等级不能为空!"
);
return
Result
.
failed
(
"失能等级不能为空!"
);
}
}
...
@@ -181,7 +185,7 @@ public class TaskController {
...
@@ -181,7 +185,7 @@ public class TaskController {
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
return
Result
.
failed
(
"评估时间格式不正确!"
);
return
Result
.
failed
(
"评估时间格式不正确!"
);
}
}
taskService
.
updateReport
(
reportId
,
person1
,
person2
,
person3
,
evaluateDate
,
disableLevelId
,
polNo
,
remark
);
taskService
.
updateReport
(
reportId
,
person1
,
person2
,
person3
,
evaluateDate
,
disableLevelId
,
polNo
,
remark
,
fileDataList
);
return
Result
.
success
();
return
Result
.
success
();
}
}
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
cb5ff3d6
package
com
.
hungraim
.
ltc
.
service
;
package
com
.
hungraim
.
ltc
.
service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.assessment.ChRefuseReason
;
import
com.hungraim.ltc.pojo.entity.assessment.ChRefuseReason
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
...
@@ -26,9 +27,9 @@ public interface TaskService {
...
@@ -26,9 +27,9 @@ public interface TaskService {
List
<
AprEmpVO
>
aprEmpList
(
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
groupLeader
);
List
<
AprEmpVO
>
aprEmpList
(
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
groupLeader
);
Result
<
Object
>
addReport
(
Integer
taskId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
);
Result
<
Object
>
addReport
(
Integer
taskId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
,
List
<
ChFndAttach
>
fileDataList
);
void
updateReport
(
Integer
reportId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateDate
,
Integer
disableLevelId
,
String
polNo
,
String
remark
);
void
updateReport
(
Integer
reportId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateDate
,
Integer
disableLevelId
,
String
polNo
,
String
remark
,
List
<
ChFndAttach
>
fileDataList
);
Result
<
Object
>
allotTask
(
String
taskId
,
String
empId
);
Result
<
Object
>
allotTask
(
String
taskId
,
String
empId
);
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
cb5ff3d6
...
@@ -3,18 +3,24 @@ package com.hungraim.ltc.service.impl;
...
@@ -3,18 +3,24 @@ package com.hungraim.ltc.service.impl;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.api.AttachFeignService
;
import
com.hungraim.ltc.dao.*
;
import
com.hungraim.ltc.dao.*
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.assessment.*
;
import
com.hungraim.ltc.pojo.entity.assessment.*
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.service.TaskService
;
import
com.hungraim.ltc.service.TaskService
;
import
com.hungraim.ltc.util.AttachType
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.SerialNumberUtils
;
import
com.hungraim.ltc.util.SerialNumberUtils
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -24,26 +30,20 @@ import java.util.List;
...
@@ -24,26 +30,20 @@ import java.util.List;
* @author czz
* @author czz
*/
*/
@Service
@Service
@Slf4j
@AllArgsConstructor
public
class
TaskServiceImpl
implements
TaskService
{
public
class
TaskServiceImpl
implements
TaskService
{
@Autowired
private
final
TaskMapper
taskMapper
;
private
TaskMapper
taskMapper
;
private
final
AprEmpMapper
aprEmpMapper
;
@Autowired
private
final
AprReportMapper
aprReportMapper
;
private
AprEmpMapper
aprEmpMapper
;
private
final
AprPersonInfoMapper
personInfoMapper
;
@Autowired
private
final
TaskPushMapper
taskPushMapper
;
private
AprReportMapper
aprReportMapper
;
private
final
TaskPushHisMapper
taskPushHisMapper
;
@Autowired
private
final
CfgSrvDisableLevelMapper
cfgSrvDisableLevelMapper
;
private
AprPersonInfoMapper
personInfoMapper
;
private
final
DisableInfoMapper
disableInfoMapper
;
@Autowired
private
final
RefuseReasonMapper
refuseReasonMapper
;
private
TaskPushMapper
taskPushMapper
;
private
final
AttachFeignService
attachFeignService
;
@Autowired
private
TaskPushHisMapper
taskPushHisMapper
;
@Autowired
private
CfgSrvDisableLevelMapper
cfgSrvDisableLevelMapper
;
@Autowired
private
DisableInfoMapper
disableInfoMapper
;
@Autowired
private
RefuseReasonMapper
refuseReasonMapper
;
/**
/**
* 评定任务分配列表
* 评定任务分配列表
...
@@ -121,9 +121,11 @@ public class TaskServiceImpl implements TaskService {
...
@@ -121,9 +121,11 @@ public class TaskServiceImpl implements TaskService {
* @param disableLevelId 失能等级id
* @param disableLevelId 失能等级id
* @param polNo 保单号
* @param polNo 保单号
* @param remark 备注
* @param remark 备注
* @param fileDataList 附件
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
Result
<
Object
>
addReport
(
Integer
taskId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
)
{
public
Result
<
Object
>
addReport
(
Integer
taskId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
,
List
<
ChFndAttach
>
fileDataList
)
{
ChAprTask
task
=
taskMapper
.
selectById
(
taskId
);
ChAprTask
task
=
taskMapper
.
selectById
(
taskId
);
if
(
task
!=
null
)
{
if
(
task
!=
null
)
{
return
Result
.
failed
(
"已存在的评定任务报告!"
);
return
Result
.
failed
(
"已存在的评定任务报告!"
);
...
@@ -138,6 +140,10 @@ public class TaskServiceImpl implements TaskService {
...
@@ -138,6 +140,10 @@ public class TaskServiceImpl implements TaskService {
report
.
setStatus
(
0
);
report
.
setStatus
(
0
);
report
.
setEvaluateTime
(
evaluateTime
);
report
.
setEvaluateTime
(
evaluateTime
);
aprReportMapper
.
insert
(
report
);
aprReportMapper
.
insert
(
report
);
//附件上传
if
(
fileDataList
!=
null
&&
fileDataList
.
size
()
>
0
)
{
updateAttachs
(
fileDataList
,
report
.
getReportId
().
longValue
());
}
//插入评定任务关联人员1.2.3(至少一位,最多三位)
//插入评定任务关联人员1.2.3(至少一位,最多三位)
//person1
//person1
ChAprPersonInfo
person1Info
=
new
ChAprPersonInfo
();
ChAprPersonInfo
person1Info
=
new
ChAprPersonInfo
();
...
@@ -173,9 +179,11 @@ public class TaskServiceImpl implements TaskService {
...
@@ -173,9 +179,11 @@ public class TaskServiceImpl implements TaskService {
* @param disableLevelId 失能等级id
* @param disableLevelId 失能等级id
* @param polNo 保单号
* @param polNo 保单号
* @param remark 备注
* @param remark 备注
* @param fileDataList 附件
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
void
updateReport
(
Integer
reportId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateDate
,
Integer
disableLevelId
,
String
polNo
,
String
remark
)
{
public
void
updateReport
(
Integer
reportId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateDate
,
Integer
disableLevelId
,
String
polNo
,
String
remark
,
List
<
ChFndAttach
>
fileDataList
)
{
//update鉴定报告
//update鉴定报告
ChAprReport
chAprReport
=
aprReportMapper
.
selectById
(
reportId
);
ChAprReport
chAprReport
=
aprReportMapper
.
selectById
(
reportId
);
chAprReport
.
setDisableLevelId
(
disableLevelId
);
chAprReport
.
setDisableLevelId
(
disableLevelId
);
...
@@ -183,6 +191,10 @@ public class TaskServiceImpl implements TaskService {
...
@@ -183,6 +191,10 @@ public class TaskServiceImpl implements TaskService {
chAprReport
.
setRemark
(
remark
);
chAprReport
.
setRemark
(
remark
);
chAprReport
.
setEvaluateTime
(
evaluateDate
);
chAprReport
.
setEvaluateTime
(
evaluateDate
);
aprReportMapper
.
updateById
(
chAprReport
);
aprReportMapper
.
updateById
(
chAprReport
);
//附件上传
if
(
fileDataList
!=
null
&&
fileDataList
.
size
()
>
0
)
{
this
.
updateAttachs
(
fileDataList
,
chAprReport
.
getReportId
().
longValue
());
}
//修改鉴定报告人员(有就update,没有就insert)
//修改鉴定报告人员(有就update,没有就insert)
List
<
ChAprPersonInfo
>
personInfos
=
personInfoMapper
.
selectList
(
new
QueryWrapper
<
ChAprPersonInfo
>().
eq
(
"report_id"
,
reportId
).
orderByDesc
(
"info_id"
));
List
<
ChAprPersonInfo
>
personInfos
=
personInfoMapper
.
selectList
(
new
QueryWrapper
<
ChAprPersonInfo
>().
eq
(
"report_id"
,
reportId
).
orderByDesc
(
"info_id"
));
if
(
person1
!=
null
)
{
if
(
person1
!=
null
)
{
...
@@ -227,11 +239,24 @@ public class TaskServiceImpl implements TaskService {
...
@@ -227,11 +239,24 @@ public class TaskServiceImpl implements TaskService {
}
}
/**
/**
* 调用feign api来修改附件数据
*/
private
void
updateAttachs
(
List
<
ChFndAttach
>
fileDataList
,
Long
ctrlId
)
{
// 新增附件修改逻辑
AttachUpdateVo
attachUpdateVo
=
new
AttachUpdateVo
();
attachUpdateVo
.
setCtrlId
(
ctrlId
);
attachUpdateVo
.
setAttachType
(
AttachType
.
TASK
.
getUploadType
());
attachUpdateVo
.
setChFndAttachs
(
fileDataList
);
attachFeignService
.
updateAttachs
(
attachUpdateVo
);
}
/**
* 评定任务分配
* 评定任务分配
*
*
* @param taskId 评定任务id
* @param taskId 评定任务id
* @param empId 评定人员id
* @param empId 评定人员id
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
Result
<
Object
>
allotTask
(
String
taskId
,
String
empId
)
{
public
Result
<
Object
>
allotTask
(
String
taskId
,
String
empId
)
{
ChAprEmp
chAprEmp
=
aprEmpMapper
.
selectById
(
empId
);
ChAprEmp
chAprEmp
=
aprEmpMapper
.
selectById
(
empId
);
...
@@ -314,6 +339,7 @@ public class TaskServiceImpl implements TaskService {
...
@@ -314,6 +339,7 @@ public class TaskServiceImpl implements TaskService {
return
taskMapper
.
taskGroupInfoList
(
groupNumber
);
return
taskMapper
.
taskGroupInfoList
(
groupNumber
);
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
Result
<
Object
>
taskGroup
(
Integer
pushId
,
Integer
status
,
Short
refuseReason
,
String
refuseRemark
)
{
public
Result
<
Object
>
taskGroup
(
Integer
pushId
,
Integer
status
,
Short
refuseReason
,
String
refuseRemark
)
{
ChAprTaskPush
chAprTaskPush
=
taskPushMapper
.
selectById
(
pushId
);
ChAprTaskPush
chAprTaskPush
=
taskPushMapper
.
selectById
(
pushId
);
...
@@ -340,6 +366,7 @@ public class TaskServiceImpl implements TaskService {
...
@@ -340,6 +366,7 @@ public class TaskServiceImpl implements TaskService {
* @param refuseReason 拒绝原因id
* @param refuseReason 拒绝原因id
* @param refuseRemark 拒绝备注
* @param refuseRemark 拒绝备注
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
Result
<
Object
>
taskGroupByGroup
(
String
groupNumber
,
Integer
status
,
Short
refuseReason
,
String
refuseRemark
)
{
public
Result
<
Object
>
taskGroupByGroup
(
String
groupNumber
,
Integer
status
,
Short
refuseReason
,
String
refuseRemark
)
{
List
<
ChAprTaskPush
>
pushList
=
taskPushMapper
.
selectList
(
new
QueryWrapper
<
ChAprTaskPush
>().
eq
(
"group_number"
,
groupNumber
));
List
<
ChAprTaskPush
>
pushList
=
taskPushMapper
.
selectList
(
new
QueryWrapper
<
ChAprTaskPush
>().
eq
(
"group_number"
,
groupNumber
));
...
@@ -391,6 +418,7 @@ public class TaskServiceImpl implements TaskService {
...
@@ -391,6 +418,7 @@ public class TaskServiceImpl implements TaskService {
* @param timeDate 预约日期
* @param timeDate 预约日期
* @param remark 备注
* @param remark 备注
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
Result
<
Object
>
updatePushTimeAndRemark
(
String
pushId
,
Date
timeDate
,
String
remark
)
{
public
Result
<
Object
>
updatePushTimeAndRemark
(
String
pushId
,
Date
timeDate
,
String
remark
)
{
ChAprTaskPush
chAprTaskPush
=
taskPushMapper
.
selectById
(
pushId
);
ChAprTaskPush
chAprTaskPush
=
taskPushMapper
.
selectById
(
pushId
);
...
...
assessment/assessment-service/src/main/resources/bootstrap.yml
View file @
cb5ff3d6
spring
:
spring
:
main
:
#允许存在多个Feign调用相同Service的接口
allow-bean-definition-overriding
:
true
devtools
:
devtools
:
restart
:
restart
:
enabled
:
true
enabled
:
true
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/DisableAssessmentCriteriaService.java
View file @
cb5ff3d6
...
@@ -4,7 +4,6 @@ import cn.hutool.json.JSONArray;
...
@@ -4,7 +4,6 @@ import cn.hutool.json.JSONArray;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.vo.governance.CfgAprVO
;
import
com.hungraim.ltc.pojo.vo.governance.CfgAprVO
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
/**
/**
* 失能评定标准service
* 失能评定标准service
...
@@ -13,7 +12,6 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -13,7 +12,6 @@ import org.springframework.transaction.annotation.Transactional;
*/
*/
@Service
@Service
public
interface
DisableAssessmentCriteriaService
{
public
interface
DisableAssessmentCriteriaService
{
@Transactional
()
void
addOrUpdateDisableAssessmentCriteria
(
Long
aprId
,
String
organId
,
String
estimateName
,
String
remark
,
Integer
status
,
JSONArray
project
);
void
addOrUpdateDisableAssessmentCriteria
(
Long
aprId
,
String
organId
,
String
estimateName
,
String
remark
,
Integer
status
,
JSONArray
project
);
Page
<
CfgAprVO
>
getDisableAssessmentCriteriaList
(
Page
<
CfgAprVO
>
page
,
String
organIds
,
String
aprName
,
String
status
);
Page
<
CfgAprVO
>
getDisableAssessmentCriteriaList
(
Page
<
CfgAprVO
>
page
,
String
organIds
,
String
aprName
,
String
status
);
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/SrvProgramService.java
View file @
cb5ff3d6
...
@@ -5,7 +5,6 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvProgram;
...
@@ -5,7 +5,6 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvProgram;
import
com.hungraim.ltc.pojo.vo.governance.ProgramDetailVo
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramDetailVo
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramListVo
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramListVo
;
import
com.hungraim.ltc.pojo.vo.governance.SvrSendListVo
;
import
com.hungraim.ltc.pojo.vo.governance.SvrSendListVo
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
import
java.util.List
;
...
@@ -64,7 +63,6 @@ public interface SrvProgramService {
...
@@ -64,7 +63,6 @@ public interface SrvProgramService {
* 添加或者修改服务方案
* 添加或者修改服务方案
* @param programDetailVo 包装对象
* @param programDetailVo 包装对象
*/
*/
@Transactional
()
void
addProgramAndProgramSetList
(
ProgramDetailVo
programDetailVo
);
void
addProgramAndProgramSetList
(
ProgramDetailVo
programDetailVo
);
/**
/**
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/SrvSendService.java
View file @
cb5ff3d6
...
@@ -7,7 +7,6 @@ import com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan;
...
@@ -7,7 +7,6 @@ import com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend
;
import
com.hungraim.ltc.pojo.vo.governance.DisableInfoTaskVO
;
import
com.hungraim.ltc.pojo.vo.governance.DisableInfoTaskVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvSendVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvSendVO
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
import
java.util.List
;
...
@@ -17,10 +16,8 @@ public interface SrvSendService extends IService<ChSrvSend> {
...
@@ -17,10 +16,8 @@ public interface SrvSendService extends IService<ChSrvSend> {
IPage
<
SrvSendVO
>
selectPage
(
ChDisableInfo
disableInfo
,
ChSrvOrgan
chSrvOrgan
,
ChSrvSend
chSrvSend
);
IPage
<
SrvSendVO
>
selectPage
(
ChDisableInfo
disableInfo
,
ChSrvOrgan
chSrvOrgan
,
ChSrvSend
chSrvSend
);
@Transactional
()
DisableInfoTaskVO
selectTaskById
(
Integer
disableInfoId
,
Integer
srvOrganId
);
DisableInfoTaskVO
selectTaskById
(
Integer
disableInfoId
,
Integer
srvOrganId
);
@Transactional
()
List
<
DisableInfoTaskVO
>
selectBydisableInfoId
(
Integer
disableInfoId
);
List
<
DisableInfoTaskVO
>
selectBydisableInfoId
(
Integer
disableInfoId
);
Long
selectMaxId
();
Long
selectMaxId
();
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/SrvTaskService.java
View file @
cb5ff3d6
...
@@ -3,7 +3,6 @@ package com.hungraim.ltc.governance.service;
...
@@ -3,7 +3,6 @@ package com.hungraim.ltc.governance.service;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.vo.governance.*
;
import
com.hungraim.ltc.pojo.vo.governance.*
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -26,6 +25,5 @@ public interface SrvTaskService {
...
@@ -26,6 +25,5 @@ public interface SrvTaskService {
/**
/**
* 新增或者修改服务计划
* 新增或者修改服务计划
*/
*/
@Transactional
()
void
addOrUpdateSrvTask
(
SrvTaskInfoListVO
param
);
void
addOrUpdateSrvTask
(
SrvTaskInfoListVO
param
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/DisableAssessmentCriteriaServiceImpl.java
View file @
cb5ff3d6
...
@@ -15,6 +15,7 @@ import com.hungraim.ltc.pojo.entity.assessment.ChCfgAprItemClause;
...
@@ -15,6 +15,7 @@ import com.hungraim.ltc.pojo.entity.assessment.ChCfgAprItemClause;
import
com.hungraim.ltc.pojo.vo.governance.CfgAprVO
;
import
com.hungraim.ltc.pojo.vo.governance.CfgAprVO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -35,6 +36,7 @@ public class DisableAssessmentCriteriaServiceImpl implements DisableAssessmentCr
...
@@ -35,6 +36,7 @@ public class DisableAssessmentCriteriaServiceImpl implements DisableAssessmentCr
@Autowired
@Autowired
private
ChCfgAprItemClauseMapper
chCfgAprItemClauseMapper
;
private
ChCfgAprItemClauseMapper
chCfgAprItemClauseMapper
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
void
addOrUpdateDisableAssessmentCriteria
(
Long
aprId
,
String
organId
,
String
estimateName
,
String
remark
,
Integer
status
,
JSONArray
project
)
{
public
void
addOrUpdateDisableAssessmentCriteria
(
Long
aprId
,
String
organId
,
String
estimateName
,
String
remark
,
Integer
status
,
JSONArray
project
)
{
Date
date
=
new
Date
();
Date
date
=
new
Date
();
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvProgramServiceImpl.java
View file @
cb5ff3d6
...
@@ -14,6 +14,7 @@ import com.hungraim.ltc.pojo.vo.governance.ProgramSetAndProjectVo;
...
@@ -14,6 +14,7 @@ import com.hungraim.ltc.pojo.vo.governance.ProgramSetAndProjectVo;
import
com.hungraim.ltc.pojo.vo.governance.SvrSendListVo
;
import
com.hungraim.ltc.pojo.vo.governance.SvrSendListVo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -59,6 +60,7 @@ public class SrvProgramServiceImpl implements SrvProgramService {
...
@@ -59,6 +60,7 @@ public class SrvProgramServiceImpl implements SrvProgramService {
return
chSrvProgramMapper
.
getProgramDetailWithAdd
(
disabInfoId
,
srvOrganId
);
return
chSrvProgramMapper
.
getProgramDetailWithAdd
(
disabInfoId
,
srvOrganId
);
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
void
addProgramAndProgramSetList
(
ProgramDetailVo
programDetailVo
)
{
public
void
addProgramAndProgramSetList
(
ProgramDetailVo
programDetailVo
)
{
Date
date
=
new
Date
();
Date
date
=
new
Date
();
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvTaskServiceImpl.java
View file @
cb5ff3d6
...
@@ -12,6 +12,7 @@ import com.hungraim.ltc.pojo.vo.governance.*;
...
@@ -12,6 +12,7 @@ import com.hungraim.ltc.pojo.vo.governance.*;
import
com.hungraim.ltc.util.DateUtils
;
import
com.hungraim.ltc.util.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -80,6 +81,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -80,6 +81,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
return
srvTaskInfoList
;
return
srvTaskInfoList
;
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
void
addOrUpdateSrvTask
(
SrvTaskInfoListVO
param
)
{
public
void
addOrUpdateSrvTask
(
SrvTaskInfoListVO
param
)
{
String
programId
=
param
.
getProgramId
();
String
programId
=
param
.
getProgramId
();
...
...
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