Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
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
吴迪
gs1-office-web-sit
Commits
3a7be664
Commit
3a7be664
authored
Nov 30, 2021
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】首页接口提交
parent
5164814b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
0 deletions
+72
-0
ProductionController.java
...ffice/modules/manage/controller/ProductionController.java
+38
-0
DateUtils.java
src/main/java/io/office/modules/manage/utils/DateUtils.java
+13
-0
ProductionVo.java
...ava/io/office/modules/manage/vo/request/ProductionVo.java
+21
-0
No files found.
src/main/java/io/office/modules/manage/controller/ProductionController.java
0 → 100644
View file @
3a7be664
package
io
.
office
.
modules
.
manage
.
controller
;
import
io.office.common.utils.R
;
import
io.office.modules.app.annotation.Login
;
import
io.office.modules.manage.vo.request.DomesticCodeDetailRequest
;
import
io.office.modules.manage.vo.request.ProductionVo
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
javax.servlet.http.HttpServletRequest
;
/**
*
* @description:
*
* @author wudi
* @date 13:42 2021/11/30
*/
@Controller
@RequestMapping
(
"production/api"
)
public
class
ProductionController
{
@Login
@RequestMapping
(
"/search"
)
public
String
search
(
@RequestBody
ProductionVo
productionVo
)
{
return
"redirect:http://search.anccnet.com/searchResult2.aspx?keyword="
+
productionVo
.
getKeyword
();
}
}
src/main/java/io/office/modules/manage/utils/DateUtils.java
View file @
3a7be664
...
...
@@ -283,6 +283,19 @@ public class DateUtils {
return
dateStr
;
}
public
static
String
getAfterDayDate
(
String
days
,
String
format
)
{
int
daysInt
=
Integer
.
parseInt
(
days
);
Calendar
canlendar
=
Calendar
.
getInstance
();
canlendar
.
add
(
Calendar
.
DATE
,
daysInt
);
Date
date
=
canlendar
.
getTime
();
SimpleDateFormat
sdfd
=
new
SimpleDateFormat
(
format
);
String
dateStr
=
sdfd
.
format
(
date
);
return
dateStr
;
}
/**
* 得到n天之后是周几
*/
...
...
src/main/java/io/office/modules/manage/vo/request/ProductionVo.java
0 → 100644
View file @
3a7be664
package
io
.
office
.
modules
.
manage
.
vo
.
request
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
*
* @description:
*
* @author wudi
* @date 13:57 2021/11/30
*/
@Data
public
class
ProductionVo
implements
Serializable
{
private
String
keyword
;
private
String
captcha
;
private
String
uuid
;
}
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