Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
b9b4fbca
Commit
b9b4fbca
authored
Mar 18, 2024
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p_plan_task_detail表添加 执行人冗余字段,用于巡查统计页面展示
parent
1b4a158c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
PlanTaskDetailMapper.java
...amos/patrol/business/dao/mapper/PlanTaskDetailMapper.java
+1
-1
CheckServiceImpl.java
...n/amos/patrol/business/service/impl/CheckServiceImpl.java
+2
-2
patrol-3.6.0.xml
...m-patrol/src/main/resources/db/changelog/patrol-3.6.0.xml
+13
-0
plan_task_detail.xml
...-patrol/src/main/resources/db/mapper/plan_task_detail.xml
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/PlanTaskDetailMapper.java
View file @
b9b4fbca
...
@@ -6,7 +6,7 @@ import org.apache.ibatis.annotations.Param;
...
@@ -6,7 +6,7 @@ import org.apache.ibatis.annotations.Param;
public
interface
PlanTaskDetailMapper
extends
BaseMapper
{
public
interface
PlanTaskDetailMapper
extends
BaseMapper
{
void
finishTaskDetail
(
@Param
(
value
=
"planTaskDetailId"
)
long
planTaskDetailId
,
@Param
(
value
=
"pointId"
)
long
pointId
,
@Param
(
value
=
"planTaskId"
)
long
planTaskId
void
finishTaskDetail
(
@Param
(
value
=
"planTaskDetailId"
)
long
planTaskDetailId
,
@Param
(
value
=
"pointId"
)
long
pointId
,
@Param
(
value
=
"planTaskId"
)
long
planTaskId
,
@Param
(
value
=
"executorId"
)
String
executorId
);
,
@Param
(
value
=
"executorId"
)
String
executorId
,
@Param
(
value
=
"executorName"
)
String
executorName
);
Map
findPlanTaskByTaskIdAndPointId
(
@Param
(
value
=
"planTaskId"
)
long
planTaskId
,
@Param
(
value
=
"pointId"
)
long
pointId
);
Map
findPlanTaskByTaskIdAndPointId
(
@Param
(
value
=
"planTaskId"
)
long
planTaskId
,
@Param
(
value
=
"pointId"
)
long
pointId
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CheckServiceImpl.java
View file @
b9b4fbca
...
@@ -414,7 +414,7 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -414,7 +414,7 @@ public class CheckServiceImpl implements ICheckService {
checkService
.
saveCheckImg
(
imgList
);
checkService
.
saveCheckImg
(
imgList
);
}
}
if
(
check
.
getPlanTaskId
()
>
0
)
{
if
(
check
.
getPlanTaskId
()
>
0
)
{
planTaskDetailMapper
.
finishTaskDetail
(
Long
.
parseLong
(
detail
.
get
(
"planTaskDetailId"
).
toString
()),
requestParam
.
getPointId
(),
requestParam
.
getPlanTaskId
(),
user
.
getUserId
());
planTaskDetailMapper
.
finishTaskDetail
(
Long
.
parseLong
(
detail
.
get
(
"planTaskDetailId"
).
toString
()),
requestParam
.
getPointId
(),
requestParam
.
getPlanTaskId
(),
user
.
getUserId
()
,
user
.
getRealName
()
);
}
else
{
}
else
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
planTaskMapper
.
reformStatistics
(
user
.
getUserId
(),
sdf
.
format
(
new
Date
()),
requestParam
.
getOrgCode
());
planTaskMapper
.
reformStatistics
(
user
.
getUserId
(),
sdf
.
format
(
new
Date
()),
requestParam
.
getOrgCode
());
...
@@ -649,7 +649,7 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -649,7 +649,7 @@ public class CheckServiceImpl implements ICheckService {
checkService
.
saveCheckImg
(
imgList
);
checkService
.
saveCheckImg
(
imgList
);
}
}
if
(
check
.
getPlanTaskId
()
>
0
)
{
if
(
check
.
getPlanTaskId
()
>
0
)
{
planTaskDetailMapper
.
finishTaskDetail
(
Long
.
parseLong
(
detail
.
get
(
"planTaskDetailId"
).
toString
()),
requestParam
.
getPointId
(),
requestParam
.
getPlanTaskId
(),
requestParam
.
getUserId
());
planTaskDetailMapper
.
finishTaskDetail
(
Long
.
parseLong
(
detail
.
get
(
"planTaskDetailId"
).
toString
()),
requestParam
.
getPointId
(),
requestParam
.
getPlanTaskId
(),
requestParam
.
getUserId
()
,
requestParam
.
getUserName
()
);
}
else
{
}
else
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
planTaskMapper
.
reformStatistics
(
requestParam
.
getUserId
(),
sdf
.
format
(
new
Date
()),
requestParam
.
getOrgCode
());
planTaskMapper
.
reformStatistics
(
requestParam
.
getUserId
(),
sdf
.
format
(
new
Date
()),
requestParam
.
getOrgCode
());
...
...
amos-boot-system-patrol/src/main/resources/db/changelog/patrol-3.6.0.xml
View file @
b9b4fbca
...
@@ -95,4 +95,16 @@
...
@@ -95,4 +95,16 @@
ADD INDEX `idx_is_ok` (`is_ok`) USING BTREE;
ADD INDEX `idx_is_ok` (`is_ok`) USING BTREE;
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"zs"
id=
"20240318-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<indexExists
tableName=
"p_plan_task_detail"
indexName=
"executor_name"
/>
</not>
</preConditions>
<sql>
ALTER TABLE `p_plan_task_detail`
ADD COLUMN `executor_name` varchar(255) NULL COMMENT '执行人名称';
</sql>
</changeSet>
</databaseChangeLog>
</databaseChangeLog>
\ No newline at end of file
amos-boot-system-patrol/src/main/resources/db/mapper/plan_task_detail.xml
View file @
b9b4fbca
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.patrol.business.dao.mapper.PlanTaskDetailMapper"
>
<mapper
namespace=
"com.yeejoin.amos.patrol.business.dao.mapper.PlanTaskDetailMapper"
>
<update
id=
"finishTaskDetail"
>
<update
id=
"finishTaskDetail"
>
call updatePlanTask(#{planTaskId}, #{pointId}, #{planTaskDetailId} ,#{executorId})
call updatePlanTask(#{planTaskId}, #{pointId}, #{planTaskDetailId} ,#{executorId}
, #{executorName}
)
</update>
</update>
<select
id=
"findPlanTaskByTaskIdAndPointId"
resultType=
"Map"
>
<select
id=
"findPlanTaskByTaskIdAndPointId"
resultType=
"Map"
>
...
...
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