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
7d4dc912
Commit
7d4dc912
authored
Jun 13, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
续期订单操作日志记录
parent
0fa69fbe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
11 deletions
+44
-11
RenewalUserQDTO.java
...c/haoban/manage/api/dto/qdto/licence/RenewalUserQDTO.java
+12
-0
TabHaobanRenewalUserDao.xml
...ice/src/main/resources/mapper/TabHaobanRenewalUserDao.xml
+1
-5
LicenceOrderController.java
...manage/web/controller/licence/LicenceOrderController.java
+27
-6
RenewalUserQO.java
...a/com/gic/haoban/manage/web/qo/licence/RenewalUserQO.java
+4
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/qdto/licence/RenewalUserQDTO.java
View file @
7d4dc912
...
@@ -20,6 +20,18 @@ public class RenewalUserQDTO extends BasePageInfo implements Serializable {
...
@@ -20,6 +20,18 @@ public class RenewalUserQDTO extends BasePageInfo implements Serializable {
* wx企业Id
* wx企业Id
*/
*/
private
String
wxEnterpriseId
;
private
String
wxEnterpriseId
;
/**
* 订单id
*/
private
Long
orderId
;
public
Long
getOrderId
()
{
return
orderId
;
}
public
void
setOrderId
(
Long
orderId
)
{
this
.
orderId
=
orderId
;
}
public
String
getSearchParam
()
{
public
String
getSearchParam
()
{
return
searchParam
;
return
searchParam
;
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanRenewalUserDao.xml
View file @
7d4dc912
...
@@ -210,14 +210,10 @@
...
@@ -210,14 +210,10 @@
select
select
renewal_id, wx_enterprise_id, wx_user_id, order_id, phone, name, postion, invalid_flag, invalid_code, invalid_msg, update_time, create_time, delete_flag
renewal_id, wx_enterprise_id, wx_user_id, order_id, phone, name, postion, invalid_flag, invalid_code, invalid_msg, update_time, create_time, delete_flag
from tab_haoban_renewal_user
from tab_haoban_renewal_user
<where>
where wx_enterprise_id = #{wxEnterpriseId} and order_id = #{orderId} and delete_flag = 0 and invalid_flag = 1
<if
test=
"searchParam != null"
>
<if
test=
"searchParam != null"
>
and (phone like CONCAT('%',#{searchParam},'%') or name like CONCAT('%',#{searchParam},'%'))
and (phone like CONCAT('%',#{searchParam},'%') or name like CONCAT('%',#{searchParam},'%'))
</if>
</if>
<if
test=
"wxEnterpriseId != null"
>
and wx_enterprise_id = #{wxEnterpriseId}
</if>
</where>
</select>
</select>
</mapper>
</mapper>
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/licence/LicenceOrderController.java
View file @
7d4dc912
...
@@ -48,6 +48,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -48,6 +48,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
/**
/**
...
@@ -104,7 +105,7 @@ public class LicenceOrderController {
...
@@ -104,7 +105,7 @@ public class LicenceOrderController {
* 新增订单
* 新增订单
*
*
* @param licenceOrderQO
* @param licenceOrderQO
* @return JSONObject key:orderId 和 price
* @return JSONObject key:orderId 和 price
和 invalidUserList
*/
*/
@RequestMapping
(
"licence-order-saveOrUpdate"
)
@RequestMapping
(
"licence-order-saveOrUpdate"
)
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_LICENCE_ORDER
,
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_LICENCE_ORDER
,
...
@@ -123,12 +124,22 @@ public class LicenceOrderController {
...
@@ -123,12 +124,22 @@ public class LicenceOrderController {
if
(
response
.
isSuccess
())
{
if
(
response
.
isSuccess
())
{
JSONObject
object
=
JSONObject
.
parseObject
(
response
.
getResult
(),
JSONObject
.
class
);
JSONObject
object
=
JSONObject
.
parseObject
(
response
.
getResult
(),
JSONObject
.
class
);
String
time
=
""
;
String
time
=
""
;
String
logValue
=
null
;
if
(
licenceOrderQO
.
getTimeType
()
==
1
)
{
if
(
licenceOrderQO
.
getTimeType
()
==
1
)
{
time
=
licenceOrderQO
.
getTimeValue
()
+
"个月"
;
time
=
licenceOrderQO
.
getTimeValue
()
+
"个月"
;
}
else
{
}
else
if
(
licenceOrderQO
.
getTimeType
()
==
2
)
{
time
=
licenceOrderQO
.
getTimeValue
()
+
"天"
;
time
=
licenceOrderQO
.
getTimeValue
()
+
"天"
;
}
else
{
//将秒级时间戳转换位Date类型
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
DateUtil
.
FORMAT_DATE_10
);
String
date_time
=
formatter
.
format
(
new
Date
(
Long
.
valueOf
(
licenceOrderQO
.
getTimeValue
())
*
1000L
));
time
=
"指定到期时间"
+
date_time
+
" 23:59:59"
;
}
if
(
licenceOrderQO
.
getOrderType
()
==
1
){
logValue
=
"【购买企微许可账号】:订单编号ZH"
+
object
.
getString
(
"orderId"
)
+
",企业员工账号"
+
licenceOrderQO
.
getExternalContactCount
()
+
"个,时长"
+
time
;
}
else
if
(
licenceOrderQO
.
getOrderType
()
==
2
){
logValue
=
"【续期企微许可账号】:订单编号ZH"
+
object
.
getString
(
"orderId"
)
+
",企业员工账号"
+
licenceOrderQO
.
getStaffIdList
().
size
()
+
"个,时长"
+
time
;
}
}
String
logValue
=
"【购买企微许可账号】:订单编号ZH"
+
object
.
getString
(
"orderId"
)
+
",企业员工账号"
+
licenceOrderQO
.
getExternalContactCount
()
+
"个,时长"
+
time
;
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logValue
);
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logValue
);
return
RestResponse
.
successResult
(
object
);
return
RestResponse
.
successResult
(
object
);
}
}
...
@@ -182,7 +193,12 @@ public class LicenceOrderController {
...
@@ -182,7 +193,12 @@ public class LicenceOrderController {
if
(
response
.
isSuccess
())
{
if
(
response
.
isSuccess
())
{
Boolean
result
=
licenceOrderApiService
.
updateLicenceOrderType
(
orderId
,
type
,
enterpriseId
,
wxEnterpriseId
,
clerkName
,
1
).
getResult
();
Boolean
result
=
licenceOrderApiService
.
updateLicenceOrderType
(
orderId
,
type
,
enterpriseId
,
wxEnterpriseId
,
clerkName
,
1
).
getResult
();
//操作日志记录
//操作日志记录
String
logValue
=
"【取消购买企微许可账号订单】:订单编号"
+
dto
.
getOrderNumber
()
+
",取消时间"
+
DateUtil
.
dateToStr
(
new
Date
(),
DateUtil
.
FORMAT_DATETIME_19
);
String
logValue
=
null
;
if
(
dto
.
getOrderType
()
==
1
){
logValue
=
"【取消购买企微许可账号订单】:订单编号"
+
dto
.
getOrderNumber
()
+
",取消时间"
+
DateUtil
.
dateToStr
(
new
Date
(),
DateUtil
.
FORMAT_DATETIME_19
);
}
else
{
logValue
=
"【取消续期企微许可账号订单】:订单编号"
+
dto
.
getOrderNumber
()
+
",取消时间"
+
DateUtil
.
dateToStr
(
new
Date
(),
DateUtil
.
FORMAT_DATETIME_19
);
}
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logValue
);
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logValue
);
return
RestResponse
.
successResult
(
result
);
return
RestResponse
.
successResult
(
result
);
}
}
...
@@ -212,7 +228,12 @@ public class LicenceOrderController {
...
@@ -212,7 +228,12 @@ public class LicenceOrderController {
String
clerkName
=
loginUser
.
getClerkName
();
String
clerkName
=
loginUser
.
getClerkName
();
ServiceResponse
<
Boolean
>
response
=
licenceOrderApiService
.
uploadLicenceOrderVoucher
(
orderId
,
voucher
,
enterpriseId
,
wxEnterpriseId
,
clerkName
);
ServiceResponse
<
Boolean
>
response
=
licenceOrderApiService
.
uploadLicenceOrderVoucher
(
orderId
,
voucher
,
enterpriseId
,
wxEnterpriseId
,
clerkName
);
if
(
response
.
isSuccess
())
{
if
(
response
.
isSuccess
())
{
String
logValue
=
"【上传购买企微许可账号支付凭证】:订单编号"
+
dto
.
getOrderNumber
()
+
",上传时间"
+
DateUtil
.
dateToStr
(
new
Date
(),
DateUtil
.
FORMAT_DATETIME_19
);
String
logValue
=
null
;
if
(
dto
.
getOrderType
()
==
1
){
logValue
=
"【上传购买企微许可账号支付凭证】:订单编号"
+
dto
.
getOrderNumber
()
+
",上传时间"
+
DateUtil
.
dateToStr
(
new
Date
(),
DateUtil
.
FORMAT_DATETIME_19
);
}
else
{
logValue
=
"【上传续期企微许可账号支付凭证】:订单编号"
+
dto
.
getOrderNumber
()
+
",上传时间"
+
DateUtil
.
dateToStr
(
new
Date
(),
DateUtil
.
FORMAT_DATETIME_19
);
}
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logValue
);
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logValue
);
return
RestResponse
.
successResult
(
true
);
return
RestResponse
.
successResult
(
true
);
}
}
...
@@ -379,7 +400,7 @@ public class LicenceOrderController {
...
@@ -379,7 +400,7 @@ public class LicenceOrderController {
return
RestResponse
.
successResult
(
response
.
getResult
());
return
RestResponse
.
successResult
(
response
.
getResult
());
}
}
/**
/**
* 分页查询
订单
列表
* 分页查询
续期成员
列表
*/
*/
@RequestMapping
(
"renewal-user-page"
)
@RequestMapping
(
"renewal-user-page"
)
public
RestResponse
<
Page
<
RenewalUserVO
>>
getRenewalUserPage
(
@RequestBody
RenewalUserQO
renewalUserQO
)
{
public
RestResponse
<
Page
<
RenewalUserVO
>>
getRenewalUserPage
(
@RequestBody
RenewalUserQO
renewalUserQO
)
{
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/licence/RenewalUserQO.java
View file @
7d4dc912
...
@@ -19,4 +19,8 @@ public class RenewalUserQO extends BasePageInfo implements Serializable {
...
@@ -19,4 +19,8 @@ public class RenewalUserQO extends BasePageInfo implements Serializable {
* 员工姓名或手机号查询
* 员工姓名或手机号查询
*/
*/
private
String
searchParam
;
private
String
searchParam
;
/**
* 订单id
*/
private
Long
orderId
;
}
}
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