🔧 生成器和项目配置修改
This commit is contained in:
parent
2d3cb22612
commit
5bc90263b1
|
@ -17,4 +17,8 @@ spring:
|
||||||
password: ${bunny.master.password}
|
password: ${bunny.master.password}
|
||||||
hikari:
|
hikari:
|
||||||
maximum-pool-size: 20
|
maximum-pool-size: 20
|
||||||
connection-timeout: 30000
|
connection-timeout: 30000
|
||||||
|
|
||||||
|
logging:
|
||||||
|
file:
|
||||||
|
path: "logs/${spring.application.name}"
|
|
@ -17,17 +17,12 @@
|
||||||
<!-- 分页查询${comment}内容 -->
|
<!-- 分页查询${comment}内容 -->
|
||||||
<select id="selectListByPage" resultType="${package}.domain.vo.${classUppercaseName}Vo">
|
<select id="selectListByPage" resultType="${package}.domain.vo.${classUppercaseName}Vo">
|
||||||
select
|
select
|
||||||
base.*,
|
<include refid="Base_Column_List"/>
|
||||||
create_user.username as create_username,
|
from $tableName
|
||||||
update_user.username as update_username
|
|
||||||
from $tableName base
|
|
||||||
left join sys_user create_user on create_user.id = base.create_user
|
|
||||||
left join sys_user update_user on update_user.id = base.update_user
|
|
||||||
<where>
|
<where>
|
||||||
base.is_deleted = 0
|
|
||||||
#foreach($field in $columnInfoList)
|
#foreach($field in $columnInfoList)
|
||||||
<if test="dto.${field.lowercaseName} != null and dto.${field.lowercaseName} != ''">
|
<if test="dto.${field.lowercaseName} != null and dto.${field.lowercaseName} != ''">
|
||||||
and base.${field.columnName} like CONCAT('%',#{dto.${field.lowercaseName}},'%')
|
and ${field.columnName} like CONCAT('%',#{dto.${field.lowercaseName}},'%')
|
||||||
</if>
|
</if>
|
||||||
#end
|
#end
|
||||||
</where>
|
</where>
|
||||||
|
|
Before Width: | Height: | Size: 246 KiB After Width: | Height: | Size: 246 KiB |
|
@ -1,13 +0,0 @@
|
||||||
package com.mall;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Hello world!
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class App
|
|
||||||
{
|
|
||||||
public static void main( String[] args )
|
|
||||||
{
|
|
||||||
System.out.println( "Hello World!" );
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1 @@
|
||||||
|
package com.mall.common.domain;
|
|
@ -0,0 +1 @@
|
||||||
|
package com.mall.common.domain.vo;
|
|
@ -0,0 +1 @@
|
||||||
|
package com.mall.common;
|
|
@ -0,0 +1,13 @@
|
||||||
|
package com.mall.product;
|
||||||
|
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||||
|
|
||||||
|
@EnableTransactionManagement
|
||||||
|
@SpringBootApplication
|
||||||
|
public class MallProductApplication {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(MallProductApplication.class, args);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
package com.mall.product.domain.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("pms_attr")
|
||||||
|
@Schema(name = "Attr对象", title = "商品属性", description = "商品属性的实体类对象")
|
||||||
|
public class Attr {
|
||||||
|
|
||||||
|
@Schema(name = "attrId", title = "属性id")
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
private Long attrId;
|
||||||
|
|
||||||
|
@Schema(name = "attrName", title = "属性名")
|
||||||
|
private String attrName;
|
||||||
|
|
||||||
|
@Schema(name = "searchType", title = "是否需要检索[0-不需要,1-需要]")
|
||||||
|
private Integer searchType;
|
||||||
|
|
||||||
|
@Schema(name = "valueType", title = "值类型[0-为单个值,1-可以选择多个值]")
|
||||||
|
private Integer valueType;
|
||||||
|
|
||||||
|
@Schema(name = "icon", title = "属性图标")
|
||||||
|
private String icon;
|
||||||
|
|
||||||
|
@Schema(name = "valueSelect", title = "可选值列表[用逗号分隔]")
|
||||||
|
private String valueSelect;
|
||||||
|
|
||||||
|
@Schema(name = "attrType", title = "属性类型[0-销售属性,1-基本属性,2-既是销售属性又是基本属性]")
|
||||||
|
private Integer attrType;
|
||||||
|
|
||||||
|
@Schema(name = "enable", title = "启用状态[0 - 禁用,1 - 启用]")
|
||||||
|
private Long enable;
|
||||||
|
|
||||||
|
@Schema(name = "catelogId", title = "所属分类")
|
||||||
|
private Long catelogId;
|
||||||
|
|
||||||
|
@Schema(name = "showDesc", title = "快速展示【是否展示在介绍上;0-否 1-是】,在sku中仍然可以调整")
|
||||||
|
private Integer showDesc;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
bunny:
|
||||||
|
master:
|
||||||
|
host: rm-bp12z6hlv46vi6g8mro.mysql.rds.aliyuncs.com
|
||||||
|
port: 3306
|
||||||
|
database: gulimall_pms
|
||||||
|
username: gulimall
|
||||||
|
password: "0212Gulimall"
|
|
@ -0,0 +1,36 @@
|
||||||
|
server:
|
||||||
|
port: 8001
|
||||||
|
|
||||||
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: prod
|
||||||
|
application:
|
||||||
|
name: service-product
|
||||||
|
|
||||||
|
datasource:
|
||||||
|
type: com.zaxxer.hikari.HikariDataSource
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://${bunny.master.host}:${bunny.master.port}/${bunny.master.database}?serverTimezone=GMT%2B8&useSSL=false&characterEncoding=utf-8&allowPublicKeyRetrieval=true
|
||||||
|
username: ${bunny.master.username}
|
||||||
|
password: ${bunny.master.password}
|
||||||
|
hikari:
|
||||||
|
maximum-pool-size: 20
|
||||||
|
connection-timeout: 30000
|
||||||
|
|
||||||
|
jackson:
|
||||||
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
mapper-locations: classpath:/mapper/*.xml
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
id-type: auto
|
||||||
|
logic-delete-value: 1
|
||||||
|
logic-not-delete-value: 0
|
||||||
|
|
||||||
|
logging:
|
||||||
|
file:
|
||||||
|
path: "logs/${spring.application.name}"
|
||||||
|
level:
|
||||||
|
com.mall.product: debug
|
||||||
|
root: info
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
|
||||||
|
,-----. ,--. ,--. ,--.,--.
|
||||||
|
| |) /_ ,--.,--.,--,--, ,--,--, ,--. ,--. | `.' | ,--,--.| || |
|
||||||
|
| .-. \| || || \| \ \ ' / | |'.'| |' ,-. || || |
|
||||||
|
| '--' /' '' '| || || || | \ ' | | | |\ '-' || || |
|
||||||
|
`------' `----' `--''--'`--''--'.-' / `--' `--' `--`--'`--'`--'
|
||||||
|
`---'
|
||||||
|
|
||||||
|
|
||||||
|
Service Name${spring.application.name}
|
||||||
|
SpringBoot Version: ${spring-boot.version}${spring-boot.formatted-version}
|
||||||
|
Spring Active:${spring.profiles.active}
|
Loading…
Reference in New Issue