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
137bb03b
Commit
137bb03b
authored
Dec 30, 2021
by
墨竹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://git.gicdev.com/haoban3.0/haoban-manage3.0
into developer
parents
7616f1fb
f734f942
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
119 additions
and
3 deletions
+119
-3
QuartzEnum.java
...main/java/com/gic/haoban/manage/api/enums/QuartzEnum.java
+2
-1
PendingTaskApiService.java
...oban/manage/api/service/notify/PendingTaskApiService.java
+17
-0
PendingTaskMapper.java
...c/haoban/manage/service/dao/mapper/PendingTaskMapper.java
+10
-0
PendingTaskService.java
...ban/manage/service/service/notify/PendingTaskService.java
+10
-0
PendingTaskServiceImpl.java
...e/service/service/notify/impl/PendingTaskServiceImpl.java
+6
-0
PendingTaskApiServiceImpl.java
...service/service/notify/out/PendingTaskApiServiceImpl.java
+18
-0
PendingTaskMapper.xml
...3-service/src/main/resources/mapper/PendingTaskMapper.xml
+11
-1
pom.xml
haoban-manage3-wx/pom.xml
+17
-0
DictController.java
.../com/gic/haoban/manage/web/controller/DictController.java
+26
-1
dubbo-haoban-manage-wx.xml
...ge3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
+2
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/enums/QuartzEnum.java
View file @
137bb03b
...
@@ -14,7 +14,8 @@ public enum QuartzEnum {
...
@@ -14,7 +14,8 @@ public enum QuartzEnum {
/**
/**
* 话务任务逾期提醒
* 话务任务逾期提醒
*/
*/
TEL_TASK_LATE_REMIND
(
"telTaskLateRemind"
,
"com.gic.haoban.task.manage.api.service.ITelTaskCallApiService"
,
"telTaskLateRemind"
,
"0 0 15 * * *"
,
"-1"
);
TEL_TASK_LATE_REMIND
(
"telTaskLateRemind"
,
"com.gic.haoban.task.manage.api.service.ITelTaskCallApiService"
,
"telTaskLateRemind"
,
"0 0 15 * * *"
,
"-1"
),
TEL_TASK_INVALID_REMIND
(
"telTaskInvalidRemind"
,
"com.gic.haoban.task.manage.api.service.ITelTaskCallApiService"
,
"telTaskInvalidRemind"
,
"0 0 15 * * *"
,
"-1"
);
private
String
key
;
private
String
key
;
private
String
serviceName
;
private
String
serviceName
;
private
String
method
;
private
String
method
;
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/notify/PendingTaskApiService.java
View file @
137bb03b
...
@@ -23,6 +23,14 @@ public interface PendingTaskApiService {
...
@@ -23,6 +23,14 @@ public interface PendingTaskApiService {
*/
*/
public
ServiceResponse
<
Boolean
>
addPendingTask
(
PendingTaskQDTO
qdto
);
public
ServiceResponse
<
Boolean
>
addPendingTask
(
PendingTaskQDTO
qdto
);
/**
* 待办批量
*
* @param qdto
*/
public
ServiceResponse
<
Boolean
>
addPendingTaskBatch
(
List
<
PendingTaskQDTO
>
qdto
);
/**
/**
* 待办列表查询分页
* 待办列表查询分页
*
*
...
@@ -92,4 +100,13 @@ public interface PendingTaskApiService {
...
@@ -92,4 +100,13 @@ public interface PendingTaskApiService {
*/
*/
public
ServiceResponse
<
Boolean
>
updateInvalidTime
(
String
relationId
,
Date
endTime
);
public
ServiceResponse
<
Boolean
>
updateInvalidTime
(
String
relationId
,
Date
endTime
);
/**
* 更新失效或者结束时间
*
* @param relationId
* @param endTime
* @return
*/
public
ServiceResponse
<
Boolean
>
updateInvalidTimeByBusinessId
(
String
businessId
,
Date
endTime
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/PendingTaskMapper.java
View file @
137bb03b
...
@@ -4,6 +4,7 @@ import com.gic.haoban.manage.service.entity.TabPendingTask;
...
@@ -4,6 +4,7 @@ import com.gic.haoban.manage.service.entity.TabPendingTask;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
@Mapper
@Mapper
...
@@ -76,4 +77,12 @@ public interface PendingTaskMapper {
...
@@ -76,4 +77,12 @@ public interface PendingTaskMapper {
*/
*/
public
int
deleteByRelationIds
(
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"relationIds"
)
List
<
String
>
relationIds
);
public
int
deleteByRelationIds
(
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"relationIds"
)
List
<
String
>
relationIds
);
/**
* 更新失效时间
*
* @param enterpriseId 企业id
* @return
*/
public
int
updateInvalidTimeByBusinessId
(
@Param
(
"businessId"
)
String
businessId
,
@Param
(
""
)
Date
invalidTime
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/notify/PendingTaskService.java
View file @
137bb03b
...
@@ -4,6 +4,7 @@ import com.gic.api.base.commons.BasePageInfo;
...
@@ -4,6 +4,7 @@ import com.gic.api.base.commons.BasePageInfo;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.haoban.manage.service.pojo.bo.PendingTaskBO
;
import
com.gic.haoban.manage.service.pojo.bo.PendingTaskBO
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -54,5 +55,14 @@ public interface PendingTaskService {
...
@@ -54,5 +55,14 @@ public interface PendingTaskService {
*/
*/
public
boolean
deletePendingTask
(
List
<
String
>
relationIds
);
public
boolean
deletePendingTask
(
List
<
String
>
relationIds
);
/**
* 更新失效时间
*
* @param businessId
* @param time
* @return
*/
public
boolean
updateInvalidTimeByBusinessId
(
String
businessId
,
Date
time
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/notify/impl/PendingTaskServiceImpl.java
View file @
137bb03b
...
@@ -64,4 +64,10 @@ public class PendingTaskServiceImpl implements PendingTaskService {
...
@@ -64,4 +64,10 @@ public class PendingTaskServiceImpl implements PendingTaskService {
pendingTaskMapper
.
deleteByRelationIds
(
null
,
relationIds
);
pendingTaskMapper
.
deleteByRelationIds
(
null
,
relationIds
);
return
true
;
return
true
;
}
}
@Override
public
boolean
updateInvalidTimeByBusinessId
(
String
businessId
,
Date
time
)
{
pendingTaskMapper
.
updateInvalidTimeByBusinessId
(
businessId
,
time
);
return
true
;
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/notify/out/PendingTaskApiServiceImpl.java
View file @
137bb03b
...
@@ -44,6 +44,18 @@ public class PendingTaskApiServiceImpl implements PendingTaskApiService {
...
@@ -44,6 +44,18 @@ public class PendingTaskApiServiceImpl implements PendingTaskApiService {
return
ServiceResponse
.
success
(
true
);
return
ServiceResponse
.
success
(
true
);
}
}
@Override
public
ServiceResponse
<
Boolean
>
addPendingTaskBatch
(
List
<
PendingTaskQDTO
>
qdto
)
{
//后续优化
if
(
CollectionUtils
.
isEmpty
(
qdto
))
{
return
ServiceResponse
.
success
(
true
);
}
qdto
.
forEach
(
mid
->
{
this
.
addPendingTask
(
mid
);
});
return
ServiceResponse
.
success
(
true
);
}
@Override
@Override
public
ServiceResponse
<
Page
<
PendingTaskDetailDTO
>>
pagePendingTask
(
PendingListQDTO
listQDTO
,
BasePageInfo
pageInfo
)
{
public
ServiceResponse
<
Page
<
PendingTaskDetailDTO
>>
pagePendingTask
(
PendingListQDTO
listQDTO
,
BasePageInfo
pageInfo
)
{
...
@@ -166,4 +178,10 @@ public class PendingTaskApiServiceImpl implements PendingTaskApiService {
...
@@ -166,4 +178,10 @@ public class PendingTaskApiServiceImpl implements PendingTaskApiService {
boolean
b
=
pendingTaskService
.
addOrUpdatePendingTask
(
pendingTaskBO
);
boolean
b
=
pendingTaskService
.
addOrUpdatePendingTask
(
pendingTaskBO
);
return
ServiceResponse
.
success
(
b
);
return
ServiceResponse
.
success
(
b
);
}
}
@Override
public
ServiceResponse
<
Boolean
>
updateInvalidTimeByBusinessId
(
String
businessId
,
Date
endTime
)
{
boolean
b
=
pendingTaskService
.
updateInvalidTimeByBusinessId
(
businessId
,
endTime
);
return
ServiceResponse
.
success
(
b
);
}
}
}
haoban-manage3-service/src/main/resources/mapper/PendingTaskMapper.xml
View file @
137bb03b
...
@@ -255,7 +255,7 @@
...
@@ -255,7 +255,7 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_haoban_pending_task
from tab_haoban_pending_task
where enterprise_id = #{enterpriseId} and store_id =#{storeId}
where enterprise_id = #{enterpriseId} and store_id =#{storeId}
and task_status_flag=0
<if
test=
"finishFlag != -1"
>
<if
test=
"finishFlag != -1"
>
and finish_flag = #{finishFlag}
and finish_flag = #{finishFlag}
</if>
</if>
...
@@ -277,6 +277,7 @@
...
@@ -277,6 +277,7 @@
from tab_haoban_pending_task
from tab_haoban_pending_task
where enterprise_id = #{enterpriseId}
where enterprise_id = #{enterpriseId}
and store_id =#{storeId}
and store_id =#{storeId}
and task_status_flag=0
<if
test=
"clerkId != null"
>
<if
test=
"clerkId != null"
>
and clerk_id = #{clerkId}
and clerk_id = #{clerkId}
</if>
</if>
...
@@ -299,4 +300,12 @@
...
@@ -299,4 +300,12 @@
#{item}
#{item}
</foreach>
</foreach>
</update>
</update>
<update
id=
"updateInvalidTimeByBusinessId"
>
update tab_haoban_pending_task
set
update_time = now(),
invalid_time = #{invalidTime}
where business_id = #{businessId}
</update>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-wx/pom.xml
View file @
137bb03b
...
@@ -230,6 +230,23 @@
...
@@ -230,6 +230,23 @@
<artifactId>
haoban-app-customer-api
</artifactId>
<artifactId>
haoban-app-customer-api
</artifactId>
<version>
${haoban-app-customer-api}
</version>
<version>
${haoban-app-customer-api}
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-mall-api
</artifactId>
<version>
${gic-mall-api}
</version>
<exclusions>
<exclusion>
<artifactId>
commons-codec
</artifactId>
<groupId>
commons-codec
</groupId>
</exclusion>
<exclusion>
<artifactId>
log4j
</artifactId>
<groupId>
log4j
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/DictController.java
View file @
137bb03b
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
com.gic.api.base.commons.RpcResult
;
import
com.gic.haoban.common.anno.IgnoreLogin
;
import
com.gic.haoban.common.anno.IgnoreLogin
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.common.utils.HaobanResponse
;
...
@@ -7,6 +8,8 @@ import com.gic.haoban.manage.api.dto.DictDTO;
...
@@ -7,6 +8,8 @@ import com.gic.haoban.manage.api.dto.DictDTO;
import
com.gic.haoban.manage.api.service.DictApiService
;
import
com.gic.haoban.manage.api.service.DictApiService
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.vo.DictVo
;
import
com.gic.haoban.manage.web.vo.DictVo
;
import
com.gic.mall.api.service.MallSettingService
;
import
com.gic.mall.api.vo.MallOrderSettingVo
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -14,6 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -14,6 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Objects
;
/**
/**
* Created 2020/3/26.
* Created 2020/3/26.
...
@@ -25,17 +29,38 @@ public class DictController extends WebBaseController {
...
@@ -25,17 +29,38 @@ public class DictController extends WebBaseController {
@Autowired
@Autowired
private
DictApiService
dictApiService
;
private
DictApiService
dictApiService
;
@Autowired
private
MallSettingService
mallSettingService
;
@RequestMapping
(
"/dict-list"
)
@RequestMapping
(
"/dict-list"
)
public
HaobanResponse
queryDictList
(
String
dictKeys
)
{
public
HaobanResponse
queryDictList
(
String
dictKeys
,
String
enterpriseId
)
{
if
(
StringUtils
.
isBlank
(
dictKeys
))
{
if
(
StringUtils
.
isBlank
(
dictKeys
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_5
);
return
resultResponse
(
HaoBanErrCode
.
ERR_5
);
}
}
String
[]
split
=
dictKeys
.
split
(
","
);
String
[]
split
=
dictKeys
.
split
(
","
);
List
<
DictDTO
>
ret
=
dictApiService
.
queryList
(
Arrays
.
asList
(
split
));
List
<
DictDTO
>
ret
=
dictApiService
.
queryList
(
Arrays
.
asList
(
split
));
// 添加订单提现说明
addOrderAfterSaleTimeDict
(
enterpriseId
,
ret
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
EntityUtil
.
changeEntityListByOrika
(
DictVo
.
class
,
ret
));
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
EntityUtil
.
changeEntityListByOrika
(
DictVo
.
class
,
ret
));
}
}
private
void
addOrderAfterSaleTimeDict
(
String
enterpriseId
,
List
<
DictDTO
>
ret
)
{
String
orderAfterSaleTimeKey
=
"order_after_sale_time"
;
RpcResult
<
MallOrderSettingVo
>
orderSetting
=
mallSettingService
.
queryOrderSetting
(
enterpriseId
);
int
day
;
if
(
Objects
.
isNull
(
orderSetting
)
||
Objects
.
isNull
(
orderSetting
.
getData
()))
{
// 默认7
day
=
7
;
}
else
{
day
=
orderSetting
.
getData
().
getAfterSaleTime
();
}
DictDTO
dictDTO
=
new
DictDTO
();
dictDTO
.
setDictName
(
"提现说明"
);
dictDTO
.
setDictKey
(
orderAfterSaleTimeKey
);
dictDTO
.
setDictContent
(
String
.
format
(
"订单确认收货后%s天可以提现"
,
day
));
ret
.
add
(
dictDTO
);
}
/**
/**
* 根据key查询一条数据
* 根据key查询一条数据
*
*
...
...
haoban-manage3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
View file @
137bb03b
...
@@ -87,4 +87,6 @@
...
@@ -87,4 +87,6 @@
<dubbo:reference
interface=
"com.gic.haoban.manage.api.service.WxApplicationApiService"
<dubbo:reference
interface=
"com.gic.haoban.manage.api.service.WxApplicationApiService"
id=
"wxApplicationApiService"
/>
id=
"wxApplicationApiService"
/>
<dubbo:reference
id=
"mallSettingService"
interface=
"com.gic.mall.api.service.MallSettingService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
</beans>
</beans>
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