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
b69a9085
Commit
b69a9085
authored
Nov 04, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检模块代码物理合并2
parent
277b2055
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
5 deletions
+38
-5
PlanController.java
...ejoin/amos/patrol/business/controller/PlanController.java
+8
-0
CheckPtListBo.java
...in/amos/patrol/business/entity/mybatis/CheckPtListBo.java
+12
-1
PointServiceImpl.java
...n/amos/patrol/business/service/impl/PointServiceImpl.java
+15
-4
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+3
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PlanController.java
View file @
b69a9085
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
controller
;
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
controller
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.patrol.business.constants.XJConstant
;
import
com.yeejoin.amos.patrol.business.constants.XJConstant
;
import
com.yeejoin.amos.patrol.business.feign.JcsFeignClient
;
import
com.yeejoin.amos.patrol.business.feign.JcsFeignClient
;
...
@@ -22,6 +23,7 @@ import org.springframework.data.domain.Page;
...
@@ -22,6 +23,7 @@ import org.springframework.data.domain.Page;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
java.util.*
;
import
java.util.*
;
...
@@ -139,6 +141,12 @@ public class PlanController extends AbstractBaseController {
...
@@ -139,6 +141,12 @@ public class PlanController extends AbstractBaseController {
@RequestMapping
(
value
=
"/addPlan"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/addPlan"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
public
CommonResponse
checkPlanAdd
(
@ApiParam
(
value
=
"巡检计划"
,
required
=
true
)
@RequestBody
Plan
param
)
{
public
CommonResponse
checkPlanAdd
(
@ApiParam
(
value
=
"巡检计划"
,
required
=
true
)
@RequestBody
Plan
param
)
{
try
{
try
{
if
(
param
.
getDayBegin
().
getTime
()>
param
.
getDayEnd
().
getTime
()){
throw
new
BadRequest
(
"开始时间不能大于结束时间"
);
}
String
userId
=
getUserId
();
String
userId
=
getUserId
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
loginOrgCode
=
getOrgCode
(
reginParams
);
String
loginOrgCode
=
getOrgCode
(
reginParams
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/entity/mybatis/CheckPtListBo.java
View file @
b69a9085
...
@@ -53,7 +53,18 @@ public class CheckPtListBo {
...
@@ -53,7 +53,18 @@ public class CheckPtListBo {
* 巡检点级别
* 巡检点级别
*/
*/
private
String
Level
;
private
String
Level
;
private
String
nonum
;
public
String
getNonum
()
{
return
nonum
;
}
public
void
setNonum
(
String
nonum
)
{
this
.
nonum
=
nonum
;
}
public
String
getPointID
()
{
public
String
getPointID
()
{
return
pointID
;
return
pointID
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PointServiceImpl.java
View file @
b69a9085
...
@@ -1377,13 +1377,23 @@ public class PointServiceImpl implements IPointService {
...
@@ -1377,13 +1377,23 @@ public class PointServiceImpl implements IPointService {
Page
<
CheckPtListBo
>
result
=
new
PageImpl
<
CheckPtListBo
>(
content
,
param
,
total
);
Page
<
CheckPtListBo
>
result
=
new
PageImpl
<
CheckPtListBo
>(
content
,
param
,
total
);
List
<
HashMap
<
String
,
Object
>>
colModel
=
new
ArrayList
<>();
List
<
HashMap
<
String
,
Object
>>
colModel
=
new
ArrayList
<>();
HashMap
<
String
,
Object
>
temph0
=
new
HashMap
<>();
temph0
.
put
(
"fid"
,
"nonum"
);
temph0
.
put
(
"dataIndex"
,
"nonum"
);
temph0
.
put
(
"name"
,
"编号"
);
temph0
.
put
(
"title"
,
"编号"
);
temph0
.
put
(
"type"
,
"nonum"
);
temph0
.
put
(
"key"
,
"nonum"
);
HashMap
<
String
,
Object
>
temph1
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
temph1
=
new
HashMap
<>();
temph1
.
put
(
"fid"
,
"
pointN
o"
);
temph1
.
put
(
"fid"
,
"
n
o"
);
temph1
.
put
(
"dataIndex"
,
"
pointN
o"
);
temph1
.
put
(
"dataIndex"
,
"
n
o"
);
temph1
.
put
(
"name"
,
"编号"
);
temph1
.
put
(
"name"
,
"编号"
);
temph1
.
put
(
"title"
,
"编号"
);
temph1
.
put
(
"title"
,
"编号"
);
temph1
.
put
(
"type"
,
"pointNo"
);
temph1
.
put
(
"type"
,
"no"
);
temph1
.
put
(
"key"
,
"pointNo"
);
temph1
.
put
(
"key"
,
"no"
);
temph1
.
put
(
"idVisable"
,
false
);
HashMap
<
String
,
Object
>
temph2
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
temph2
=
new
HashMap
<>();
temph2
.
put
(
"fid"
,
"name"
);
temph2
.
put
(
"fid"
,
"name"
);
temph2
.
put
(
"dataIndex"
,
"name"
);
temph2
.
put
(
"dataIndex"
,
"name"
);
...
@@ -1435,6 +1445,7 @@ public class PointServiceImpl implements IPointService {
...
@@ -1435,6 +1445,7 @@ public class PointServiceImpl implements IPointService {
temph8
.
put
(
"key"
,
"errorMsg"
);
temph8
.
put
(
"key"
,
"errorMsg"
);
colModel
.
add
(
temph1
);
colModel
.
add
(
temph1
);
colModel
.
add
(
temph0
);
colModel
.
add
(
temph2
);
colModel
.
add
(
temph2
);
// colModel.add(temph3);
// colModel.add(temph3);
colModel
.
add
(
temph4
);
colModel
.
add
(
temph4
);
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
b69a9085
...
@@ -262,7 +262,10 @@
...
@@ -262,7 +262,10 @@
pt.user_dept userDept
pt.user_dept userDept
FROM
FROM
p_plan_task pt
p_plan_task pt
LEFT JOIN p_plan_task_detail b
ON pt.id = b.task_no
INNER JOIN p_plan p ON pt.plan_id = p.id
INNER JOIN p_plan p ON pt.plan_id = p.id
where b.task_no is not null
) a
) a
<include
refid=
"plan-task-app-where"
/>
<include
refid=
"plan-task-app-where"
/>
<if
test=
"orderBy != null and orderBy != ''"
>
order by ${orderBy}
</if>
<if
test=
"orderBy != null and orderBy != ''"
>
order by ${orderBy}
</if>
...
...
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