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
e51b7e07
Commit
e51b7e07
authored
Feb 23, 2023
by
董天德
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_20230221_pdlr_xuhd' into dev_ch_master
parents
59546b82
5c383711
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
0 deletions
+61
-0
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+39
-0
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+3
-0
ChAprReport.java
.../com/hungraim/ltc/pojo/entity/assessment/ChAprReport.java
+9
-0
TaskReportVO.java
...ava/com/hungraim/ltc/pojo/vo/assessment/TaskReportVO.java
+10
-0
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
e51b7e07
package
com
.
hungraim
.
ltc
.
controller
;
package
com
.
hungraim
.
ltc
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.dao.AprReportMapper
;
import
com.hungraim.ltc.dto.QueryDto
;
import
com.hungraim.ltc.dto.QueryDto
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.assessment.*
;
import
com.hungraim.ltc.pojo.entity.assessment.*
;
...
@@ -15,6 +18,7 @@ import com.hungraim.ltc.service.TppesApiException;
...
@@ -15,6 +18,7 @@ import com.hungraim.ltc.service.TppesApiException;
import
com.hungraim.ltc.util.FileUtils
;
import
com.hungraim.ltc.util.FileUtils
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.TokenParsingUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.poi.ss.usermodel.Workbook
;
import
org.apache.poi.ss.usermodel.Workbook
;
...
@@ -39,6 +43,8 @@ public class TaskController {
...
@@ -39,6 +43,8 @@ public class TaskController {
@Autowired
@Autowired
private
TaskService
taskService
;
private
TaskService
taskService
;
@Autowired
private
AprReportMapper
aprReportMapper
;
/**
/**
* 评定任务分配、查询列表
* 评定任务分配、查询列表
...
@@ -241,6 +247,39 @@ public class TaskController {
...
@@ -241,6 +247,39 @@ public class TaskController {
}
}
/**
/**
* 添加评估公示信息
* @param taskId
* @return
*/
@RequestMapping
(
"/updateReportPublicityInfo"
)
public
Result
updateReportPublicityInfo
(
ChAprReport
updateChAprReport
,
@RequestHeader
(
"Authorization"
)
String
token
)
throws
TppesApiException
{
if
(
updateChAprReport
.
getReportId
()
==
null
){
return
Result
.
failed
(
"reportId不能为空!"
);
}
String
reportId
=
String
.
valueOf
(
updateChAprReport
.
getReportId
());
log
.
info
(
"reportId:"
+
reportId
);
ChAprReport
chAprReport
=
aprReportMapper
.
selectById
(
reportId
);
if
(
chAprReport
==
null
){
return
Result
.
failed
(
"未查询到信息!"
);
}
ChAprReport
newChAprReport
=
new
ChAprReport
();
Integer
userId
=
TokenParsingUtil
.
TokenParsing
(
token
,
"userId"
);
System
.
out
.
println
(
chAprReport
.
getPublicityUser
());
if
(
chAprReport
.
getPublicityUser
()
==
null
){
newChAprReport
.
setPublicityUser
(
userId
);
//当前登录人
newChAprReport
.
setPublicityTime
(
new
Date
());
}
newChAprReport
.
setPublicityStartTime
(
updateChAprReport
.
getPublicityStartTime
());
newChAprReport
.
setPublicityEndTime
(
updateChAprReport
.
getPublicityEndTime
());
newChAprReport
.
setPublicityLcd
(
new
Date
());
//更新时间
newChAprReport
.
setPublicityLcu
(
userId
);
//更新人
newChAprReport
.
setReportId
(
updateChAprReport
.
getReportId
());
aprReportMapper
.
updateById
(
newChAprReport
);
return
Result
.
success
();
}
/**
* 评定任务分配
* 评定任务分配
*
*
* @param taskId 评定任务id,如果多条以逗号(,)分隔
* @param taskId 评定任务id,如果多条以逗号(,)分隔
...
...
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
e51b7e07
...
@@ -187,6 +187,9 @@
...
@@ -187,6 +187,9 @@
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE info.acpt_srv_city = dis.DISTRICT_CODE) acptSrvCity,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE info.acpt_srv_city = dis.DISTRICT_CODE) acptSrvCity,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE info.acpt_srv_area = dis.DISTRICT_CODE) acptSrvArea,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE info.acpt_srv_area = dis.DISTRICT_CODE) acptSrvArea,
lev.DISABLE_LEVEL_NAME riskLevel,
lev.DISABLE_LEVEL_NAME riskLevel,
report.PUBLICITY_START_TIME publicityStartTime,
report.PUBLICITY_END_TIME publicityEndTime,
report.PUBLICITY_TIME publicityTime,
report.EFF_TIME effTime
report.EFF_TIME effTime
FROM ch_apr_report report
FROM ch_apr_report report
LEFT JOIN CH_APR_TASK task ON report.TASK_ID = task.TASK_ID
LEFT JOIN CH_APR_TASK task ON report.TASK_ID = task.TASK_ID
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/assessment/ChAprReport.java
View file @
e51b7e07
...
@@ -5,6 +5,9 @@ import com.baomidou.mybatisplus.annotation.KeySequence;
...
@@ -5,6 +5,9 @@ import com.baomidou.mybatisplus.annotation.KeySequence;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.Date
;
@Data
@Data
@TableName
(
"CH_APR_REPORT"
)
@TableName
(
"CH_APR_REPORT"
)
...
@@ -24,8 +27,10 @@ public class ChAprReport {
...
@@ -24,8 +27,10 @@ public class ChAprReport {
private
Integer
cfgModeId
;
private
Integer
cfgModeId
;
private
java
.
util
.
Date
evaluateTime
;
private
java
.
util
.
Date
evaluateTime
;
private
String
remark
;
private
String
remark
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
java
.
util
.
Date
publicityStartTime
;
private
java
.
util
.
Date
publicityStartTime
;
private
java
.
util
.
Date
evaluationTime
;
private
java
.
util
.
Date
evaluationTime
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
java
.
util
.
Date
publicityEndTime
;
private
java
.
util
.
Date
publicityEndTime
;
private
java
.
util
.
Date
fcd
;
private
java
.
util
.
Date
fcd
;
private
Integer
srvModeId
;
private
Integer
srvModeId
;
...
@@ -44,4 +49,8 @@ public class ChAprReport {
...
@@ -44,4 +49,8 @@ public class ChAprReport {
private
String
checkRemark
;
private
String
checkRemark
;
private
Integer
taskId
;
private
Integer
taskId
;
private
Integer
lcu
;
private
Integer
lcu
;
private
java
.
util
.
Date
publicityTime
;
private
Integer
publicityUser
;
private
Date
publicityLcd
;
private
Integer
publicityLcu
;
}
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/assessment/TaskReportVO.java
View file @
e51b7e07
...
@@ -73,6 +73,16 @@ public class TaskReportVO {
...
@@ -73,6 +73,16 @@ public class TaskReportVO {
//评估类型
//评估类型
private
Integer
evaluateType
;
private
Integer
evaluateType
;
//公示开始时间
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
publicityStartTime
;
//公示结束时间
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
publicityEndTime
;
//公示时间
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
publicityTime
;
private
Map
<
String
,
Object
>
chAprReportFractions
;
private
Map
<
String
,
Object
>
chAprReportFractions
;
//录入时间
//录入时间
...
...
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