Commit 5df3f0c7 authored by machengbo's avatar machengbo

商城 模块 mybatis-plus 的配置

parent 3dbf6660
......@@ -74,10 +74,10 @@
</dependency>
<!-- spring boot 和mybatis -->
<dependency>
<!--<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
</dependency>
</dependency>-->
<!-- mybatis plus -->
<dependency>
......
......@@ -37,7 +37,6 @@ public class FinanceTradeFlowController extends BaseController {
@GetMapping(value = "/getAccountMoney")
@ApiOperation(value = "充值----获取账户余额", notes = "获取账户余额")
public Result<OrderDto> getAccountMoney(HttpServletRequest req) throws Exception {
return new Result<>();
}
......
package com.jz.dm.mall.moduls.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
......@@ -20,6 +22,7 @@ public class FinanceTradeFlow implements Serializable {
/**
* 交易流水id
*/
@TableId(value = "trade_flow_id",type = IdType.AUTO)
private Long tradeFlowId;
/**
* 订单id
......
......@@ -56,3 +56,14 @@ spring:
- 192.168.31.167:6382
- 192.168.31.167:6383
- 192.168.31.167:6384
#mybatis的配置
mybatis:
#配置mapper.xml文件所在路径
mapper-locations: classpath:mapperconf/*.xml
#配置映射类所在的包名
type-aliases-package: com.jz.dm.mall.moduls.entity
logging:
level:
com.jz.manage: debug
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