Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
relation
Commits
15b20023
Commit
15b20023
authored
Aug 03, 2025
by
wujipeng
Browse files
表名修改
parent
b051802b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/platform/model/entity/CaseEntity.java
→
src/main/java/com/platform/model/entity/Case
s
Entity.java
View file @
15b20023
...
@@ -11,8 +11,8 @@ import lombok.Data;
...
@@ -11,8 +11,8 @@ import lombok.Data;
import
java.util.Date
;
import
java.util.Date
;
@Data
@Data
@TableName
(
"case"
)
@TableName
(
"case
s
"
)
public
class
CaseEntity
{
public
class
Case
s
Entity
{
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
...
...
src/main/resources/com/platform/mapper/CaseMapper.xml
View file @
15b20023
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.platform.mapper.CaseMapper"
>
<mapper
namespace=
"com.platform.mapper.CaseMapper"
>
<insert
id=
"saveCase"
>
<insert
id=
"saveCase"
>
insert into
`
case
`
(status, den_name, case_code, create_by, create_time, last_update_time)
insert into case
s
(status, den_name, case_code, create_by, create_time, last_update_time)
values (#{status}, #{denName}, #{caseCode}, #{createBy}, #{createTime}, #{lastUpdateTime})
values (#{status}, #{denName}, #{caseCode}, #{createBy}, #{createTime}, #{lastUpdateTime})
</insert>
</insert>
<update
id=
"updateCase"
>
<update
id=
"updateCase"
>
update
`
case
`
update case
s
<set>
<set>
<if
test=
"status != null"
>
<if
test=
"status != null"
>
status = #{status},
status = #{status},
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
where id = #{id}
where id = #{id}
</update>
</update>
<delete
id=
"removeBatchCase"
>
<delete
id=
"removeBatchCase"
>
delete from
`
case
`
where id in
delete from case
s
where id in
<foreach
item=
"item"
collection=
"ids"
separator=
","
open=
"("
close=
")"
>
<foreach
item=
"item"
collection=
"ids"
separator=
","
open=
"("
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
create_time,
create_time,
last_update_time,
last_update_time,
template_id
template_id
from
`
case
`
from case
s
<where>
<where>
<if
test=
"caseCode != null and caseCode != ''"
>
<if
test=
"caseCode != null and caseCode != ''"
>
and case_code like concat('%', #{caseCode}, '%')
and case_code like concat('%', #{caseCode}, '%')
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
select
select
*
*
from
from
`
case
`
case
s
where
where
id = #{id}
id = #{id}
</select>
</select>
...
...
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