Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
82034e9d
Commit
82034e9d
authored
Jul 14, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:活码对接数据组
parent
5cf4f6c1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
223 additions
and
21 deletions
+223
-21
HmQrcodeController.java
...c/haoban/manage/web/controller/hm/HmQrcodeController.java
+11
-12
HmDetailClerkListQO.java
...gic/haoban/manage/web/qo/hm/data/HmDetailClerkListQO.java
+20
-7
HmQrcodeListQO.java
.../com/gic/haoban/manage/web/qo/hm/data/HmQrcodeListQO.java
+179
-0
HmTrendQO.java
.../java/com/gic/haoban/manage/web/qo/hm/data/HmTrendQO.java
+13
-2
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmQrcodeController.java
View file @
82034e9d
...
...
@@ -13,7 +13,6 @@ import com.gic.haoban.manage.api.constants.StatisticsApolloKeyConstant;
import
com.gic.haoban.manage.api.dto.hm.HmClerkRelationDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmQrcodeDTO
;
import
com.gic.haoban.manage.api.dto.hm.WxUserAddLogDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.WxUserAddLogSearchQDTO
;
import
com.gic.haoban.manage.api.dto.statistics.StatisticsDTO
;
...
...
@@ -25,6 +24,7 @@ import com.gic.haoban.manage.web.dto.HmOverviewDTO;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.qo.hm.HmQrcodeUpdateQO
;
import
com.gic.haoban.manage.web.qo.hm.data.HmDetailClerkListQO
;
import
com.gic.haoban.manage.web.qo.hm.data.HmQrcodeListQO
;
import
com.gic.haoban.manage.web.qo.hm.data.HmTrendQO
;
import
com.gic.haoban.manage.web.vo.hm.HmDetailClerkListVO
;
import
com.gic.haoban.manage.web.vo.hm.HmTrendVO
;
...
...
@@ -93,22 +93,22 @@ public class HmQrcodeController {
/**
* 列表
* @param hmQrcodeListQ
DT
O
* @param hmQrcodeListQO
* @return
*/
@RequestMapping
(
value
=
"list"
,
method
=
RequestMethod
.
POST
)
public
RestResponse
<
StatisticsDTO
>
list
(
@RequestBody
HmQrcodeListQ
DTO
hmQrcodeListQDT
O
)
{
public
RestResponse
<
StatisticsDTO
>
list
(
@RequestBody
HmQrcodeListQ
O
hmQrcodeListQ
O
)
{
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
hmQrcodeListQ
DTO
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
hmQrcodeListQ
DTO
.
setPageNo
(
hmQrcodeListQDT
O
.
getPageNo
());
hmQrcodeListQ
O
.
getInFields
()
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
hmQrcodeListQ
O
.
setPageNo
(
hmQrcodeListQ
O
.
getPageNo
());
List
<
String
>
storeList
=
staffApiService
.
getHaoBanStoreIdsRolesByClerkId
(
loginUser
.
getClerkId
(),
loginUser
.
getWxEnterpriseId
());
if
(
CollectionUtils
.
isEmpty
(
storeList
))
{
return
RestResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCode
.
ERR_100007
.
getCode
()),
HaoBanErrCode
.
ERR_100007
.
getMsg
());
}
if
(!
storeList
.
contains
(
"-1"
))
{
hmQrcodeListQ
DTO
.
setStoreId
(
storeList
);
hmQrcodeListQ
O
.
getInFields
()
.
setStoreId
(
storeList
);
}
StatisticsDTO
statisticsDTO
=
DataHttpUtil
.
post
(
StatisticsApolloKeyConstant
.
data_haoban_hm_list
,
hmQrcodeListQ
DT
O
);
StatisticsDTO
statisticsDTO
=
DataHttpUtil
.
post
(
StatisticsApolloKeyConstant
.
data_haoban_hm_list
,
hmQrcodeListQO
);
return
RestResponse
.
successResult
(
statisticsDTO
);
}
...
...
@@ -141,9 +141,9 @@ public class HmQrcodeController {
*/
@RequestMapping
(
value
=
"detail-data-statistics"
,
method
=
RequestMethod
.
POST
)
public
RestResponse
detailDataStatistics
(
@RequestBody
HmTrendQO
hmTrendQO
)
{
Integer
type
=
hmTrendQO
.
getType
();
Integer
type
=
hmTrendQO
.
get
InFields
().
get
Type
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
hmTrendQO
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
hmTrendQO
.
getInFields
().
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
StatisticsDTO
statisticsDTO
=
DataHttpUtil
.
post
(
StatisticsApolloKeyConstant
.
data_haoban_hm_overview
,
hmTrendQO
);
HmOverviewDTO
hmOverviewDTO
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
statisticsDTO
.
getOne
()),
HmOverviewDTO
.
class
);
HmTrendVO
hmTrendVO
=
EntityUtil
.
changeEntityNew
(
HmTrendVO
.
class
,
hmOverviewDTO
);
...
...
@@ -192,10 +192,9 @@ public class HmQrcodeController {
*/
@RequestMapping
(
value
=
"detail-clerk-list-page"
,
method
=
RequestMethod
.
POST
)
public
RestResponse
detailClerkListPage
(
@RequestBody
HmDetailClerkListQO
hmDetailClerkListQO
)
{
hmDetailClerkListQO
.
setEnterpriseId
(
AuthWebRequestUtil
.
getLoginUser
().
getEnterpriseId
());
hmDetailClerkListQO
.
getInFields
().
setEnterpriseId
(
AuthWebRequestUtil
.
getLoginUser
().
getEnterpriseId
());
hmDetailClerkListQO
.
setPageNo
(
hmDetailClerkListQO
.
getPageNum
());
Long
hmId
=
hmDetailClerkListQO
.
getHmId
();
Long
hmId
=
hmDetailClerkListQO
.
getInFields
().
getHmId
();
HmQrcodeDTO
hmQrcodeDTO
=
hmQrcodeApiService
.
queryById
(
hmId
);
if
(
hmQrcodeDTO
==
null
)
{
return
RestResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCode
.
ERR_8
.
getCode
()),
HaoBanErrCode
.
ERR_8
.
getMsg
());
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/hm/data/HmDetailClerkListQO.java
View file @
82034e9d
...
...
@@ -6,6 +6,26 @@ import java.io.Serializable;
public
class
HmDetailClerkListQO
extends
BasePageInfo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
5504797924745631906L
;
private
InFields
inFields
;
private
Integer
pageNo
;
public
InFields
getInFields
()
{
return
inFields
;
}
public
void
setInFields
(
InFields
inFields
)
{
this
.
inFields
=
inFields
;
}
public
Integer
getPageNo
()
{
return
pageNo
;
}
public
void
setPageNo
(
Integer
pageNo
)
{
this
.
pageNo
=
pageNo
;
}
public
static
class
InFields
{
private
String
enterpriseId
;
private
Long
hmId
;
private
String
startTime
;
...
...
@@ -13,7 +33,6 @@ public class HmDetailClerkListQO extends BasePageInfo implements Serializable {
private
String
storeSelect
;
private
String
clerkSelect
;
private
String
orderByField
;
private
Integer
pageNo
;
public
String
getEnterpriseId
()
{
return
enterpriseId
;
...
...
@@ -70,12 +89,6 @@ public class HmDetailClerkListQO extends BasePageInfo implements Serializable {
public
void
setOrderByField
(
String
orderByField
)
{
this
.
orderByField
=
orderByField
;
}
public
Integer
getPageNo
()
{
return
pageNo
;
}
public
void
setPageNo
(
Integer
pageNo
)
{
this
.
pageNo
=
pageNo
;
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/hm/data/HmQrcodeListQO.java
0 → 100644
View file @
82034e9d
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
hm
.
data
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
/**
* 活码(TabHaobanHmQrcode)实体类
*
* @author mozhu
* @since 2022-07-04 15:42:20
*/
public
class
HmQrcodeListQO
extends
BasePageInfo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
887910678030827375L
;
private
Integer
pageNo
;
private
InFields
inFields
;
public
Integer
getPageNo
()
{
return
pageNo
;
}
public
void
setPageNo
(
Integer
pageNo
)
{
this
.
pageNo
=
pageNo
;
}
public
InFields
getInFields
()
{
return
inFields
;
}
public
void
setInFields
(
InFields
inFields
)
{
this
.
inFields
=
inFields
;
}
public
static
class
InFields
{
private
Long
hmId
;
/**
* 1单人 2多人
*/
private
Integer
hmTypeInt
;
private
String
wxEnterpriseId
;
private
String
enterpriseId
;
private
String
hmSelect
;
private
String
storeSelect
;
private
String
clerkSelect
;
private
Date
startTime
;
private
Date
endTime
;
/**
* 0删除 1正常 2作废 3待生效
*/
private
Integer
statusFlagInt
;
private
String
orderByField
;
/**
* 活码分组
*/
private
Long
hmGroupId
;
private
List
<
String
>
storeId
;
public
Long
getHmId
()
{
return
hmId
;
}
public
void
setHmId
(
Long
hmId
)
{
this
.
hmId
=
hmId
;
}
public
Integer
getHmTypeInt
()
{
return
hmTypeInt
;
}
public
void
setHmTypeInt
(
Integer
hmTypeInt
)
{
this
.
hmTypeInt
=
hmTypeInt
;
}
public
String
getWxEnterpriseId
()
{
return
wxEnterpriseId
;
}
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
this
.
wxEnterpriseId
=
wxEnterpriseId
;
}
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
String
getHmSelect
()
{
return
hmSelect
;
}
public
void
setHmSelect
(
String
hmSelect
)
{
this
.
hmSelect
=
hmSelect
;
}
public
String
getStoreSelect
()
{
return
storeSelect
;
}
public
void
setStoreSelect
(
String
storeSelect
)
{
this
.
storeSelect
=
storeSelect
;
}
public
String
getClerkSelect
()
{
return
clerkSelect
;
}
public
void
setClerkSelect
(
String
clerkSelect
)
{
this
.
clerkSelect
=
clerkSelect
;
}
public
Date
getStartTime
()
{
return
startTime
;
}
public
void
setStartTime
(
Date
startTime
)
{
this
.
startTime
=
startTime
;
}
public
Date
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
Date
endTime
)
{
this
.
endTime
=
endTime
;
}
public
Integer
getStatusFlagInt
()
{
return
statusFlagInt
;
}
public
void
setStatusFlagInt
(
Integer
statusFlagInt
)
{
this
.
statusFlagInt
=
statusFlagInt
;
}
public
String
getOrderByField
()
{
return
orderByField
;
}
public
void
setOrderByField
(
String
orderByField
)
{
this
.
orderByField
=
orderByField
;
}
public
Long
getHmGroupId
()
{
return
hmGroupId
;
}
public
void
setHmGroupId
(
Long
hmGroupId
)
{
this
.
hmGroupId
=
hmGroupId
;
}
public
List
<
String
>
getStoreId
()
{
return
storeId
;
}
public
void
setStoreId
(
List
<
String
>
storeId
)
{
this
.
storeId
=
storeId
;
}
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/hm/data/HmTrendQO.java
View file @
82034e9d
...
...
@@ -4,13 +4,22 @@ import java.io.Serializable;
public
class
HmTrendQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
5002448176485217071L
;
private
InFields
inFields
;
public
InFields
getInFields
()
{
return
inFields
;
}
public
void
setInFields
(
InFields
inFields
)
{
this
.
inFields
=
inFields
;
}
public
static
class
InFields
{
private
String
enterpriseId
;
private
Long
hmId
;
private
String
startTime
;
private
String
endTime
;
private
Integer
type
;
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
...
...
@@ -50,4 +59,6 @@ public class HmTrendQO implements Serializable {
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
}
}
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