Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
894aa8b6
Commit
894aa8b6
authored
Apr 30, 2020
by
邓实川
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节判断优化
parent
e16bf212
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
7 deletions
+40
-7
src/main/java/cn/timer/api/controller/qyzx/QyzxBusinessController.java
+40
-7
src/main/java/cn/timer/api/controller/yggl/YgglController.java
+0
-0
No files found.
src/main/java/cn/timer/api/controller/qyzx/QyzxBusinessController.java
View file @
894aa8b6
...
@@ -32,6 +32,7 @@ import com.github.pagehelper.PageHelper;
...
@@ -32,6 +32,7 @@ import com.github.pagehelper.PageHelper;
import
cn.hutool.core.date.DateUnit
;
import
cn.hutool.core.date.DateUnit
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONUtil
;
import
cn.hutool.json.JSONUtil
;
...
@@ -111,7 +112,7 @@ public class QyzxBusinessController {
...
@@ -111,7 +112,7 @@ public class QyzxBusinessController {
QyzxEntInfoM
qyzxEntInfoM
=
QyzxEntInfoM
.
builder
().
build
()
QyzxEntInfoM
qyzxEntInfoM
=
QyzxEntInfoM
.
builder
().
build
()
.
selectOne
(
new
LambdaQueryWrapper
<
QyzxEntInfoM
>().
eq
(
QyzxEntInfoM:
:
getId
,
userBean
.
getOrgCode
()));
.
selectOne
(
new
LambdaQueryWrapper
<
QyzxEntInfoM
>().
eq
(
QyzxEntInfoM:
:
getId
,
userBean
.
getOrgCode
()));
Date
endTime
=
qyzxEntInfoM
.
getEndTime
();
Date
endTime
=
qyzxEntInfoM
.
getEndTime
();
Long
day
=
DateUtil
.
between
(
new
Date
(),
endTime
,
DateUnit
.
DAY
,
false
);
Long
day
=
DateUtil
.
between
(
new
Date
(),
endTime
,
DateUnit
.
DAY
,
false
);
Integer
level
=
qyzxEntInfoM
.
getLevel
();
Integer
level
=
qyzxEntInfoM
.
getLevel
();
Map
<
String
,
Object
>
map1
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
map1
=
new
HashMap
<
String
,
Object
>();
...
@@ -151,13 +152,22 @@ public class QyzxBusinessController {
...
@@ -151,13 +152,22 @@ public class QyzxBusinessController {
@GetMapping
(
value
=
"/getPayList/System"
)
@GetMapping
(
value
=
"/getPayList/System"
)
@ApiOperation
(
value
=
"获取系统续费商品列表"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"获取系统续费商品列表"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
Result
<
List
<
QyzxPayConten
t
>>
getPayListWithSystem
(
@CurrentUser
UserBean
userBean
)
{
public
Result
<
Map
<
String
,
Objec
t
>>
getPayListWithSystem
(
@CurrentUser
UserBean
userBean
)
{
List
<
QyzxPayContent
>
list
=
QyzxPayContent
.
builder
().
build
()
List
<
QyzxPayContent
>
list
1
=
QyzxPayContent
.
builder
().
build
()
.
selectList
(
new
LambdaQueryWrapper
<
QyzxPayContent
>().
eq
(
QyzxPayContent:
:
getPmid
,
3
)
.
select
(
.
selectList
(
new
LambdaQueryWrapper
<
QyzxPayContent
>().
eq
(
QyzxPayContent:
:
getPmid
,
3
)
QyzxPayContent:
:
getId
,
QyzxPayContent:
:
getContent
,
QyzxPayContent:
:
getNowPrice
,
.
eq
(
QyzxPayContent:
:
getSpecification
,
1
).
select
(
QyzxPayContent:
:
getId
,
QyzxPayContent:
:
getOriginalPrice
,
QyzxPayContent:
:
getSpecification
,
QyzxPayContent:
:
getNowPrice
,
QyzxPayContent:
:
getOriginalPrice
,
QyzxPayContent:
:
getExpiration
));
QyzxPayContent:
:
getExpiration
));
return
ResultUtil
.
data
(
list
,
"获取成功"
);
List
<
QyzxPayContent
>
list2
=
QyzxPayContent
.
builder
().
build
()
.
selectList
(
new
LambdaQueryWrapper
<
QyzxPayContent
>().
eq
(
QyzxPayContent:
:
getPmid
,
3
)
.
eq
(
QyzxPayContent:
:
getSpecification
,
2
).
select
(
QyzxPayContent:
:
getId
,
QyzxPayContent:
:
getNowPrice
,
QyzxPayContent:
:
getOriginalPrice
,
QyzxPayContent:
:
getExpiration
));
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"simple"
,
list1
);
map
.
put
(
"professional"
,
list2
);
return
ResultUtil
.
data
(
map
,
"获取成功"
);
}
}
@PostMapping
(
value
=
"/generateOrder"
)
@PostMapping
(
value
=
"/generateOrder"
)
...
@@ -211,10 +221,33 @@ public class QyzxBusinessController {
...
@@ -211,10 +221,33 @@ public class QyzxBusinessController {
return
ResultUtil
.
pageData
(
list
,
page
.
getTotal
(),
"查询成功"
);
return
ResultUtil
.
pageData
(
list
,
page
.
getTotal
(),
"查询成功"
);
}
}
public
static
void
main
(
String
[]
args
)
{
QyzxInvoiceData
qyzxInvoiceData
=
new
QyzxInvoiceData
();
qyzxInvoiceData
.
setBankAccount
(
"123"
);
qyzxInvoiceData
.
setBankName
(
"234"
);
if
(!
ObjectUtil
.
isAllNotEmpty
(
qyzxInvoiceData
,
qyzxInvoiceData
.
getBankAccount
(),
qyzxInvoiceData
.
getBankName
()))
{
System
.
out
.
println
(
"请完善发票信息!"
);
}
else
{
System
.
err
.
println
(
"可以,不错"
);
}
}
@PostMapping
(
value
=
"/invoicing"
)
@PostMapping
(
value
=
"/invoicing"
)
@ApiOperation
(
value
=
"开发票"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"开发票"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
QyzxInvoiceData
>
generateOrder
(
@CurrentUser
UserBean
userBean
,
public
Result
<
QyzxInvoiceData
>
generateOrder
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxInvoiceData
qyzxInvoiceData
)
{
@RequestBody
QyzxInvoiceData
qyzxInvoiceData
)
{
if
(!
ObjectUtil
.
isAllNotEmpty
(
qyzxInvoiceData
,
qyzxInvoiceData
.
getInvoiceTitle
(),
qyzxInvoiceData
.
getDutyParagraph
(),
qyzxInvoiceData
.
getCompanyAddress
(),
qyzxInvoiceData
.
getCompanyPhone
(),
qyzxInvoiceData
.
getBankName
(),
qyzxInvoiceData
.
getBankAccount
(),
qyzxInvoiceData
.
getInvoiceType
(),
qyzxInvoiceData
.
getInvoiceProject
(),
qyzxInvoiceData
.
getInvoiceValue
(),
qyzxInvoiceData
.
getConsignee
(),
qyzxInvoiceData
.
getConsigneePhone
(),
qyzxInvoiceData
.
getEmail
(),
qyzxInvoiceData
.
getShippingArea
(),
qyzxInvoiceData
.
getShippingAddress
(),
qyzxInvoiceData
.
getZipCode
()))
{
return
ResultUtil
.
error
(
"请完善发票信息!"
);
}
String
orderNo
=
qyzxInvoiceData
.
getOrderNo
();
String
orderNo
=
qyzxInvoiceData
.
getOrderNo
();
QyzxBuyRecord
qyzxBuyRecord
=
QyzxBuyRecord
.
builder
().
build
()
QyzxBuyRecord
qyzxBuyRecord
=
QyzxBuyRecord
.
builder
().
build
()
.
selectOne
(
new
LambdaQueryWrapper
<
QyzxBuyRecord
>().
eq
(
QyzxBuyRecord:
:
getOrderNo
,
orderNo
));
.
selectOne
(
new
LambdaQueryWrapper
<
QyzxBuyRecord
>().
eq
(
QyzxBuyRecord:
:
getOrderNo
,
orderNo
));
...
...
src/main/java/cn/timer/api/controller/yggl/YgglController.java
View file @
894aa8b6
This diff is collapsed.
Click to expand it.
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