Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
Project
Project
Details
Activity
Releases
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
王飞
vehicle-quality-review
Commits
a5bd381a
Commit
a5bd381a
authored
Jan 05, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车企信息 - 修改
parent
f580eafc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
273 additions
and
36 deletions
+273
-36
AutomobileEnterprise.java
.../src/main/java/com/ruoyi/domain/AutomobileEnterprise.java
+10
-4
AutomobileEnterpriseMapper.java
...ain/java/com/ruoyi/mapper/AutomobileEnterpriseMapper.java
+61
-0
IAutomobileEnterpriseService.java
.../java/com/ruoyi/service/IAutomobileEnterpriseService.java
+63
-0
AutomobileEnterpriseServiceImpl.java
...m/ruoyi/service/impl/AutomobileEnterpriseServiceImpl.java
+99
-0
AutomobileEnterpriseController.java
...in/java/com/ruoyi/web/AutomobileEnterpriseController.java
+28
-20
AutomobileEnterpriseMapper.xml
.../src/main/resources/mapper/AutomobileEnterpriseMapper.xml
+12
-12
No files found.
quality-review/src/main/java/com/ruoyi/domain/
T
AutomobileEnterprise.java
→
quality-review/src/main/java/com/ruoyi/domain/AutomobileEnterprise.java
View file @
a5bd381a
package
com
.
ruoyi
.
domain
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.ruoyi.common.annotation.Excel
;
import
com.ruoyi.common.core.domain.BaseEntity
;
...
...
@@ -19,30 +19,36 @@ import com.ruoyi.common.core.domain.BaseEntity;
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
TAutomobileEnterprise
extends
BaseEntity
@ApiModel
(
value
=
"车企信息对象"
)
public
class
AutomobileEnterprise
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 主键 */
@ApiModelProperty
(
"ID"
)
private
Long
id
;
/** 企业名称 */
@Excel
(
name
=
"企业名称"
)
@ApiModelProperty
(
"企业名称"
)
private
String
enterpriseName
;
/** 地址 */
@Excel
(
name
=
"地址"
)
@ApiModelProperty
(
"地址"
)
private
String
address
;
/** 邮编 */
@Excel
(
name
=
"邮编"
)
@ApiModelProperty
(
"邮编"
)
private
String
postcode
;
/** 企业联系人 */
@Excel
(
name
=
"企业联系人"
)
@ApiModelProperty
(
"企业联系人"
)
private
String
enterpriseContact
;
/** 联系电话 */
@Excel
(
name
=
"联系电话"
)
@ApiModelProperty
(
"联系电话"
)
private
String
contactNumber
;
}
quality-review/src/main/java/com/ruoyi/mapper/
T
AutomobileEnterpriseMapper.java
→
quality-review/src/main/java/com/ruoyi/mapper/AutomobileEnterpriseMapper.java
View file @
a5bd381a
package
com
.
ruoyi
.
mapper
;
import
java.util.List
;
import
com.ruoyi.domain.
T
AutomobileEnterprise
;
import
com.ruoyi.domain.AutomobileEnterprise
;
/**
* 车企信息Mapper接口
*
*
* @author gxk
* @date 2024-01-05
*/
public
interface
TAutomobileEnterpriseMapper
public
interface
AutomobileEnterpriseMapper
{
/**
* 查询车企信息
*
*
* @param id 车企信息主键
* @return 车企信息
*/
public
TAutomobileEnterprise
selectT
AutomobileEnterpriseById
(
Long
id
);
public
AutomobileEnterprise
select
AutomobileEnterpriseById
(
Long
id
);
/**
* 查询车企信息列表
*
* @param
tA
utomobileEnterprise 车企信息
*
* @param
a
utomobileEnterprise 车企信息
* @return 车企信息集合
*/
public
List
<
TAutomobileEnterprise
>
selectTAutomobileEnterpriseList
(
TAutomobileEnterprise
tA
utomobileEnterprise
);
public
List
<
AutomobileEnterprise
>
selectAutomobileEnterpriseList
(
AutomobileEnterprise
a
utomobileEnterprise
);
/**
* 新增车企信息
*
* @param
tA
utomobileEnterprise 车企信息
*
* @param
a
utomobileEnterprise 车企信息
* @return 结果
*/
public
int
insert
TAutomobileEnterprise
(
TAutomobileEnterprise
tA
utomobileEnterprise
);
public
int
insert
AutomobileEnterprise
(
AutomobileEnterprise
a
utomobileEnterprise
);
/**
* 修改车企信息
*
* @param
tA
utomobileEnterprise 车企信息
*
* @param
a
utomobileEnterprise 车企信息
* @return 结果
*/
public
int
update
TAutomobileEnterprise
(
TAutomobileEnterprise
tA
utomobileEnterprise
);
public
int
update
AutomobileEnterprise
(
AutomobileEnterprise
a
utomobileEnterprise
);
/**
* 删除车企信息
*
*
* @param id 车企信息主键
* @return 结果
*/
public
int
delete
T
AutomobileEnterpriseById
(
Long
id
);
public
int
deleteAutomobileEnterpriseById
(
Long
id
);
/**
* 批量删除车企信息
*
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
delete
T
AutomobileEnterpriseByIds
(
Long
[]
ids
);
public
int
deleteAutomobileEnterpriseByIds
(
Long
[]
ids
);
}
quality-review/src/main/java/com/ruoyi/service/I
T
AutomobileEnterpriseService.java
→
quality-review/src/main/java/com/ruoyi/service/IAutomobileEnterpriseService.java
View file @
a5bd381a
package
com
.
ruoyi
.
service
;
import
java.util.List
;
import
com.ruoyi.domain.TAutomobileEnterprise
;
import
com.ruoyi.domain.AutomobileEnterprise
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 车企信息Service接口
*
*
* @author gxk
* @date 2024-01-05
*/
public
interface
ITAutomobileEnterpriseService
@Mapper
public
interface
IAutomobileEnterpriseService
{
/**
* 查询车企信息
*
*
* @param id 车企信息主键
* @return 车企信息
*/
public
TAutomobileEnterprise
selectT
AutomobileEnterpriseById
(
Long
id
);
public
AutomobileEnterprise
select
AutomobileEnterpriseById
(
Long
id
);
/**
* 查询车企信息列表
*
* @param
tA
utomobileEnterprise 车企信息
*
* @param
a
utomobileEnterprise 车企信息
* @return 车企信息集合
*/
public
List
<
TAutomobileEnterprise
>
selectTAutomobileEnterpriseList
(
TAutomobileEnterprise
tA
utomobileEnterprise
);
public
List
<
AutomobileEnterprise
>
selectAutomobileEnterpriseList
(
AutomobileEnterprise
a
utomobileEnterprise
);
/**
* 新增车企信息
*
* @param
tA
utomobileEnterprise 车企信息
*
* @param
a
utomobileEnterprise 车企信息
* @return 结果
*/
public
int
insert
TAutomobileEnterprise
(
TAutomobileEnterprise
tA
utomobileEnterprise
);
public
int
insert
AutomobileEnterprise
(
AutomobileEnterprise
a
utomobileEnterprise
);
/**
* 修改车企信息
*
* @param
tA
utomobileEnterprise 车企信息
*
* @param
a
utomobileEnterprise 车企信息
* @return 结果
*/
public
int
update
TAutomobileEnterprise
(
TAutomobileEnterprise
tA
utomobileEnterprise
);
public
int
update
AutomobileEnterprise
(
AutomobileEnterprise
a
utomobileEnterprise
);
/**
* 批量删除车企信息
*
*
* @param ids 需要删除的车企信息主键集合
* @return 结果
*/
public
int
delete
T
AutomobileEnterpriseByIds
(
Long
[]
ids
);
public
int
deleteAutomobileEnterpriseByIds
(
Long
[]
ids
);
/**
* 删除车企信息信息
*
*
* @param id 车企信息主键
* @return 结果
*/
public
int
delete
T
AutomobileEnterpriseById
(
Long
id
);
public
int
deleteAutomobileEnterpriseById
(
Long
id
);
}
quality-review/src/main/java/com/ruoyi/service/impl/
T
AutomobileEnterpriseServiceImpl.java
→
quality-review/src/main/java/com/ruoyi/service/impl/AutomobileEnterpriseServiceImpl.java
View file @
a5bd381a
...
...
@@ -5,9 +5,9 @@ import com.ruoyi.common.utils.DateUtils;
import
com.ruoyi.common.utils.SecurityUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.mapper.
T
AutomobileEnterpriseMapper
;
import
com.ruoyi.domain.
T
AutomobileEnterprise
;
import
com.ruoyi.service.I
T
AutomobileEnterpriseService
;
import
com.ruoyi.mapper.AutomobileEnterpriseMapper
;
import
com.ruoyi.domain.AutomobileEnterprise
;
import
com.ruoyi.service.IAutomobileEnterpriseService
;
/**
* 车企信息Service业务层处理
...
...
@@ -16,10 +16,10 @@ import com.ruoyi.service.ITAutomobileEnterpriseService;
* @date 2024-01-05
*/
@Service
public
class
TAutomobileEnterpriseServiceImpl
implements
IT
AutomobileEnterpriseService
public
class
AutomobileEnterpriseServiceImpl
implements
I
AutomobileEnterpriseService
{
@Autowired
private
TAutomobileEnterpriseMapper
tA
utomobileEnterpriseMapper
;
private
AutomobileEnterpriseMapper
a
utomobileEnterpriseMapper
;
/**
* 查询车企信息
...
...
@@ -28,49 +28,49 @@ public class TAutomobileEnterpriseServiceImpl implements ITAutomobileEnterpriseS
* @return 车企信息
*/
@Override
public
TAutomobileEnterprise
selectT
AutomobileEnterpriseById
(
Long
id
)
public
AutomobileEnterprise
select
AutomobileEnterpriseById
(
Long
id
)
{
return
tAutomobileEnterpriseMapper
.
selectT
AutomobileEnterpriseById
(
id
);
return
automobileEnterpriseMapper
.
select
AutomobileEnterpriseById
(
id
);
}
/**
* 查询车企信息列表
*
* @param
tA
utomobileEnterprise 车企信息
* @param
a
utomobileEnterprise 车企信息
* @return 车企信息
*/
@Override
public
List
<
TAutomobileEnterprise
>
selectTAutomobileEnterpriseList
(
TAutomobileEnterprise
tA
utomobileEnterprise
)
public
List
<
AutomobileEnterprise
>
selectAutomobileEnterpriseList
(
AutomobileEnterprise
a
utomobileEnterprise
)
{
return
tAutomobileEnterpriseMapper
.
selectTAutomobileEnterpriseList
(
tA
utomobileEnterprise
);
return
automobileEnterpriseMapper
.
selectAutomobileEnterpriseList
(
a
utomobileEnterprise
);
}
/**
* 新增车企信息
*
* @param
tA
utomobileEnterprise 车企信息
* @param
a
utomobileEnterprise 车企信息
* @return 结果
*/
@Override
public
int
insert
TAutomobileEnterprise
(
TAutomobileEnterprise
tA
utomobileEnterprise
)
public
int
insert
AutomobileEnterprise
(
AutomobileEnterprise
a
utomobileEnterprise
)
{
tA
utomobileEnterprise
.
setCreateTime
(
DateUtils
.
getNowDate
());
tA
utomobileEnterprise
.
setCreateBy
(
String
.
valueOf
(
SecurityUtils
.
getUserId
()));
return
tAutomobileEnterpriseMapper
.
insertTAutomobileEnterprise
(
tA
utomobileEnterprise
);
a
utomobileEnterprise
.
setCreateTime
(
DateUtils
.
getNowDate
());
a
utomobileEnterprise
.
setCreateBy
(
String
.
valueOf
(
SecurityUtils
.
getUserId
()));
return
automobileEnterpriseMapper
.
insertAutomobileEnterprise
(
a
utomobileEnterprise
);
}
/**
* 修改车企信息
*
* @param
tA
utomobileEnterprise 车企信息
* @param
a
utomobileEnterprise 车企信息
* @return 结果
*/
@Override
public
int
update
TAutomobileEnterprise
(
TAutomobileEnterprise
tA
utomobileEnterprise
)
public
int
update
AutomobileEnterprise
(
AutomobileEnterprise
a
utomobileEnterprise
)
{
tA
utomobileEnterprise
.
setUpdateTime
(
DateUtils
.
getNowDate
());
tA
utomobileEnterprise
.
setUpdateBy
(
String
.
valueOf
(
SecurityUtils
.
getUserId
()));
return
tAutomobileEnterpriseMapper
.
updateTAutomobileEnterprise
(
tA
utomobileEnterprise
);
a
utomobileEnterprise
.
setUpdateTime
(
DateUtils
.
getNowDate
());
a
utomobileEnterprise
.
setUpdateBy
(
String
.
valueOf
(
SecurityUtils
.
getUserId
()));
return
automobileEnterpriseMapper
.
updateAutomobileEnterprise
(
a
utomobileEnterprise
);
}
/**
...
...
@@ -80,9 +80,9 @@ public class TAutomobileEnterpriseServiceImpl implements ITAutomobileEnterpriseS
* @return 结果
*/
@Override
public
int
delete
T
AutomobileEnterpriseByIds
(
Long
[]
ids
)
public
int
deleteAutomobileEnterpriseByIds
(
Long
[]
ids
)
{
return
tAutomobileEnterpriseMapper
.
deleteT
AutomobileEnterpriseByIds
(
ids
);
return
automobileEnterpriseMapper
.
delete
AutomobileEnterpriseByIds
(
ids
);
}
/**
...
...
@@ -92,8 +92,8 @@ public class TAutomobileEnterpriseServiceImpl implements ITAutomobileEnterpriseS
* @return 结果
*/
@Override
public
int
delete
T
AutomobileEnterpriseById
(
Long
id
)
public
int
deleteAutomobileEnterpriseById
(
Long
id
)
{
return
tAutomobileEnterpriseMapper
.
deleteT
AutomobileEnterpriseById
(
id
);
return
automobileEnterpriseMapper
.
delete
AutomobileEnterpriseById
(
id
);
}
}
quality-review/src/main/java/com/ruoyi/web/
T
AutomobileEnterpriseController.java
→
quality-review/src/main/java/com/ruoyi/web/AutomobileEnterpriseController.java
View file @
a5bd381a
...
...
@@ -4,8 +4,11 @@ import java.util.List;
import
javax.servlet.http.HttpServletResponse
;
import
com.ruoyi.common.annotation.Anonymous
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
com.ruoyi.common.core.domain.R
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
...
...
@@ -18,8 +21,8 @@ import com.ruoyi.common.annotation.Log;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.domain.
T
AutomobileEnterprise
;
import
com.ruoyi.service.I
T
AutomobileEnterpriseService
;
import
com.ruoyi.domain.AutomobileEnterprise
;
import
com.ruoyi.service.IAutomobileEnterpriseService
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
...
...
@@ -29,22 +32,23 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @author gxk
* @date 2024-01-05
*/
@Api
(
tags
=
{
"车企信息"
})
@RestController
@RequestMapping
(
"/system/enterprise"
)
public
class
T
AutomobileEnterpriseController
extends
BaseController
public
class
AutomobileEnterpriseController
extends
BaseController
{
@Autowired
private
I
TAutomobileEnterpriseService
tA
utomobileEnterpriseService
;
private
I
AutomobileEnterpriseService
a
utomobileEnterpriseService
;
/**
* 查询车企信息列表
*/
@A
nonymous
@A
piOperation
(
"分页查询车企信息列表"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TAutomobileEnterprise
tA
utomobileEnterprise
)
public
TableDataInfo
list
(
AutomobileEnterprise
a
utomobileEnterprise
)
{
startPage
();
List
<
TAutomobileEnterprise
>
list
=
tAutomobileEnterpriseService
.
selectTAutomobileEnterpriseList
(
tA
utomobileEnterprise
);
List
<
AutomobileEnterprise
>
list
=
automobileEnterpriseService
.
selectAutomobileEnterpriseList
(
a
utomobileEnterprise
);
return
getDataTable
(
list
);
}
...
...
@@ -52,51 +56,55 @@ public class TAutomobileEnterpriseController extends BaseController
* 导出车企信息列表
*/
@Log
(
title
=
"车企信息"
,
businessType
=
BusinessType
.
EXPORT
)
@ApiOperation
(
"导出车企信息列表"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
TAutomobileEnterprise
tA
utomobileEnterprise
)
public
void
export
(
HttpServletResponse
response
,
AutomobileEnterprise
a
utomobileEnterprise
)
{
List
<
TAutomobileEnterprise
>
list
=
tAutomobileEnterpriseService
.
selectTAutomobileEnterpriseList
(
tA
utomobileEnterprise
);
ExcelUtil
<
TAutomobileEnterprise
>
util
=
new
ExcelUtil
<
TAutomobileEnterprise
>(
T
AutomobileEnterprise
.
class
);
List
<
AutomobileEnterprise
>
list
=
automobileEnterpriseService
.
selectAutomobileEnterpriseList
(
a
utomobileEnterprise
);
ExcelUtil
<
AutomobileEnterprise
>
util
=
new
ExcelUtil
<
AutomobileEnterprise
>(
AutomobileEnterprise
.
class
);
util
.
exportExcel
(
response
,
list
,
"车企信息数据"
);
}
/**
* 获取车企信息详细信息
*/
@ApiOperation
(
"获取车企信息详细信息"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
public
R
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
tAutomobileEnterpriseService
.
selectT
AutomobileEnterpriseById
(
id
));
return
R
.
ok
(
automobileEnterpriseService
.
select
AutomobileEnterpriseById
(
id
));
}
/**
* 新增车企信息
*/
@A
nonymous
@A
piOperation
(
"新增车企信息"
)
@Log
(
title
=
"车企信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TAutomobileEnterprise
tA
utomobileEnterprise
)
public
R
add
(
@RequestBody
AutomobileEnterprise
a
utomobileEnterprise
)
{
return
toAjax
(
tAutomobileEnterpriseService
.
insertTAutomobileEnterprise
(
tA
utomobileEnterprise
));
return
R
.
ok
(
automobileEnterpriseService
.
insertAutomobileEnterprise
(
a
utomobileEnterprise
));
}
/**
* 修改车企信息
*/
@ApiOperation
(
"修改车企信息"
)
@Log
(
title
=
"车企信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TAutomobileEnterprise
tA
utomobileEnterprise
)
public
R
edit
(
@RequestBody
AutomobileEnterprise
a
utomobileEnterprise
)
{
return
toAjax
(
tAutomobileEnterpriseService
.
updateTAutomobileEnterprise
(
tA
utomobileEnterprise
));
return
R
.
ok
(
automobileEnterpriseService
.
updateAutomobileEnterprise
(
a
utomobileEnterprise
));
}
/**
* 删除车企信息
*/
@ApiOperation
(
"删除车企信息"
)
@Log
(
title
=
"车企信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
public
R
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
tAutomobileEnterpriseService
.
deleteT
AutomobileEnterpriseByIds
(
ids
));
return
R
.
ok
(
automobileEnterpriseService
.
delete
AutomobileEnterpriseByIds
(
ids
));
}
}
quality-review/src/main/resources/mapper/
T
AutomobileEnterpriseMapper.xml
→
quality-review/src/main/resources/mapper/AutomobileEnterpriseMapper.xml
View file @
a5bd381a
...
...
@@ -2,9 +2,9 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ruoyi.mapper.
T
AutomobileEnterpriseMapper"
>
<mapper
namespace=
"com.ruoyi.mapper.AutomobileEnterpriseMapper"
>
<resultMap
type=
"com.ruoyi.domain.
TAutomobileEnterprise"
id=
"T
AutomobileEnterpriseResult"
>
<resultMap
type=
"com.ruoyi.domain.
AutomobileEnterprise"
id=
"
AutomobileEnterpriseResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"enterpriseName"
column=
"enterprise_name"
/>
<result
property=
"address"
column=
"address"
/>
...
...
@@ -17,7 +17,7 @@
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
<sql
id=
"select
T
AutomobileEnterpriseVo"
>
<sql
id=
"selectAutomobileEnterpriseVo"
>
select id,
enterprise_name,
address,
...
...
@@ -31,9 +31,9 @@
from t_automobile_enterprise
</sql>
<select
id=
"select
TAutomobileEnterpriseList"
parameterType=
"T
AutomobileEnterprise"
resultMap=
"
T
AutomobileEnterpriseResult"
>
<include
refid=
"select
T
AutomobileEnterpriseVo"
/>
<select
id=
"select
AutomobileEnterpriseList"
parameterType=
"com.ruoyi.domain.
AutomobileEnterprise"
resultMap=
"AutomobileEnterpriseResult"
>
<include
refid=
"selectAutomobileEnterpriseVo"
/>
<where>
<if
test=
"enterpriseName != null and enterpriseName != ''"
>
and enterprise_name like concat('%',
#{enterpriseName}, '%')
...
...
@@ -47,12 +47,12 @@
</where>
</select>
<select
id=
"select
TAutomobileEnterpriseById"
parameterType=
"Long"
resultMap=
"T
AutomobileEnterpriseResult"
>
<include
refid=
"select
T
AutomobileEnterpriseVo"
/>
<select
id=
"select
AutomobileEnterpriseById"
parameterType=
"Long"
resultMap=
"
AutomobileEnterpriseResult"
>
<include
refid=
"selectAutomobileEnterpriseVo"
/>
where id = #{id}
</select>
<insert
id=
"insert
TAutomobileEnterprise"
parameterType=
"T
AutomobileEnterprise"
>
<insert
id=
"insert
AutomobileEnterprise"
parameterType=
"com.ruoyi.domain.
AutomobileEnterprise"
>
insert into t_automobile_enterprise
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
...
...
@@ -80,7 +80,7 @@
</trim>
</insert>
<update
id=
"update
TAutomobileEnterprise"
parameterType=
"T
AutomobileEnterprise"
>
<update
id=
"update
AutomobileEnterprise"
parameterType=
"com.ruoyi.domain.
AutomobileEnterprise"
>
update t_automobile_enterprise
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"enterpriseName != null"
>
enterprise_name = #{enterpriseName},
</if>
...
...
@@ -96,13 +96,13 @@
where id = #{id}
</update>
<delete
id=
"delete
T
AutomobileEnterpriseById"
parameterType=
"Long"
>
<delete
id=
"deleteAutomobileEnterpriseById"
parameterType=
"Long"
>
delete
from t_automobile_enterprise
where id = #{id}
</delete>
<delete
id=
"delete
T
AutomobileEnterpriseByIds"
parameterType=
"String"
>
<delete
id=
"deleteAutomobileEnterpriseByIds"
parameterType=
"String"
>
delete from t_automobile_enterprise where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
...
...
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