记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
edeb9eca
Commit
edeb9eca
authored
Oct 12, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时 过滤 券状态
parent
46003f2b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
120 additions
and
8 deletions
+120
-8
ToolsBaseController.java
...in/web/controller/zhengzai/tools/ToolsBaseController.java
+35
-0
fun1.html
...web/src/main/resources/templates/zhengzai/tools/fun1.html
+34
-0
tools.html
...eb/src/main/resources/templates/zhengzai/tools/tools.html
+45
-0
CandyUserCouponBasicDto.java
.../liquidnet/service/candy/dto/CandyUserCouponBasicDto.java
+0
-2
CouponBaseUtil.java
...java/com/liquidnet/service/candy/util/CouponBaseUtil.java
+6
-6
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/tools/ToolsBaseController.java
0 → 100644
View file @
edeb9eca
package
com
.
liquidnet
.
client
.
admin
.
web
.
controller
.
zhengzai
.
tools
;
import
com.liquidnet.client.admin.common.core.controller.BaseController
;
import
com.liquidnet.client.admin.common.core.domain.AjaxResult
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.web.bind.annotation.*
;
@Controller
@RequestMapping
(
"/tools"
)
public
class
ToolsBaseController
extends
BaseController
{
private
String
prefix
=
"zhengzai/tools"
;
@GetMapping
()
public
String
tools
()
{
return
prefix
+
"/tools"
;
}
@GetMapping
(
value
=
"/details/{id}"
)
public
String
detailsRoadShow
(
@PathVariable
(
"id"
)
Integer
id
,
ModelMap
mmap
)
{
if
(
id
==
1
)
{
return
prefix
+
"/fun1"
;
}
else
{
return
prefix
+
"/edit"
;
}
}
@PostMapping
(
"/export/mobile"
)
@ResponseBody
public
AjaxResult
exportMobile
(
Integer
mobileType
)
{
System
.
out
.
println
(
mobileType
);
return
toAjax
(
mobileType
);
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/tools/fun1.html
0 → 100644
View file @
edeb9eca
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<th:block
th:include=
"include :: header('工具库')"
/>
</head>
<body
class=
"white-bg"
>
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<div
class=
"form-group"
>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"1"
name=
"mobileType"
checked
>
购票用户
</label>
</div>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"2"
name=
"mobileType"
>
下单用户
</label>
</div>
</div>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"/tools"
;
function
submitHandler
()
{
// $.operate.save(prefix + "/export/mobile", $('#form-fun1-edit').serialize());
var
param
=
{
"mobileType"
:
document
.
getElementsByName
(
"mobileType"
)[
0
].
checked
?
1
:
2
};
// $.operate.save(prefix + "/export/mobile", param);
$
.
operate
.
post
(
prefix
+
"/export/mobile"
,
param
,
function
(
res
)
{
});
}
</script>
</body>
</html>
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/tools/tools.html
0 → 100644
View file @
edeb9eca
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<th:block
th:include=
"include :: header('工具库')"
/>
</head>
<style>
td
{
horiz-align
:
center
;
text-align
:
left
;
padding
:
10px
;
}
</style>
<body
class=
"white-bg"
>
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<form
class=
"form-horizontal m"
id=
"form-member-edit"
>
<div
class=
"form-group"
>
<button
id=
"fun1"
type=
"button"
class=
"btn btn-w-m btn-success"
href=
"javascript:void(0)"
onclick=
"$.operate.edit(1)"
>
导出演出订单手机号
</button>
</div>
</form>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"tools/"
;
console
.
log
(
ctx
);
var
options
=
{
url
:
prefix
,
modalName
:
""
,
updateUrl
:
prefix
+
"details/{id}"
};
$
.
table
.
init
(
options
);
var
fun1Flag
=
[[
$
{@
permission
.
hasPermi
(
'tools:fun1'
)}]];
if
(
fun1Flag
==
"hidden"
)
{
document
.
getElementById
(
"fun1"
).
style
.
display
=
"none"
;
}
</script>
</body>
</html>
liquidnet-bus-do/liquidnet-service-candy-do/src/main/java/com/liquidnet/service/candy/dto/CandyUserCouponBasicDto.java
View file @
edeb9eca
...
@@ -163,8 +163,6 @@ public class CandyUserCouponBasicDto implements Serializable, Cloneable {
...
@@ -163,8 +163,6 @@ public class CandyUserCouponBasicDto implements Serializable, Cloneable {
this
.
setUid
(
uid
);
this
.
setUid
(
uid
);
this
.
setState
(
1
);
this
.
setState
(
1
);
this
.
setBindAt
(
LocalDateTime
.
now
());
// TODO: 2021/9/1
this
.
setBindAt
(
commonCouponBasicDto
.
getEffectAt
());
this
.
setBindAt
(
commonCouponBasicDto
.
getEffectAt
());
this
.
setDuedAt
(
commonCouponBasicDto
.
getExpireAt
());
this
.
setDuedAt
(
commonCouponBasicDto
.
getExpireAt
());
...
...
liquidnet-bus-service/liquidnet-service-candy/liquidnet-service-candy-impl/src/main/java/com/liquidnet/service/candy/util/CouponBaseUtil.java
View file @
edeb9eca
...
@@ -255,13 +255,13 @@ public class CouponBaseUtil {
...
@@ -255,13 +255,13 @@ public class CouponBaseUtil {
//券状态
//券状态
Integer
data
;
Integer
data
;
if
(
state
.
equals
(
1
))
{
if
(
state
.
equals
(
1
))
{
if
(
currentTime
.
isAfter
(
expireAt
))
{
//
if (currentTime.isAfter(expireAt)) {
data
=
3
;
//
data = 3;
}
else
if
(
currentTime
.
isBefore
(
effectAt
))
{
//
} else if (currentTime.isBefore(effectAt)) {
data
=
31
;
//
data = 31;
}
else
{
//
} else {
data
=
state
;
data
=
state
;
}
//
}
}
else
{
}
else
{
data
=
state
;
data
=
state
;
}
}
...
...
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