# boot-template-single
**Repository Path**: lhzlx/boot-template-single-2.4.2
## Basic Information
- **Project Name**: boot-template-single
- **Description**: boot-template-single
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-01-06
- **Last Updated**: 2024-07-13
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
#### 1、项目打包
> clean install package -DskipTests=true -P prod/test
#### 2、响应说明
> 将返回格式统一写到controller层
#### 3、param、entity、vo等结构
> model文件分为vo、entity、param、dto
>
> param和entity通常一一对应,如果查询、创建内容和更新内容传参区别较大时,则分为QueryXXXParam,AddXXXParam,UpdateXXXParam
>
> 返回给前端时,通常可以使用entity,但是返回数据差别较大时,建立vo类进行返回
#### 4、SQL补充
```sql
delete from sys_role
where id in
#{id,jdbcType=VARCHAR}
insert into sys_role (id, `name`,
`status`, create_time
)
values
(#{record.id,jdbcType=VARCHAR}, #{record.name,jdbcType=VARCHAR},
#{record.status,jdbcType=BIT}, #{record.createTime,jdbcType=TIMESTAMP}
)
1=1
and id is not null
and c.id = #{companyId}
and d.id = #{deptId}
and u.id = #{userId}
limit 0
insert into tb_employee_publish
(id,index_id,employee_id,is_publish,type)
values
(#{config.id},#{config.indexId},#{config.employeeId},#{config.isPublish},#{config.type})
update tb_station_message
message_type = #{messageType,jdbcType=INTEGER},
sub_message_type = #{subMessageType,jdbcType=INTEGER},
sub_message_type_name = #{subMessageTypeName,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
where id = #{id,jdbcType=VARCHAR}
```