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
3e6c80e9
Commit
3e6c80e9
authored
Apr 01, 2022
by
yff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增加工相关页面Controller
parent
532295fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
0 deletions
+91
-0
GpjgController.java
.../main/java/com/gavel/kwell/controller/GpjgController.java
+91
-0
No files found.
gavel/src/main/java/com/gavel/kwell/controller/GpjgController.java
0 → 100644
View file @
3e6c80e9
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/jgfk"
)
public
class
GpjgController
extends
BaseController
{
@Autowired
private
GpfkService
gpfkService
;
@ResourcePermissions
()
@RequestMapping
(
"/index"
)
public
String
index
()
{
return
"kmes/jgfk/index"
;
}
@ResourcePermissions
()
@RequestMapping
(
"/zpindex"
)
public
String
jyindex
()
{
return
"kmes/jgfk/zpindex"
;
}
@ResourcePermissions
({
SystemOperation
.
BottonResource
.
ADD
})
@RequestMapping
(
"/add"
)
public
String
add
()
{
return
"kmes/jgfk/edit"
;
}
@ResourcePermissions
({
SystemOperation
.
BottonResource
.
EDIT
})
@RequestMapping
(
"/edit"
)
public
String
edit
()
{
return
"kmes/jgfk/edit"
;
}
@RequestMapping
(
"/gx"
)
public
String
gx
()
{
return
"kmes/jgfk/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
=
"/delJgfk"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
Object
delJgfk
(
@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