Commit 87a04854 authored by shangtx's avatar shangtx

refactor: mapper重新生成

parent 251893c9
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
...@@ -29,5 +29,8 @@ wx: ...@@ -29,5 +29,8 @@ wx:
pay: pay:
appId: wxa56f0845ca456bac #微信公众号或者小程序等的appid appId: wxa56f0845ca456bac #微信公众号或者小程序等的appid
mchId: 1602411974 #微信支付商户号 mchId: 1602411974 #微信支付商户号
wechat_key: xxxxxxx
# 公众号
###
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
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
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
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
<?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
<?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
<?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
<?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
...@@ -12,7 +12,7 @@ import org.springframework.context.annotation.ComponentScan; ...@@ -12,7 +12,7 @@ import org.springframework.context.annotation.ComponentScan;
* @since 2022/7/7 08:51 * @since 2022/7/7 08:51
*/ */
@SpringBootApplication @SpringBootApplication
@ComponentScan({"com.onsiteservice.core", "com.onsiteservice.common", "com.onsiteservice.dao", "com.onsiteservice.util"}) @ComponentScan({"com.onsiteservice.**"})
public class MiniAppApplication { public class MiniAppApplication {
public static void main(String[] args) { public static void main(String[] args) {
......
...@@ -6,8 +6,8 @@ server: ...@@ -6,8 +6,8 @@ server:
project: project:
swagger: swagger:
enabled: true enabled: true
title: 儒辰房产在线销售用户小程序端${spring.profiles.active}环境 title: 城市匠人小程序端${spring.profiles.active}环境
description: 儒辰房产在线销售用户小程序端API文档 description: 城市匠人小程序端API文档
base-package: com.onsiteservice.miniapp.controller,com.onsiteservice.common.business.controller base-package: com.onsiteservice.miniapp.controller,com.onsiteservice.common.business.controller
jwt: jwt:
enabled: true # 是否开启jwt拦截 enabled: true # 是否开启jwt拦截
...@@ -15,7 +15,9 @@ project: ...@@ -15,7 +15,9 @@ project:
issuer: onsite-service-mini-app issuer: onsite-service-mini-app
expires-time: 2592000 # 30天有效期 秒 expires-time: 2592000 # 30天有效期 秒
# 安全路径白名单 无需token # 安全路径白名单 无需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可以访问的路径白名单 # 基础token可以访问的路径白名单
base-token-ant-paths: "/login" base-token-ant-paths: "/login"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment