记得上下班打卡 | 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
d4c9f7cf
Commit
d4c9f7cf
authored
Jan 07, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~API;
parent
600fd2cc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
GoblinStoreAdminController.java
...ontroller/zhengzai/goblin/GoblinStoreAdminController.java
+4
-2
store.html
...main/resources/templates/zhengzai/goblin/store/store.html
+1
-1
IGoblinStoreInfoService.java
...dmin/zhengzai/goblin/service/IGoblinStoreInfoService.java
+2
-1
GoblinStoreInfoServiceImpl.java
...ngzai/goblin/service/impl/GoblinStoreInfoServiceImpl.java
+3
-1
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/goblin/GoblinStoreAdminController.java
View file @
d4c9f7cf
...
@@ -51,6 +51,8 @@ public class GoblinStoreAdminController extends BaseController {
...
@@ -51,6 +51,8 @@ public class GoblinStoreAdminController extends BaseController {
if
(
StringUtils
.
isNotBlank
(
storeInfo
.
getCertType
()))
{
if
(
StringUtils
.
isNotBlank
(
storeInfo
.
getCertType
()))
{
lambdaQueryWrapper
.
eq
(
GoblinStoreInfo:
:
getCertType
,
storeInfo
.
getCertType
());
lambdaQueryWrapper
.
eq
(
GoblinStoreInfo:
:
getCertType
,
storeInfo
.
getCertType
());
}
}
lambdaQueryWrapper
.
eq
(
GoblinStoreInfo:
:
getDelFlg
,
"0"
);
lambdaQueryWrapper
.
notIn
(
GoblinStoreInfo:
:
getStatus
,
"0"
);
lambdaQueryWrapper
.
select
(
lambdaQueryWrapper
.
select
(
GoblinStoreInfo:
:
getStoreId
,
GoblinStoreInfo:
:
getStoreId
,
...
@@ -122,7 +124,7 @@ public class GoblinStoreAdminController extends BaseController {
...
@@ -122,7 +124,7 @@ public class GoblinStoreAdminController extends BaseController {
@ResponseBody
@ResponseBody
public
AjaxResult
audit
(
String
storeId
)
{
public
AjaxResult
audit
(
String
storeId
)
{
try
{
try
{
return
this
.
toAjax
(
goblinStoreInfoService
.
audit
(
storeId
,
String
.
valueOf
(
3
),
ShiroUtils
.
getLoginName
()));
return
this
.
toAjax
(
goblinStoreInfoService
.
audit
(
storeId
,
String
.
valueOf
(
3
),
ShiroUtils
.
getLoginName
()
,
null
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
toAjax
(
false
);
return
toAjax
(
false
);
}
}
...
@@ -138,7 +140,7 @@ public class GoblinStoreAdminController extends BaseController {
...
@@ -138,7 +140,7 @@ public class GoblinStoreAdminController extends BaseController {
@ResponseBody
@ResponseBody
public
AjaxResult
reject
(
String
storeId
,
String
reason
)
{
public
AjaxResult
reject
(
String
storeId
,
String
reason
)
{
try
{
try
{
return
this
.
toAjax
(
goblinStoreInfoService
.
audit
(
storeId
,
String
.
valueOf
(
2
),
ShiroUtils
.
getLoginName
()));
return
this
.
toAjax
(
goblinStoreInfoService
.
audit
(
storeId
,
String
.
valueOf
(
2
),
ShiroUtils
.
getLoginName
()
,
reason
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
toAjax
(
false
);
return
toAjax
(
false
);
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/goblin/store/store.html
View file @
d4c9f7cf
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
align
:
'center'
,
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
var
actions
=
[];
if
(
row
.
status
==
'1'
)
{
if
(
row
.
status
==
1
)
{
actions
.
push
(
'<a class="btn btn-primary btn-xs '
+
acceptFlg
+
'" href="javascript:void(0)" onclick="auditAccept(
\'
'
+
row
.
storeId
+
'
\'
)"><i class="fa fa-check"></i>通过</a> '
);
actions
.
push
(
'<a class="btn btn-primary btn-xs '
+
acceptFlg
+
'" href="javascript:void(0)" onclick="auditAccept(
\'
'
+
row
.
storeId
+
'
\'
)"><i class="fa fa-check"></i>通过</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
rejectFlg
+
'" href="javascript:void(0)" onclick="auditReject(
\'
'
+
row
.
storeId
+
'
\'
)"><i class="fa fa-close"></i>驳回</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
rejectFlg
+
'" href="javascript:void(0)" onclick="auditReject(
\'
'
+
row
.
storeId
+
'
\'
)"><i class="fa fa-close"></i>驳回</a> '
);
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/IGoblinStoreInfoService.java
View file @
d4c9f7cf
...
@@ -18,7 +18,8 @@ public interface IGoblinStoreInfoService extends IService<GoblinStoreInfo> {
...
@@ -18,7 +18,8 @@ public interface IGoblinStoreInfoService extends IService<GoblinStoreInfo> {
* @param storeId 店铺ID
* @param storeId 店铺ID
* @param status 店铺状态
* @param status 店铺状态
* @param operator 操作人
* @param operator 操作人
* @param reason 拒绝原因
* @return boolean
* @return boolean
*/
*/
boolean
audit
(
String
storeId
,
String
status
,
String
operator
);
boolean
audit
(
String
storeId
,
String
status
,
String
operator
,
String
reason
);
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/impl/GoblinStoreInfoServiceImpl.java
View file @
d4c9f7cf
...
@@ -36,19 +36,21 @@ public class GoblinStoreInfoServiceImpl extends ServiceImpl<GoblinStoreInfoMappe
...
@@ -36,19 +36,21 @@ public class GoblinStoreInfoServiceImpl extends ServiceImpl<GoblinStoreInfoMappe
@Override
@Override
@Transactional
@Transactional
public
boolean
audit
(
String
storeId
,
String
status
,
String
operator
)
{
public
boolean
audit
(
String
storeId
,
String
status
,
String
operator
,
String
reason
)
{
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
LambdaUpdateWrapper
<
GoblinStoreInfo
>
lambdaUpdateWrapper
=
Wrappers
.
lambdaUpdate
(
GoblinStoreInfo
.
class
);
LambdaUpdateWrapper
<
GoblinStoreInfo
>
lambdaUpdateWrapper
=
Wrappers
.
lambdaUpdate
(
GoblinStoreInfo
.
class
);
lambdaUpdateWrapper
.
eq
(
GoblinStoreInfo:
:
getStoreId
,
storeId
);
lambdaUpdateWrapper
.
eq
(
GoblinStoreInfo:
:
getStoreId
,
storeId
);
lambdaUpdateWrapper
.
eq
(
GoblinStoreInfo:
:
getStatus
,
1
);
lambdaUpdateWrapper
.
eq
(
GoblinStoreInfo:
:
getStatus
,
1
);
lambdaUpdateWrapper
.
set
(
GoblinStoreInfo:
:
getStatus
,
status
);
lambdaUpdateWrapper
.
set
(
GoblinStoreInfo:
:
getStatus
,
status
);
lambdaUpdateWrapper
.
set
(
GoblinStoreInfo:
:
getReason
,
reason
);
lambdaUpdateWrapper
.
set
(
GoblinStoreInfo:
:
getUpdatedBy
,
operator
);
lambdaUpdateWrapper
.
set
(
GoblinStoreInfo:
:
getUpdatedBy
,
operator
);
lambdaUpdateWrapper
.
set
(
GoblinStoreInfo:
:
getUpdatedAt
,
now
);
lambdaUpdateWrapper
.
set
(
GoblinStoreInfo:
:
getUpdatedAt
,
now
);
if
(
this
.
update
(
lambdaUpdateWrapper
))
{
if
(
this
.
update
(
lambdaUpdateWrapper
))
{
Query
query
=
Query
.
query
(
Criteria
.
where
(
"storeId"
).
is
(
storeId
));
Query
query
=
Query
.
query
(
Criteria
.
where
(
"storeId"
).
is
(
storeId
));
Update
update
=
Update
.
update
(
"status"
,
status
);
Update
update
=
Update
.
update
(
"status"
,
status
);
update
.
set
(
"reason"
,
reason
);
update
.
set
(
"updatedBy"
,
operator
);
update
.
set
(
"updatedBy"
,
operator
);
update
.
set
(
"updatedAt"
,
now
);
update
.
set
(
"updatedAt"
,
now
);
UpdateResult
updateResult
=
mongoTemplate
.
updateFirst
(
query
,
update
,
GoblinStoreInfoVo
.
class
.
getSimpleName
());
UpdateResult
updateResult
=
mongoTemplate
.
updateFirst
(
query
,
update
,
GoblinStoreInfoVo
.
class
.
getSimpleName
());
...
...
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