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
e7a3550b
Commit
e7a3550b
authored
Jan 05, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车企信息 - 删除多余代码
parent
ddb109c4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
78 deletions
+8
-78
AutomobileEnterpriseMapper.java
...ain/java/com/ruoyi/mapper/AutomobileEnterpriseMapper.java
+0
-15
AutomobileEnterpriseService.java
...n/java/com/ruoyi/service/AutomobileEnterpriseService.java
+4
-16
AutomobileEnterpriseServiceImpl.java
...m/ruoyi/service/impl/AutomobileEnterpriseServiceImpl.java
+1
-32
AutomobileEnterpriseController.java
...in/java/com/ruoyi/web/AutomobileEnterpriseController.java
+3
-2
AutomobileEnterpriseMapper.xml
.../src/main/resources/mapper/AutomobileEnterpriseMapper.xml
+0
-13
No files found.
quality-review/src/main/java/com/ruoyi/mapper/AutomobileEnterpriseMapper.java
View file @
e7a3550b
...
@@ -48,19 +48,4 @@ public interface AutomobileEnterpriseMapper extends BaseMapper<AutomobileEnterpr
...
@@ -48,19 +48,4 @@ public interface AutomobileEnterpriseMapper extends BaseMapper<AutomobileEnterpr
*/
*/
public
int
updateAutomobileEnterprise
(
AutomobileEnterprise
automobileEnterprise
);
public
int
updateAutomobileEnterprise
(
AutomobileEnterprise
automobileEnterprise
);
/**
* 删除车企信息
*
* @param id 车企信息主键
* @return 结果
*/
public
int
deleteAutomobileEnterpriseById
(
Long
id
);
/**
* 批量删除车企信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteAutomobileEnterpriseByIds
(
Long
[]
ids
);
}
}
quality-review/src/main/java/com/ruoyi/service/AutomobileEnterpriseService.java
View file @
e7a3550b
...
@@ -7,6 +7,9 @@ import com.ruoyi.domain.AutomobileEnterprise;
...
@@ -7,6 +7,9 @@ import com.ruoyi.domain.AutomobileEnterprise;
import
com.ruoyi.web.request.AutomobileEnterpriseListRequest
;
import
com.ruoyi.web.request.AutomobileEnterpriseListRequest
;
/**
* @author gxk
*/
public
interface
AutomobileEnterpriseService
extends
IService
<
AutomobileEnterprise
>
public
interface
AutomobileEnterpriseService
extends
IService
<
AutomobileEnterprise
>
{
{
/**
/**
...
@@ -20,7 +23,7 @@ public interface AutomobileEnterpriseService extends IService<AutomobileEnterpri
...
@@ -20,7 +23,7 @@ public interface AutomobileEnterpriseService extends IService<AutomobileEnterpri
/**
/**
* 查询车企信息列表
* 查询车企信息列表
*
*
* @param
automobileEnterprise
车企信息
* @param
request
车企信息
* @return 车企信息集合
* @return 车企信息集合
*/
*/
public
List
<
AutomobileEnterprise
>
selectAutomobileEnterpriseList
(
AutomobileEnterpriseListRequest
request
);
public
List
<
AutomobileEnterprise
>
selectAutomobileEnterpriseList
(
AutomobileEnterpriseListRequest
request
);
...
@@ -41,19 +44,4 @@ public interface AutomobileEnterpriseService extends IService<AutomobileEnterpri
...
@@ -41,19 +44,4 @@ public interface AutomobileEnterpriseService extends IService<AutomobileEnterpri
*/
*/
public
int
updateAutomobileEnterprise
(
AutomobileEnterprise
automobileEnterprise
);
public
int
updateAutomobileEnterprise
(
AutomobileEnterprise
automobileEnterprise
);
/**
* 批量删除车企信息
*
* @param ids 需要删除的车企信息主键集合
* @return 结果
*/
public
int
deleteAutomobileEnterpriseByIds
(
Long
[]
ids
);
/**
* 删除车企信息信息
*
* @param id 车企信息主键
* @return 结果
*/
public
int
deleteAutomobileEnterpriseById
(
Long
id
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/AutomobileEnterpriseServiceImpl.java
View file @
e7a3550b
package
com
.
ruoyi
.
service
.
impl
;
package
com
.
ruoyi
.
service
.
impl
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
...
@@ -42,7 +41,7 @@ public class AutomobileEnterpriseServiceImpl extends ServiceImpl<AutomobileEnter
...
@@ -42,7 +41,7 @@ public class AutomobileEnterpriseServiceImpl extends ServiceImpl<AutomobileEnter
/**
/**
* 查询车企信息列表
* 查询车企信息列表
*
*
* @param
automobileEnterprise
车企信息
* @param
request
车企信息
* @return 车企信息
* @return 车企信息
*/
*/
@Override
@Override
...
@@ -62,7 +61,6 @@ public class AutomobileEnterpriseServiceImpl extends ServiceImpl<AutomobileEnter
...
@@ -62,7 +61,6 @@ public class AutomobileEnterpriseServiceImpl extends ServiceImpl<AutomobileEnter
{
{
automobileEnterprise
.
setCreateTime
(
DateUtils
.
getNowDate
());
automobileEnterprise
.
setCreateTime
(
DateUtils
.
getNowDate
());
automobileEnterprise
.
setCreateBy
(
String
.
valueOf
(
SecurityUtils
.
getUserId
()));
automobileEnterprise
.
setCreateBy
(
String
.
valueOf
(
SecurityUtils
.
getUserId
()));
automobileEnterprise
.
setDeleted
(
0
);
return
automobileEnterpriseMapper
.
insert
(
automobileEnterprise
);
return
automobileEnterpriseMapper
.
insert
(
automobileEnterprise
);
}
}
...
@@ -80,33 +78,4 @@ public class AutomobileEnterpriseServiceImpl extends ServiceImpl<AutomobileEnter
...
@@ -80,33 +78,4 @@ public class AutomobileEnterpriseServiceImpl extends ServiceImpl<AutomobileEnter
return
automobileEnterpriseMapper
.
updateAutomobileEnterprise
(
automobileEnterprise
);
return
automobileEnterpriseMapper
.
updateAutomobileEnterprise
(
automobileEnterprise
);
}
}
/**
* 批量删除车企信息
*
* @param ids 需要删除的车企信息主键
* @return 结果
*/
@Override
public
int
deleteAutomobileEnterpriseByIds
(
Long
[]
ids
)
{
Arrays
.
stream
(
ids
).
forEach
(
id
->
{
lambdaUpdate
()
.
eq
(
AutomobileEnterprise:
:
getId
,
id
)
.
set
(
AutomobileEnterprise:
:
getDeleted
,
1
)
.
update
();
});
return
1
;
}
/**
* 删除车企信息信息
*
* @param id 车企信息主键
* @return 结果
*/
@Override
public
int
deleteAutomobileEnterpriseById
(
Long
id
)
{
return
automobileEnterpriseMapper
.
deleteAutomobileEnterpriseById
(
id
);
}
}
}
quality-review/src/main/java/com/ruoyi/web/AutomobileEnterpriseController.java
View file @
e7a3550b
package
com
.
ruoyi
.
web
;
package
com
.
ruoyi
.
web
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -101,8 +102,8 @@ public class AutomobileEnterpriseController extends BaseController
...
@@ -101,8 +102,8 @@ public class AutomobileEnterpriseController extends BaseController
@ApiOperation
(
"删除车企信息"
)
@ApiOperation
(
"删除车企信息"
)
@Log
(
title
=
"车企信息"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"车企信息"
,
businessType
=
BusinessType
.
DELETE
)
@PostMapping
(
"/remove"
)
@PostMapping
(
"/remove"
)
public
R
<
Integer
>
remove
(
@Validated
@RequestBody
AutomobileEnterpriseEditRequest
request
)
public
R
<
Boolean
>
remove
(
@Validated
@RequestBody
AutomobileEnterpriseEditRequest
request
)
{
{
return
R
.
ok
(
automobileEnterpriseService
.
deleteAutomobileEnterpriseByIds
(
request
.
getIds
(
)));
return
R
.
ok
(
automobileEnterpriseService
.
removeBatchByIds
(
Arrays
.
asList
(
request
.
getIds
()
)));
}
}
}
}
quality-review/src/main/resources/mapper/AutomobileEnterpriseMapper.xml
View file @
e7a3550b
...
@@ -98,17 +98,4 @@
...
@@ -98,17 +98,4 @@
</trim>
</trim>
where id = #{id}
where id = #{id}
</update>
</update>
<delete
id=
"deleteAutomobileEnterpriseById"
parameterType=
"Long"
>
delete
from t_automobile_enterprise
where id = #{id}
</delete>
<delete
id=
"deleteAutomobileEnterpriseByIds"
parameterType=
"String"
>
delete from t_automobile_enterprise where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
</mapper>
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