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
c8d99622
Commit
c8d99622
authored
Sep 15, 2021
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:plan状态属性统一
parent
58f70d3a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
12 deletions
+12
-12
Plan.java
...in/java/com/yeejoin/amos/supervision/dao/entity/Plan.java
+4
-4
PlanController.java
.../amos/supervision/business/controller/PlanController.java
+1
-1
RoutePointItemController.java
...rvision/business/controller/RoutePointItemController.java
+1
-1
IPlanDao.java
...in/amos/supervision/business/dao/repository/IPlanDao.java
+1
-1
PlanServiceImpl.java
...os/supervision/business/service/impl/PlanServiceImpl.java
+2
-2
SynDataServiceImpl.java
...supervision/business/service/impl/SynDataServiceImpl.java
+2
-2
IPlanService.java
...amos/supervision/business/service/intfc/IPlanService.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-supervision-api/src/main/java/com/yeejoin/amos/supervision/dao/entity/Plan.java
View file @
c8d99622
...
...
@@ -195,8 +195,8 @@ public class Plan extends BasicEntity {
/**
* 状态:0-已停用;1-正常
*/
@Column
(
name
=
"
[status]
"
)
private
byte
status
;
@Column
(
name
=
"
status
"
)
private
Integer
status
;
/**
* 用户编号
*/
...
...
@@ -562,11 +562,11 @@ public class Plan extends BasicEntity {
this
.
scoreFormula
=
scoreFormula
;
}
public
byte
getStatus
()
{
public
Integer
getStatus
()
{
return
this
.
status
;
}
public
void
setStatus
(
byte
status
)
{
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/controller/PlanController.java
View file @
c8d99622
...
...
@@ -196,7 +196,7 @@ public class PlanController extends AbstractBaseController {
@RequestMapping
(
value
=
"/setPlanStatus"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
public
CommonResponse
setPlanStatus
(
@ApiParam
(
value
=
"计划id"
)
@RequestParam
(
value
=
"planId"
,
required
=
false
)
Long
planId
,
@ApiParam
(
value
=
"计划状态"
)
@RequestParam
(
value
=
"status"
,
required
=
false
)
byte
status
)
{
@ApiParam
(
value
=
"计划状态"
)
@RequestParam
(
value
=
"status"
,
required
=
false
)
Integer
status
)
{
planService
.
setplanstatus
(
planId
,
status
);
return
CommonResponseUtil
.
success
();
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/controller/RoutePointItemController.java
View file @
c8d99622
...
...
@@ -52,7 +52,7 @@ public class RoutePointItemController extends AbstractBaseController {
@ApiOperation
(
value
=
"新增巡检路线点项关系"
,
notes
=
"新增巡检路线点项关系"
)
@PostMapping
(
value
=
"/addRoutePointItem"
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
addRoute
(
@ApiParam
(
value
=
"巡检计划"
,
required
=
true
)
@RequestBody
Plan
plan
,
@ApiParam
(
value
=
"检查项IDS"
,
required
=
tru
e
)
@RequestParam
List
<
Long
>
inputItemIds
,
@ApiParam
(
value
=
"检查项IDS"
,
required
=
fals
e
)
@RequestParam
List
<
Long
>
inputItemIds
,
@ApiParam
(
value
=
"是否保存并提交"
,
required
=
true
)
@RequestParam
Boolean
status
)
{
try
{
String
userId
=
getUserId
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/dao/repository/IPlanDao.java
View file @
c8d99622
...
...
@@ -32,7 +32,7 @@ public interface IPlanDao extends BaseDao<Plan, Long> {
@Modifying
@Transactional
@Query
(
value
=
"UPDATE p_plan SET `status` = (?1) WHERE id
IN
(?2)"
,
nativeQuery
=
true
)
@Query
(
value
=
"UPDATE p_plan SET `status` = (?1) WHERE id
=
(?2)"
,
nativeQuery
=
true
)
void
updatePlanStatus
(
Integer
status
,
Long
planId
);
Plan
findByOriginalId
(
String
originalId
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/PlanServiceImpl.java
View file @
c8d99622
...
...
@@ -241,7 +241,7 @@ public class PlanServiceImpl implements IPlanService {
for
(
long
planId
:
planIds
)
{
List
<
Plan
>
planList
=
getPlanByRouteId
(
planId
);
for
(
Plan
plan
:
planList
)
{
plan
.
setStatus
(
(
byte
)
1
);
plan
.
setStatus
(
1
);
planDao
.
save
(
plan
);
}
}
...
...
@@ -270,7 +270,7 @@ public class PlanServiceImpl implements IPlanService {
}
@Override
public
void
setplanstatus
(
Long
id
,
byte
status
)
{
public
void
setplanstatus
(
Long
id
,
Integer
status
)
{
Plan
oriPlan
=
planDao
.
findById
(
id
).
get
();
oriPlan
.
setStatus
(
status
);
planDao
.
save
(
oriPlan
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/SynDataServiceImpl.java
View file @
c8d99622
...
...
@@ -294,7 +294,7 @@ public class SynDataServiceImpl implements ISynDataService {
plan
.
setMinSpace
(
0
);
plan
.
setIsScore
(
"1"
);
plan
.
setError
(
0
);
plan
.
setStatus
(
Byte
.
parseByte
(
XJConstant
.
PLAN_STATUS_START
));
plan
.
setStatus
(
Integer
.
parseInt
(
XJConstant
.
PLAN_STATUS_START
));
plan
.
setNextGenDate
(
DateUtil
.
getIntervalDate
(
now
,
0
));
plan
.
setCreateBy
(
userId
.
toString
());
plan
.
setRemark1
(
synPlanParam
.
getRemark
());
...
...
@@ -381,7 +381,7 @@ public class SynDataServiceImpl implements ISynDataService {
public
CommonResponse
stopPlan
(
String
originalId
)
{
Plan
plan
=
iPlanDao
.
findByOriginalId
(
originalId
);
if
(
plan
!=
null
)
{
plan
.
setStatus
(
Byte
.
parseByte
(
XJConstant
.
PLAN_STATUS_STOP
));
plan
.
setStatus
(
Integer
.
parseInt
(
XJConstant
.
PLAN_STATUS_STOP
));
iPlanDao
.
save
(
plan
);
List
<
PlanTask
>
planTasks
=
iplanTaskDao
.
findByPlanId
(
plan
.
getId
());
if
(!
CollectionUtils
.
isEmpty
(
planTasks
))
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/intfc/IPlanService.java
View file @
c8d99622
...
...
@@ -76,7 +76,7 @@ public interface IPlanService {
/**
* 计划启用停用
*/
void
setplanstatus
(
Long
id
,
byte
status
);
void
setplanstatus
(
Long
id
,
Integer
status
);
/**
* 获取计划详情
...
...
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