Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
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
gavelinfo
kwell-mes
Commits
65b2a2bc
Commit
65b2a2bc
authored
May 16, 2022
by
yff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增测试页面跳转接口
parent
9124ea7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
0 deletions
+91
-0
GpcsController.java
.../main/java/com/gavel/kwell/controller/GpcsController.java
+91
-0
No files found.
gavel/src/main/java/com/gavel/kwell/controller/GpcsController.java
0 → 100644
View file @
65b2a2bc
package
com
.
gavel
.
kwell
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gavel.common.BaseURL
;
import
com.gavel.common.SystemOperation
;
import
com.gavel.common.annotation.ResourcePermissions
;
import
com.gavel.common.base.controller.BaseController
;
import
com.gavel.common.converter.DataConvert
;
import
com.gavel.common.utils.StringUtils
;
import
com.gavel.common.utils.ThreadContext
;
import
com.gavel.kwell.service.GpfkService
;
import
com.gavel.kwell.vo.GpfkCondition
;
import
com.gavel.kwell.vo.GpfkVO
;
import
com.gavel.persistence.sql.RecordSet
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
@Controller
@RequestMapping
(
"kmes/csfk"
)
public
class
GpcsController
extends
BaseController
{
@Autowired
private
GpfkService
gpfkService
;
@ResourcePermissions
()
@RequestMapping
(
"/index"
)
public
String
index
()
{
return
"kmes/gpcs/index"
;
}
@ResourcePermissions
()
@RequestMapping
(
"/zpindex"
)
public
String
jyindex
()
{
return
"kmes/gpcs/jyindex"
;
}
@ResourcePermissions
({
SystemOperation
.
BottonResource
.
ADD
})
@RequestMapping
(
"/add"
)
public
String
add
()
{
return
"kmes/gpjy/edit"
;
}
@ResourcePermissions
({
SystemOperation
.
BottonResource
.
EDIT
})
@RequestMapping
(
"/edit"
)
public
String
edit
()
{
return
"kmes/gpjy/edit"
;
}
@RequestMapping
(
"/gx"
)
public
String
gx
()
{
return
"kmes/gpjy/gx"
;
}
@RequestMapping
(
value
=
BaseURL
.
QUERY
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
Object
query
(
@RequestBody
GpfkCondition
condition
)
{
RecordSet
<
GpfkVO
>
records
=
gpfkService
.
query
(
condition
);
return
buildReturnData
(
records
,
GpfkVO
.
class
);
}
@ResourcePermissions
({
"21"
})
@RequestMapping
(
value
=
"/delGpjy"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
Object
delGpjy
(
@RequestBody
JSONObject
param
)
{
String
gpfkid
=
param
.
getString
(
"gpfkid"
);
if
(
StringUtils
.
isEmpty
(
gpfkid
)){
setReturnMessage
(
"请选择一条工票信息进行操作!"
);
return
returnData
();
}
gpfkService
.
delGpfkById
(
gpfkid
);
return
ThreadContext
.
getReturnData
();
}
@ResourcePermissions
(
SystemOperation
.
BottonResource
.
EXPORT
)
@RequestMapping
(
value
=
BaseURL
.
EXPORT
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
void
export
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@RequestBody
JSONObject
param
)
throws
Exception
{
GpfkCondition
condition
=
DataConvert
.
getCondition
(
param
.
getJSONObject
(
"condition"
),
GpfkCondition
.
class
);
RecordSet
<
GpfkVO
>
records
=
gpfkService
.
query
(
condition
);
doExport
(
request
,
response
,
param
,
records
.
getRecords
());
}
}
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