Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0811506e
authored
Oct 26, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://zhangguoping@gitlab.dituhui.com/bsh/project/pr…
…oject.git into develop
2 parents
14164db2
6a8c296f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/PeaApiController.java
project-order/src/main/java/com/dituhui/pea/order/dto/param/OrderDTO.java
project-order/src/main/java/com/dituhui/pea/order/controller/PeaApiController.java
View file @
0811506
...
...
@@ -3,7 +3,6 @@ package com.dituhui.pea.order.controller;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.order.common.jackson.DateUtil
;
import
com.dituhui.pea.order.common.jackson.JsonUtil
;
import
com.dituhui.pea.order.dto.OrganizationTreeDTO
;
import
com.dituhui.pea.order.dto.param.*
;
import
com.dituhui.pea.order.service.EngineerCalendarService
;
import
com.dituhui.pea.order.service.PeaOuterAPIService
;
...
...
@@ -82,7 +81,17 @@ public class PeaApiController {
@PostMapping
(
"/capacity/query"
)
public
Result
<
CapacityQueryDTO
.
Result
>
capacityQuery
(
@Validated
@RequestBody
CapacityQueryDTO
.
Request
reqDTO
)
throws
IOException
{
//查询日期起止参数限制为一月
CapacityQueryDTO
.
Result
result
=
JsonUtil
.
parse
(
makeMap
.
get
(
reqDTO
.
getLocation
().
getLongitude
()
+
","
+
reqDTO
.
getLocation
().
getLatitude
()),
CapacityQueryDTO
.
Result
.
class
).
get
();
ArrayList
<
String
>
strings
=
new
ArrayList
<>();
strings
.
add
(
half_capacity
);
strings
.
add
(
day_capacity
);
strings
.
add
(
half_capacity2
);
strings
.
add
(
date_capacity
);
Random
random
=
new
Random
();
int
i
=
random
.
nextInt
(
4
);
CapacityQueryDTO
.
Result
result
=
JsonUtil
.
parse
(
strings
.
get
(
i
),
CapacityQueryDTO
.
Result
.
class
).
get
();
result
.
setParams
(
reqDTO
);
return
Result
.
success
(
result
);
}
...
...
project-order/src/main/java/com/dituhui/pea/order/dto/param/OrderDTO.java
View file @
0811506
...
...
@@ -126,6 +126,16 @@ public class OrderDTO {
private
String
description
;
/**
* 是否指定某个工程师/是否排除某个工程师 0:否 1:指定 2:排除 默认0
*/
private
int
isAppointEngineer
;
/**
* 指定某个工程师/排除某个工程师 codes
*/
private
List
<
String
>
appointEngineerCodes
;
/**
* 其他详细信息, 预留的其他详细信息,具体等BEAN提供
*/
private
Object
extraInfo
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment