记得上下班打卡 | 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
ba71531d
Commit
ba71531d
authored
Nov 23, 2021
by
Tice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 主办管理
parent
bb6af255
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
195 additions
and
5 deletions
+195
-5
MerchantSponsorsListParam.java
...e/merchant/dto/param/admin/MerchantSponsorsListParam.java
+23
-0
MerchantFieldsController.java
...ontroller/zhengzai/merchant/MerchantFieldsController.java
+1
-1
MerchantSponsorsController.java
...troller/zhengzai/merchant/MerchantSponsorsController.java
+62
-2
list.html
...c/main/resources/templates/zhengzai/kylin/field/list.html
+2
-2
detail.html
...in/resources/templates/zhengzai/kylin/sponsor/detail.html
+10
-0
list.html
...main/resources/templates/zhengzai/kylin/sponsor/list.html
+97
-0
No files found.
liquidnet-bus-api/liquidnet-service-merchant-api/src/main/java/com/liquidnet/service/merchant/dto/param/admin/MerchantSponsorsListParam.java
0 → 100644
View file @
ba71531d
package
com
.
liquidnet
.
service
.
merchant
.
dto
.
param
.
admin
;
public
class
MerchantSponsorsListParam
{
/**
* sponsor_id
*/
private
String
sponsorId
;
/**
* 上线状态 [0-下线 1-上线]
*/
private
Integer
isOnline
;
public
String
getSponsorId
()
{
return
sponsorId
;
}
public
Integer
getIsOnline
()
{
return
isOnline
;
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/merchant/MerchantFieldsController.java
View file @
ba71531d
...
@@ -45,7 +45,7 @@ public class MerchantFieldsController extends BaseController {
...
@@ -45,7 +45,7 @@ public class MerchantFieldsController extends BaseController {
@RequiresPermissions
(
"merchant:field:view"
)
@RequiresPermissions
(
"merchant:field:view"
)
@GetMapping
()
@GetMapping
()
public
String
applyL
ist
()
{
public
String
l
ist
()
{
return
prefix
+
"/list"
;
return
prefix
+
"/list"
;
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/merchant/MerchantSponsorsController.java
View file @
ba71531d
package
com
.
liquidnet
.
client
.
admin
.
web
.
controller
.
zhengzai
.
merchant
;
package
com
.
liquidnet
.
client
.
admin
.
web
.
controller
.
zhengzai
.
merchant
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.liquidnet.client.admin.common.annotation.Log
;
import
com.liquidnet.client.admin.common.core.controller.BaseController
;
import
com.liquidnet.client.admin.common.core.controller.BaseController
;
import
com.liquidnet.client.admin.common.core.page.TableDataInfo
;
import
com.liquidnet.client.admin.common.enums.BusinessType
;
import
com.liquidnet.client.admin.zhengzai.merchant.service.IMerchantSponsorsAdminService
;
import
com.liquidnet.service.merchant.dto.param.admin.MerchantSponsorsListParam
;
import
com.liquidnet.service.merchant.dto.vo.MerchantSponsorsVo
;
import
com.liquidnet.service.merchant.entity.MerchantSponsors
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.web.bind.annotation.*
;
@Api
(
tags
=
"主办管理"
)
@Api
(
tags
=
"主办管理"
)
@Controller
@Controller
@RequestMapping
(
"merchant/sponsor
s
"
)
@RequestMapping
(
"merchant/sponsor"
)
public
class
MerchantSponsorsController
extends
BaseController
{
public
class
MerchantSponsorsController
extends
BaseController
{
private
final
String
prefix
=
"zhengzai/kylin/sponsor"
;
@Autowired
IMerchantSponsorsAdminService
merchantSponsorsAdminService
;
@RequiresPermissions
(
"merchant:sponsor:view"
)
@GetMapping
()
public
String
list
()
{
return
prefix
+
"/list"
;
}
@Log
(
title
=
"主办列表"
,
businessType
=
BusinessType
.
LIST
)
@RequiresPermissions
(
"merchant:sponsor:list"
)
@PostMapping
(
"/list"
)
@ResponseBody
public
TableDataInfo
list
(
MerchantSponsorsListParam
param
)
{
startPage
();
return
getDataTable
(
merchantSponsorsAdminService
.
list
(
Wrappers
.
lambdaQuery
(
MerchantSponsors
.
class
)
.
eq
(
param
.
getSponsorId
().
length
()
>
0
,
MerchantSponsors:
:
getSponsorId
,
param
.
getSponsorId
())
.
eq
(
param
.
getIsOnline
()
>=
0
,
MerchantSponsors:
:
getIsOnline
,
param
.
getIsOnline
())
.
select
(
MerchantSponsors:
:
getSponsorId
,
MerchantSponsors:
:
getIsOnline
,
MerchantSponsors:
:
getUid
,
MerchantSponsors:
:
getName
,
MerchantSponsors:
:
getLogo
,
MerchantSponsors:
:
getCreatedAt
)
));
}
@Log
(
title
=
"主办详情"
,
businessType
=
BusinessType
.
DETAIL
)
@RequiresPermissions
(
"merchant:sponsor:detail"
)
@GetMapping
(
value
=
"/details/{sponsorId}"
)
public
String
detail
(
@PathVariable
(
"sponsorId"
)
String
sponsorId
,
ModelMap
mmap
)
{
LambdaQueryWrapper
<
MerchantSponsors
>
sponsorsLambdaQueryWrapper
=
Wrappers
.
lambdaQuery
(
MerchantSponsors
.
class
);
sponsorsLambdaQueryWrapper
.
eq
(
MerchantSponsors:
:
getSponsorId
,
sponsorId
);
MerchantSponsors
sponsors
=
merchantSponsorsAdminService
.
getOne
(
sponsorsLambdaQueryWrapper
);
MerchantSponsorsVo
sponsorsVo
=
MerchantSponsorsVo
.
getNew
();
sponsorsVo
.
copy
(
sponsors
);
mmap
.
put
(
"sponsorInfo"
,
sponsorsVo
);
return
prefix
+
"/detail"
;
}
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/field/list.html
View file @
ba71531d
...
@@ -72,14 +72,14 @@
...
@@ -72,14 +72,14 @@
},
},
{
{
field
:
'isOnline'
,
field
:
'isOnline'
,
title
:
'
类型
'
,
title
:
'
上线状态
'
,
formatter
:
function
(
value
,
row
,
index
)
{
formatter
:
function
(
value
,
row
,
index
)
{
return
$
.
table
.
selectDictLabel
(
dicFieldIsOnline
,
value
);
return
$
.
table
.
selectDictLabel
(
dicFieldIsOnline
,
value
);
}
}
},
},
{
{
field
:
'claimStatus'
,
field
:
'claimStatus'
,
title
:
'状态'
,
title
:
'
认领
状态'
,
formatter
:
function
(
value
,
row
,
index
)
{
formatter
:
function
(
value
,
row
,
index
)
{
return
$
.
table
.
selectDictLabel
(
dicFieldClaimStatus
,
value
);
return
$
.
table
.
selectDictLabel
(
dicFieldClaimStatus
,
value
);
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/sponsor/detail.html
0 → 100644
View file @
ba71531d
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/sponsor/list.html
0 → 100644
View file @
ba71531d
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
xmlns:shiro=
"http://www.pollix.at/thymeleaf/shiro"
>
<head>
<th:block
th:include=
"include :: header('主办列表')"
/>
</head>
<body
class=
"gray-bg"
>
<div
class=
"container-div"
>
<div
class=
"row"
>
<div
class=
"col-sm-12 search-collapse"
>
<form
id=
"formId"
>
<div
class=
"select-list"
>
<ul>
<li>
<label>
主办Id:
</label>
<input
type=
"text"
name=
"fieldId"
/>
</li>
<li>
上线状态:
<select
name=
"isOnline"
th:with=
"type=${@dict.getType('zhengzai_sponsor_is_online')}"
>
<option
value=
"all"
>
所有
</option>
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
th:value=
"${dict.dictValue}"
></option>
</select>
</li>
<li>
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
class=
"fa fa-search"
></i>
搜索
</a>
<a
class=
"btn btn-warning btn-rounded btn-sm"
onclick=
"$.form.reset()"
><i
class=
"fa fa-refresh"
></i>
重置
</a>
</li>
</ul>
</div>
</form>
</div>
<div
class=
"col-sm-12 select-table table-bordered"
>
<table
id=
"bootstrap-table"
></table>
</div>
</div>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
var
dicSponsorIsOnline
=
[[
$
{@
dict
.
getType
(
'zhengzai_sponsor_is_online'
)}]];
var
detailFlag
=
[[
$
{@
permission
.
hasPermi
(
'merchant:sponsor:detail'
)}]];
var
prefix
=
ctx
+
"merchant/sponsor"
;
$
(
function
()
{
var
options
=
{
url
:
prefix
+
"/list"
,
detailUrl
:
prefix
+
"/details/{id}"
,
sortName
:
"createdAt"
,
sortOrder
:
"desc"
,
modalName
:
"-主办列表"
,
columns
:
[
{
checkbox
:
true
},
{
field
:
'sponsorId'
,
title
:
'主办id'
},
{
field
:
'name'
,
title
:
'主办名称'
},
{
field
:
'isOnline'
,
title
:
'上线状态'
,
formatter
:
function
(
value
,
row
,
index
)
{
return
$
.
table
.
selectDictLabel
(
dicSponsorIsOnline
,
value
);
}
},
{
field
:
'createdAt'
,
title
:
'创建时间'
,
sortable
:
true
,
formatter
:
function
(
value
,
row
,
index
)
{
return
$
.
common
.
sprintf
(
"<span>%s</span>"
,
null
!=
value
?
value
.
substring
(
0
,
19
)
:
value
);
}
},
{
title
:
'操作'
,
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-info btn-xs '
+
detailFlag
+
'" href="javascript:void(0)" onclick="$.operate.detailTab(
\'
'
+
row
.
sponsorId
+
'
\'
)"></i>查看</a> '
);
return
actions
.
join
(
''
);
}
}]
};
$
.
table
.
init
(
options
);
});
</script>
</body>
</html>
\ No newline at end of file
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