Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service
Project
Project
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
external
on-site-service
Commits
87a04854
Commit
87a04854
authored
Jul 07, 2022
by
shangtx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: mapper重新生成
parent
251893c9
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
133 additions
and
4 deletions
+133
-4
OrderListenerTest.java
...a/com/onsiteservice/admin/listener/OrderListenerTest.java
+22
-0
application-third-service.yaml
constant/src/main/resources/application-third-service.yaml
+3
-0
refund_cert.p12
constant/src/main/resources/refund_cert.p12
+0
-0
ServiceAddressMapper.java
...nsiteservice/dao/mapper/service/ServiceAddressMapper.java
+7
-0
ServiceCategoryMapper.java
...siteservice/dao/mapper/service/ServiceCategoryMapper.java
+7
-0
ServiceOrderMapper.java
.../onsiteservice/dao/mapper/service/ServiceOrderMapper.java
+7
-0
ServiceSubclassMapper.java
...siteservice/dao/mapper/service/ServiceSubclassMapper.java
+7
-0
ServiceAddressMapper.xml
...rc/main/resources/mapper/service/ServiceAddressMapper.xml
+17
-0
ServiceCategoryMapper.xml
...c/main/resources/mapper/service/ServiceCategoryMapper.xml
+17
-0
ServiceOrderMapper.xml
dao/src/main/resources/mapper/service/ServiceOrderMapper.xml
+22
-0
ServiceSubclassMapper.xml
...c/main/resources/mapper/service/ServiceSubclassMapper.xml
+18
-0
MiniAppApplication.java
...in/java/com/onsiteservice/miniapp/MiniAppApplication.java
+1
-1
application.yaml
mini-app/src/main/resources/application.yaml
+5
-3
No files found.
admin/src/test/java/com/onsiteservice/admin/listener/OrderListenerTest.java
View file @
87a04854
package
com
.
onsiteservice
.
admin
.
listener
;
import
com.onsiteservice.constant.constant.SysConstants
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.amqp.core.AmqpTemplate
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
javax.annotation.Resource
;
@SpringBootTest
class
OrderListenerTest
{
@Resource
private
AmqpTemplate
amqpTemplate
;
@Test
public
void
notice
()
{
amqpTemplate
.
convertAndSend
(
SysConstants
.
Queue
.
ADMIN_ORDER
,
1
);
}
}
\ No newline at end of file
constant/src/main/resources/application-third-service.yaml
View file @
87a04854
...
...
@@ -29,5 +29,8 @@ wx:
pay
:
appId
:
wxa56f0845ca456bac
#微信公众号或者小程序等的appid
mchId
:
1602411974
#微信支付商户号
wechat_key
:
xxxxxxx
# 公众号
###
constant/src/main/resources/refund_cert.p12
0 → 100644
View file @
87a04854
dao/src/main/java/com/onsiteservice/dao/mapper/service/ServiceAddressMapper.java
0 → 100644
View file @
87a04854
package
com
.
onsiteservice
.
dao
.
mapper
.
service
;
import
com.onsiteservice.dao.common.Mapper
;
import
com.onsiteservice.entity.address.ServiceAddress
;
public
interface
ServiceAddressMapper
extends
Mapper
<
ServiceAddress
>
{
}
\ No newline at end of file
dao/src/main/java/com/onsiteservice/dao/mapper/service/ServiceCategoryMapper.java
0 → 100644
View file @
87a04854
package
com
.
onsiteservice
.
dao
.
mapper
.
service
;
import
com.onsiteservice.dao.common.Mapper
;
import
com.onsiteservice.entity.category.ServiceCategory
;
public
interface
ServiceCategoryMapper
extends
Mapper
<
ServiceCategory
>
{
}
\ No newline at end of file
dao/src/main/java/com/onsiteservice/dao/mapper/service/ServiceOrderMapper.java
0 → 100644
View file @
87a04854
package
com
.
onsiteservice
.
dao
.
mapper
.
service
;
import
com.onsiteservice.dao.common.Mapper
;
import
com.onsiteservice.entity.order.ServiceOrder
;
public
interface
ServiceOrderMapper
extends
Mapper
<
ServiceOrder
>
{
}
\ No newline at end of file
dao/src/main/java/com/onsiteservice/dao/mapper/service/ServiceSubclassMapper.java
0 → 100644
View file @
87a04854
package
com
.
onsiteservice
.
dao
.
mapper
.
service
;
import
com.onsiteservice.dao.common.Mapper
;
import
com.onsiteservice.entity.category.ServiceSubclass
;
public
interface
ServiceSubclassMapper
extends
Mapper
<
ServiceSubclass
>
{
}
\ No newline at end of file
dao/src/main/resources/mapper/service/ServiceAddressMapper.xml
0 → 100644
View file @
87a04854
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.onsiteservice.dao.mapper.service.ServiceAddressMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.onsiteservice.entity.address.ServiceAddress"
>
<!--
WARNING - @mbg.generated
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"account_no"
jdbcType=
"BIGINT"
property=
"accountNo"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"phone"
jdbcType=
"VARCHAR"
property=
"phone"
/>
<result
column=
"address"
jdbcType=
"VARCHAR"
property=
"address"
/>
<result
column=
"def"
jdbcType=
"INTEGER"
property=
"def"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"modify_time"
jdbcType=
"TIMESTAMP"
property=
"modifyTime"
/>
</resultMap>
</mapper>
\ No newline at end of file
dao/src/main/resources/mapper/service/ServiceCategoryMapper.xml
0 → 100644
View file @
87a04854
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.onsiteservice.dao.mapper.service.ServiceCategoryMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.onsiteservice.entity.category.ServiceCategory"
>
<!--
WARNING - @mbg.generated
-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"service_name"
jdbcType=
"VARCHAR"
property=
"serviceName"
/>
<result
column=
"sequence"
jdbcType=
"INTEGER"
property=
"sequence"
/>
<result
column=
"img"
jdbcType=
"VARCHAR"
property=
"img"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"modify_by"
jdbcType=
"VARCHAR"
property=
"modifyBy"
/>
<result
column=
"modify_time"
jdbcType=
"TIMESTAMP"
property=
"modifyTime"
/>
</resultMap>
</mapper>
\ No newline at end of file
dao/src/main/resources/mapper/service/ServiceOrderMapper.xml
0 → 100644
View file @
87a04854
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.onsiteservice.dao.mapper.service.ServiceOrderMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.onsiteservice.entity.order.ServiceOrder"
>
<!--
WARNING - @mbg.generated
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"account_no"
jdbcType=
"BIGINT"
property=
"accountNo"
/>
<result
column=
"address_id"
jdbcType=
"BIGINT"
property=
"addressId"
/>
<result
column=
"expect_arrival_time"
jdbcType=
"TIMESTAMP"
property=
"expectArrivalTime"
/>
<result
column=
"num"
jdbcType=
"INTEGER"
property=
"num"
/>
<result
column=
"demand_img"
jdbcType=
"VARCHAR"
property=
"demandImg"
/>
<result
column=
"demand_desc"
jdbcType=
"VARCHAR"
property=
"demandDesc"
/>
<result
column=
"read_agreement"
jdbcType=
"INTEGER"
property=
"readAgreement"
/>
<result
column=
"price"
jdbcType=
"DECIMAL"
property=
"price"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"order_status"
jdbcType=
"INTEGER"
property=
"orderStatus"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"modify_time"
jdbcType=
"TIMESTAMP"
property=
"modifyTime"
/>
</resultMap>
</mapper>
\ No newline at end of file
dao/src/main/resources/mapper/service/ServiceSubclassMapper.xml
0 → 100644
View file @
87a04854
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.onsiteservice.dao.mapper.service.ServiceSubclassMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.onsiteservice.entity.category.ServiceSubclass"
>
<!--
WARNING - @mbg.generated
-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"category_id"
jdbcType=
"INTEGER"
property=
"categoryId"
/>
<result
column=
"service_name"
jdbcType=
"VARCHAR"
property=
"serviceName"
/>
<result
column=
"sequence"
jdbcType=
"INTEGER"
property=
"sequence"
/>
<result
column=
"img"
jdbcType=
"VARCHAR"
property=
"img"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"modify_by"
jdbcType=
"VARCHAR"
property=
"modifyBy"
/>
<result
column=
"modify_time"
jdbcType=
"TIMESTAMP"
property=
"modifyTime"
/>
</resultMap>
</mapper>
\ No newline at end of file
mini-app/src/main/java/com/onsiteservice/miniapp/MiniAppApplication.java
View file @
87a04854
...
...
@@ -12,7 +12,7 @@ import org.springframework.context.annotation.ComponentScan;
* @since 2022/7/7 08:51
*/
@SpringBootApplication
@ComponentScan
({
"com.onsiteservice.
core"
,
"com.onsiteservice.common"
,
"com.onsiteservice.dao"
,
"com.onsiteservice.util
"
})
@ComponentScan
({
"com.onsiteservice.
**
"
})
public
class
MiniAppApplication
{
public
static
void
main
(
String
[]
args
)
{
...
...
mini-app/src/main/resources/application.yaml
View file @
87a04854
...
...
@@ -6,8 +6,8 @@ server:
project
:
swagger
:
enabled
:
true
title
:
儒辰房产在线销售用户
小程序端${spring.profiles.active}环境
description
:
儒辰房产在线销售用户
小程序端API文档
title
:
城市匠人
小程序端${spring.profiles.active}环境
description
:
城市匠人
小程序端API文档
base-package
:
com.onsiteservice.miniapp.controller,com.onsiteservice.common.business.controller
jwt
:
enabled
:
true
# 是否开启jwt拦截
...
...
@@ -15,7 +15,9 @@ project:
issuer
:
onsite-service-mini-app
expires-time
:
2592000
# 30天有效期 秒
# 安全路径白名单 无需token
ant-paths
:
"
/api/category/page,/api/subclass/page"
ant-paths
:
"
/error,**.html**,**.js,**.css,/favicon.ico,/webjars/**,/swagger**,
/swagger-resources/configuration/ui,/**/v2/api-docs,/doc.html,/v2/api-docs-ext,/druid/**
\
/,/websocket/**,/api/category/page,/api/subclass/page"
# 基础token可以访问的路径白名单
base-token-ant-paths
:
"
/login"
...
...
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