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
3bf50c54
Commit
3bf50c54
authored
Sep 22, 2021
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
计划状态查询修改
parent
1873fafc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
PlanController.java
.../amos/supervision/business/controller/PlanController.java
+10
-0
CheckRecordParam.java
...oin/amos/supervision/business/param/CheckRecordParam.java
+5
-1
InputItemServiceImpl.java
...pervision/business/service/impl/InputItemServiceImpl.java
+2
-2
dbTemplate_plan.xml
...ervision/src/main/resources/db/mapper/dbTemplate_plan.xml
+2
-0
No files found.
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 @
3bf50c54
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.supervision.business.controller;
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.supervision.business.controller;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
com.yeejoin.amos.supervision.common.enums.PlanStatusEnum
;
import
com.yeejoin.amos.supervision.core.common.request.AddPlanRequest
;
import
com.yeejoin.amos.supervision.core.common.request.AddPlanRequest
;
import
com.yeejoin.amos.supervision.core.common.response.PlanPointRespone
;
import
com.yeejoin.amos.supervision.core.common.response.PlanPointRespone
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
@@ -26,6 +27,8 @@ import com.yeejoin.amos.supervision.dao.entity.Plan;
...
@@ -26,6 +27,8 @@ import com.yeejoin.amos.supervision.dao.entity.Plan;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiParam
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
@RestController
@RestController
@RequestMapping
(
value
=
"/api/plan"
)
@RequestMapping
(
value
=
"/api/plan"
)
...
@@ -215,4 +218,11 @@ public class PlanController extends AbstractBaseController {
...
@@ -215,4 +218,11 @@ public class PlanController extends AbstractBaseController {
return
CommonResponseUtil
.
success
(
planRequest
);
return
CommonResponseUtil
.
success
(
planRequest
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"计划状态"
,
notes
=
"计划状态"
)
@RequestMapping
(
value
=
"/planStatus/list"
,
method
=
RequestMethod
.
GET
)
public
ResponseModel
getPlanStatusList
()
{
return
ResponseHelper
.
buildResponse
(
PlanStatusEnum
.
getEnumList
());
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/param/CheckRecordParam.java
View file @
3bf50c54
...
@@ -6,6 +6,7 @@ import lombok.Data;
...
@@ -6,6 +6,7 @@ import lombok.Data;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
@Data
@Data
public
class
CheckRecordParam
{
public
class
CheckRecordParam
{
@ApiModelProperty
(
value
=
"任务id"
,
required
=
true
)
@ApiModelProperty
(
value
=
"任务id"
,
required
=
true
)
...
@@ -26,8 +27,11 @@ public class CheckRecordParam {
...
@@ -26,8 +27,11 @@ public class CheckRecordParam {
@ApiModelProperty
(
value
=
"检查时间"
)
@ApiModelProperty
(
value
=
"检查时间"
)
private
String
checkTime
;
private
String
checkTime
;
/**
* 0 不结束,1结束
*/
@ApiModelProperty
(
value
=
"任务状态是否结束"
)
@ApiModelProperty
(
value
=
"任务状态是否结束"
)
private
String
planTaskStatus
;
// 0 不结束,1结束
private
String
planTaskStatus
;
/**
/**
* 检查项
* 检查项
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/InputItemServiceImpl.java
View file @
3bf50c54
...
@@ -160,9 +160,9 @@ public class InputItemServiceImpl implements IInputItemService {
...
@@ -160,9 +160,9 @@ public class InputItemServiceImpl implements IInputItemService {
targetInputItem
.
setName
(
targetInputItem
.
getName
()
+
"复制"
);
targetInputItem
.
setName
(
targetInputItem
.
getName
()
+
"复制"
);
targetInputItem
.
setCreateBy
(
userId
);
targetInputItem
.
setCreateBy
(
userId
);
targetInputItem
.
setCreateDate
(
new
Date
());
targetInputItem
.
setCreateDate
(
new
Date
());
if
(
targetInputItem
.
getItemNo
()
!=
null
&&
targetInputItem
.
getItemNo
().
indexOf
(
"-"
)
>
0
)
if
(
targetInputItem
.
getItemNo
()
!=
null
&&
targetInputItem
.
getItemNo
().
indexOf
(
"-"
)
>
0
)
{
targetInputItem
.
setItemNo
(
targetInputItem
.
getItemNo
().
substring
(
0
,
targetInputItem
.
getItemNo
().
indexOf
(
"-"
))
+
"-"
+
new
Date
().
getTime
());
targetInputItem
.
setItemNo
(
targetInputItem
.
getItemNo
().
substring
(
0
,
targetInputItem
.
getItemNo
().
indexOf
(
"-"
))
+
"-"
+
new
Date
().
getTime
());
else
{
}
else
{
targetInputItem
.
setItemNo
(
targetInputItem
.
getItemNo
()
+
"-"
+
new
Date
().
getTime
());
targetInputItem
.
setItemNo
(
targetInputItem
.
getItemNo
()
+
"-"
+
new
Date
().
getTime
());
}
}
inputItemDao
.
save
(
targetInputItem
);
inputItemDao
.
save
(
targetInputItem
);
...
...
amos-boot-system-supervision/src/main/resources/db/mapper/dbTemplate_plan.xml
View file @
3bf50c54
...
@@ -126,6 +126,7 @@
...
@@ -126,6 +126,7 @@
<if
test=
"userId!=null"
>
and FIND_IN_SET(#{userId},a.user_id)
</if>
<if
test=
"userId!=null"
>
and FIND_IN_SET(#{userId},a.user_id)
</if>
<if
test=
"orgCode!=null"
>
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</if>
<if
test=
"orgCode!=null"
>
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</if>
<if
test=
"ownerId!=null"
>
and b.owner_id = #{ownerId}
</if>
<if
test=
"ownerId!=null"
>
and b.owner_id = #{ownerId}
</if>
<if
test=
"planStatus!=null and planStatus != '' "
>
and a.`status` = #{planStatus}
</if>
</select>
</select>
<!--巡检计划查询 -->
<!--巡检计划查询 -->
<select
id=
"getPlanInfo"
resultType=
"java.util.HashMap"
>
<select
id=
"getPlanInfo"
resultType=
"java.util.HashMap"
>
...
@@ -174,6 +175,7 @@
...
@@ -174,6 +175,7 @@
<if
test=
"userId!=null"
>
and FIND_IN_SET(#{userId},a.user_id)
</if>
<if
test=
"userId!=null"
>
and FIND_IN_SET(#{userId},a.user_id)
</if>
<if
test=
"orgCode!=null"
>
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</if>
<if
test=
"orgCode!=null"
>
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</if>
<if
test=
"ownerId!=null"
>
and b.owner_id = #{ownerId}
</if>
<if
test=
"ownerId!=null"
>
and b.owner_id = #{ownerId}
</if>
<if
test=
"planStatus!=null and planStatus != '' "
>
and a.`status` = #{planStatus}
</if>
order by a.id desc
order by a.id desc
<choose>
<choose>
<when
test=
"pageSize==-1"
></when>
<when
test=
"pageSize==-1"
></when>
...
...
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