Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd_school
Commits
728ea388
Commit
728ea388
authored
Mar 17, 2025
by
baochunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#添加学生获奖信息
parent
cc5f141a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
631 additions
and
0 deletions
+631
-0
ruoyi-ui/src/api/smartSchool/studenAwark/bhs.js
+44
-0
ruoyi-ui/src/views/smartSchool/studenAwark/index.vue
+0
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/studenAwardBgs/SchoolStudentAwardBhsController.java
+98
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/studenAwardBgs/SchoolStudentAwardBhs.java
+175
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/studenAwardBgs/SchoolStudentAwardBhsMapper.java
+61
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/studenAwardBgs/SchoolStudentAwardBhsServiceImpl.java
+94
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/studenAwardBgs/ISchoolStudentAwardBhsService.java
+62
-0
smart-campus/src/main/resources/mapper/studenAwark/SchoolStudentAwardBhsMapper.xml
+97
-0
No files found.
ruoyi-ui/src/api/smartSchool/studenAwark/bhs.js
0 → 100644
View file @
728ea388
import
request
from
'@/utils/request'
// 查询学生获奖-办公室列表
export
function
listBhs
(
query
)
{
return
request
({
url
:
'/awarkbhs/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询学生获奖-办公室详细
export
function
getBhs
(
id
)
{
return
request
({
url
:
'/awarkbhs/'
+
id
,
method
:
'get'
})
}
// 新增学生获奖-办公室
export
function
addBhs
(
data
)
{
return
request
({
url
:
'/awarkbhs'
,
method
:
'post'
,
data
:
data
})
}
// 修改学生获奖-办公室
export
function
updateBhs
(
data
)
{
return
request
({
url
:
'/awarkbhs'
,
method
:
'put'
,
data
:
data
})
}
// 删除学生获奖-办公室
export
function
delBhs
(
id
)
{
return
request
({
url
:
'/awarkbhs/'
+
id
,
method
:
'delete'
})
}
ruoyi-ui/src/views/smartSchool/studenAwark/index.vue
0 → 100644
View file @
728ea388
This diff is collapsed.
Click to expand it.
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/studenAwardBgs/SchoolStudentAwardBhsController.java
0 → 100644
View file @
728ea388
package
yangtz
.
cs
.
liu
.
campus
.
controller
.
studenAwardBgs
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
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.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
yangtz.cs.liu.campus.domain.studenAwardBgs.SchoolStudentAwardBhs
;
import
yangtz.cs.liu.campus.service.studenAwardBgs.ISchoolStudentAwardBhsService
;
/**
* 学生获奖-办公室Controller
*
* @author ruoyi
* @date 2025-03-17
*/
@RestController
@RequestMapping
(
"/awarkbhs"
)
public
class
SchoolStudentAwardBhsController
extends
BaseController
{
@Autowired
private
ISchoolStudentAwardBhsService
schoolStudentAwardBhsService
;
/**
* 查询学生获奖-办公室列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SchoolStudentAwardBhs
schoolStudentAwardBhs
)
{
startPage
();
List
<
SchoolStudentAwardBhs
>
list
=
schoolStudentAwardBhsService
.
selectSchoolStudentAwardBhsList
(
schoolStudentAwardBhs
);
return
getDataTable
(
list
);
}
/**
* 导出学生获奖-办公室列表
*/
@Log
(
title
=
"学生获奖-办公室"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SchoolStudentAwardBhs
schoolStudentAwardBhs
)
{
List
<
SchoolStudentAwardBhs
>
list
=
schoolStudentAwardBhsService
.
selectSchoolStudentAwardBhsList
(
schoolStudentAwardBhs
);
ExcelUtil
<
SchoolStudentAwardBhs
>
util
=
new
ExcelUtil
<
SchoolStudentAwardBhs
>(
SchoolStudentAwardBhs
.
class
);
util
.
exportExcel
(
response
,
list
,
"学生获奖-办公室数据"
);
}
/**
* 获取学生获奖-办公室详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
schoolStudentAwardBhsService
.
selectSchoolStudentAwardBhsById
(
id
));
}
/**
* 新增学生获奖-办公室
*/
@Log
(
title
=
"学生获奖-办公室"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
SchoolStudentAwardBhs
schoolStudentAwardBhs
)
{
return
toAjax
(
schoolStudentAwardBhsService
.
insertSchoolStudentAwardBhs
(
schoolStudentAwardBhs
));
}
/**
* 修改学生获奖-办公室
*/
@Log
(
title
=
"学生获奖-办公室"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
SchoolStudentAwardBhs
schoolStudentAwardBhs
)
{
return
toAjax
(
schoolStudentAwardBhsService
.
updateSchoolStudentAwardBhs
(
schoolStudentAwardBhs
));
}
/**
* 删除学生获奖-办公室
*/
@Log
(
title
=
"学生获奖-办公室"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
schoolStudentAwardBhsService
.
deleteSchoolStudentAwardBhsByIds
(
ids
));
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/studenAwardBgs/SchoolStudentAwardBhs.java
0 → 100644
View file @
728ea388
package
yangtz
.
cs
.
liu
.
campus
.
domain
.
studenAwardBgs
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
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
;
/**
* 学生获奖-办公室对象 school_student_award_bhs
*
* @author ruoyi
* @date 2025-03-17
*/
public
class
SchoolStudentAwardBhs
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* $column.columnComment
*/
private
Long
id
;
/**
* 届
*/
@Excel
(
name
=
"届"
)
private
String
session
;
/**
* 年级
*/
@Excel
(
name
=
"年级"
)
private
String
grade
;
/**
* 班级名称
*/
@Excel
(
name
=
"班级名称"
)
private
String
className
;
/**
* 获奖级别
*/
@Excel
(
name
=
"获奖级别"
)
private
String
awardType
;
/**
* 名称
*/
@Excel
(
name
=
"名称"
)
private
String
name
;
/**
* 单位
*/
@Excel
(
name
=
"单位"
)
private
String
schoolUnit
;
/**
* 指导老师
*/
@Excel
(
name
=
"指导老师"
)
private
String
guidanceTeacher
;
/**
* 获奖时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"获奖时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
awardTime
;
/**
* 附件
*/
@Excel
(
name
=
"附件"
)
private
String
file
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setSession
(
String
session
)
{
this
.
session
=
session
;
}
public
String
getSession
()
{
return
session
;
}
public
void
setGrade
(
String
grade
)
{
this
.
grade
=
grade
;
}
public
String
getGrade
()
{
return
grade
;
}
public
void
setClassName
(
String
className
)
{
this
.
className
=
className
;
}
public
String
getClassName
()
{
return
className
;
}
public
void
setAwardType
(
String
awardType
)
{
this
.
awardType
=
awardType
;
}
public
String
getAwardType
()
{
return
awardType
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getName
()
{
return
name
;
}
public
void
setSchoolUnit
(
String
schoolUnit
)
{
this
.
schoolUnit
=
schoolUnit
;
}
public
String
getSchoolUnit
()
{
return
schoolUnit
;
}
public
void
setGuidanceTeacher
(
String
guidanceTeacher
)
{
this
.
guidanceTeacher
=
guidanceTeacher
;
}
public
String
getGuidanceTeacher
()
{
return
guidanceTeacher
;
}
public
void
setAwardTime
(
Date
awardTime
)
{
this
.
awardTime
=
awardTime
;
}
public
Date
getAwardTime
()
{
return
awardTime
;
}
public
void
setFile
(
String
file
)
{
this
.
file
=
file
;
}
public
String
getFile
()
{
return
file
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"session"
,
getSession
())
.
append
(
"grade"
,
getGrade
())
.
append
(
"className"
,
getClassName
())
.
append
(
"awardType"
,
getAwardType
())
.
append
(
"name"
,
getName
())
.
append
(
"schoolUnit"
,
getSchoolUnit
())
.
append
(
"guidanceTeacher"
,
getGuidanceTeacher
())
.
append
(
"awardTime"
,
getAwardTime
())
.
append
(
"file"
,
getFile
())
.
toString
();
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/studenAwardBgs/SchoolStudentAwardBhsMapper.java
0 → 100644
View file @
728ea388
package
yangtz
.
cs
.
liu
.
campus
.
mapper
.
studenAwardBgs
;
import
java.util.List
;
import
yangtz.cs.liu.campus.domain.studenAwardBgs.SchoolStudentAwardBhs
;
/**
* 学生获奖-办公室Mapper接口
*
* @author ruoyi
* @date 2025-03-17
*/
public
interface
SchoolStudentAwardBhsMapper
{
/**
* 查询学生获奖-办公室
*
* @param id 学生获奖-办公室主键
* @return 学生获奖-办公室
*/
public
SchoolStudentAwardBhs
selectSchoolStudentAwardBhsById
(
Long
id
);
/**
* 查询学生获奖-办公室列表
*
* @param schoolStudentAwardBhs 学生获奖-办公室
* @return 学生获奖-办公室集合
*/
public
List
<
SchoolStudentAwardBhs
>
selectSchoolStudentAwardBhsList
(
SchoolStudentAwardBhs
schoolStudentAwardBhs
);
/**
* 新增学生获奖-办公室
*
* @param schoolStudentAwardBhs 学生获奖-办公室
* @return 结果
*/
public
int
insertSchoolStudentAwardBhs
(
SchoolStudentAwardBhs
schoolStudentAwardBhs
);
/**
* 修改学生获奖-办公室
*
* @param schoolStudentAwardBhs 学生获奖-办公室
* @return 结果
*/
public
int
updateSchoolStudentAwardBhs
(
SchoolStudentAwardBhs
schoolStudentAwardBhs
);
/**
* 删除学生获奖-办公室
*
* @param id 学生获奖-办公室主键
* @return 结果
*/
public
int
deleteSchoolStudentAwardBhsById
(
Long
id
);
/**
* 批量删除学生获奖-办公室
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteSchoolStudentAwardBhsByIds
(
Long
[]
ids
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/studenAwardBgs/SchoolStudentAwardBhsServiceImpl.java
0 → 100644
View file @
728ea388
package
yangtz
.
cs
.
liu
.
campus
.
service
.
impl
.
studenAwardBgs
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
yangtz.cs.liu.campus.domain.studenAwardBgs.SchoolStudentAwardBhs
;
import
yangtz.cs.liu.campus.mapper.studenAwardBgs.SchoolStudentAwardBhsMapper
;
import
yangtz.cs.liu.campus.service.studenAwardBgs.ISchoolStudentAwardBhsService
;
/**
* 学生获奖-办公室Service业务层处理
*
* @author ruoyi
* @date 2025-03-17
*/
@Service
public
class
SchoolStudentAwardBhsServiceImpl
implements
ISchoolStudentAwardBhsService
{
@Autowired
private
SchoolStudentAwardBhsMapper
schoolStudentAwardBhsMapper
;
/**
* 查询学生获奖-办公室
*
* @param id 学生获奖-办公室主键
* @return 学生获奖-办公室
*/
@Override
public
SchoolStudentAwardBhs
selectSchoolStudentAwardBhsById
(
Long
id
)
{
return
schoolStudentAwardBhsMapper
.
selectSchoolStudentAwardBhsById
(
id
);
}
/**
* 查询学生获奖-办公室列表
*
* @param schoolStudentAwardBhs 学生获奖-办公室
* @return 学生获奖-办公室
*/
@Override
public
List
<
SchoolStudentAwardBhs
>
selectSchoolStudentAwardBhsList
(
SchoolStudentAwardBhs
schoolStudentAwardBhs
)
{
return
schoolStudentAwardBhsMapper
.
selectSchoolStudentAwardBhsList
(
schoolStudentAwardBhs
);
}
/**
* 新增学生获奖-办公室
*
* @param schoolStudentAwardBhs 学生获奖-办公室
* @return 结果
*/
@Override
public
int
insertSchoolStudentAwardBhs
(
SchoolStudentAwardBhs
schoolStudentAwardBhs
)
{
return
schoolStudentAwardBhsMapper
.
insertSchoolStudentAwardBhs
(
schoolStudentAwardBhs
);
}
/**
* 修改学生获奖-办公室
*
* @param schoolStudentAwardBhs 学生获奖-办公室
* @return 结果
*/
@Override
public
int
updateSchoolStudentAwardBhs
(
SchoolStudentAwardBhs
schoolStudentAwardBhs
)
{
return
schoolStudentAwardBhsMapper
.
updateSchoolStudentAwardBhs
(
schoolStudentAwardBhs
);
}
/**
* 批量删除学生获奖-办公室
*
* @param ids 需要删除的学生获奖-办公室主键
* @return 结果
*/
@Override
public
int
deleteSchoolStudentAwardBhsByIds
(
Long
[]
ids
)
{
return
schoolStudentAwardBhsMapper
.
deleteSchoolStudentAwardBhsByIds
(
ids
);
}
/**
* 删除学生获奖-办公室信息
*
* @param id 学生获奖-办公室主键
* @return 结果
*/
@Override
public
int
deleteSchoolStudentAwardBhsById
(
Long
id
)
{
return
schoolStudentAwardBhsMapper
.
deleteSchoolStudentAwardBhsById
(
id
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/studenAwardBgs/ISchoolStudentAwardBhsService.java
0 → 100644
View file @
728ea388
package
yangtz
.
cs
.
liu
.
campus
.
service
.
studenAwardBgs
;
import
yangtz.cs.liu.campus.domain.studenAwardBgs.SchoolStudentAwardBhs
;
import
java.util.List
;
/**
* 学生获奖-办公室Service接口
*
* @author ruoyi
* @date 2025-03-17
*/
public
interface
ISchoolStudentAwardBhsService
{
/**
* 查询学生获奖-办公室
*
* @param id 学生获奖-办公室主键
* @return 学生获奖-办公室
*/
public
SchoolStudentAwardBhs
selectSchoolStudentAwardBhsById
(
Long
id
);
/**
* 查询学生获奖-办公室列表
*
* @param schoolStudentAwardBhs 学生获奖-办公室
* @return 学生获奖-办公室集合
*/
public
List
<
SchoolStudentAwardBhs
>
selectSchoolStudentAwardBhsList
(
SchoolStudentAwardBhs
schoolStudentAwardBhs
);
/**
* 新增学生获奖-办公室
*
* @param schoolStudentAwardBhs 学生获奖-办公室
* @return 结果
*/
public
int
insertSchoolStudentAwardBhs
(
SchoolStudentAwardBhs
schoolStudentAwardBhs
);
/**
* 修改学生获奖-办公室
*
* @param schoolStudentAwardBhs 学生获奖-办公室
* @return 结果
*/
public
int
updateSchoolStudentAwardBhs
(
SchoolStudentAwardBhs
schoolStudentAwardBhs
);
/**
* 批量删除学生获奖-办公室
*
* @param ids 需要删除的学生获奖-办公室主键集合
* @return 结果
*/
public
int
deleteSchoolStudentAwardBhsByIds
(
Long
[]
ids
);
/**
* 删除学生获奖-办公室信息
*
* @param id 学生获奖-办公室主键
* @return 结果
*/
public
int
deleteSchoolStudentAwardBhsById
(
Long
id
);
}
smart-campus/src/main/resources/mapper/studenAwark/SchoolStudentAwardBhsMapper.xml
0 → 100644
View file @
728ea388
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"yangtz.cs.liu.campus.mapper.studenAwardBgs.SchoolStudentAwardBhsMapper"
>
<resultMap
type=
"SchoolStudentAwardBhs"
id=
"SchoolStudentAwardBhsResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"session"
column=
"session"
/>
<result
property=
"grade"
column=
"grade"
/>
<result
property=
"className"
column=
"class_name"
/>
<result
property=
"awardType"
column=
"award_type"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"schoolUnit"
column=
"school_unit"
/>
<result
property=
"guidanceTeacher"
column=
"guidance_teacher"
/>
<result
property=
"awardTime"
column=
"award_time"
/>
<result
property=
"file"
column=
"file"
/>
</resultMap>
<sql
id=
"selectSchoolStudentAwardBhsVo"
>
select id, session, grade, class_name, award_type, name, school_unit, guidance_teacher, award_time, file from school_student_award_bhs
</sql>
<select
id=
"selectSchoolStudentAwardBhsList"
parameterType=
"SchoolStudentAwardBhs"
resultMap=
"SchoolStudentAwardBhsResult"
>
<include
refid=
"selectSchoolStudentAwardBhsVo"
/>
<where>
<if
test=
"session != null and session != ''"
>
and session = #{session}
</if>
<if
test=
"grade != null and grade != ''"
>
and grade = #{grade}
</if>
<if
test=
"className != null and className != ''"
>
and class_name like concat('%', #{className}, '%')
</if>
<if
test=
"awardType != null and awardType != ''"
>
and award_type = #{awardType}
</if>
<if
test=
"name != null and name != ''"
>
and name like concat('%', #{name}, '%')
</if>
<if
test=
"schoolUnit != null and schoolUnit != ''"
>
and school_unit = #{schoolUnit}
</if>
<if
test=
"guidanceTeacher != null and guidanceTeacher != ''"
>
and guidance_teacher = #{guidanceTeacher}
</if>
<if
test=
"awardTime != null "
>
and award_time = #{awardTime}
</if>
<if
test=
"file != null and file != ''"
>
and file = #{file}
</if>
</where>
</select>
<select
id=
"selectSchoolStudentAwardBhsById"
parameterType=
"Long"
resultMap=
"SchoolStudentAwardBhsResult"
>
<include
refid=
"selectSchoolStudentAwardBhsVo"
/>
where id = #{id}
</select>
<insert
id=
"insertSchoolStudentAwardBhs"
parameterType=
"SchoolStudentAwardBhs"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into school_student_award_bhs
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"session != null and session != ''"
>
session,
</if>
<if
test=
"grade != null and grade != ''"
>
grade,
</if>
<if
test=
"className != null and className != ''"
>
class_name,
</if>
<if
test=
"awardType != null and awardType != ''"
>
award_type,
</if>
<if
test=
"name != null and name != ''"
>
name,
</if>
<if
test=
"schoolUnit != null"
>
school_unit,
</if>
<if
test=
"guidanceTeacher != null"
>
guidance_teacher,
</if>
<if
test=
"awardTime != null"
>
award_time,
</if>
<if
test=
"file != null"
>
file,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"session != null and session != ''"
>
#{session},
</if>
<if
test=
"grade != null and grade != ''"
>
#{grade},
</if>
<if
test=
"className != null and className != ''"
>
#{className},
</if>
<if
test=
"awardType != null and awardType != ''"
>
#{awardType},
</if>
<if
test=
"name != null and name != ''"
>
#{name},
</if>
<if
test=
"schoolUnit != null"
>
#{schoolUnit},
</if>
<if
test=
"guidanceTeacher != null"
>
#{guidanceTeacher},
</if>
<if
test=
"awardTime != null"
>
#{awardTime},
</if>
<if
test=
"file != null"
>
#{file},
</if>
</trim>
</insert>
<update
id=
"updateSchoolStudentAwardBhs"
parameterType=
"SchoolStudentAwardBhs"
>
update school_student_award_bhs
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"session != null and session != ''"
>
session = #{session},
</if>
<if
test=
"grade != null and grade != ''"
>
grade = #{grade},
</if>
<if
test=
"className != null and className != ''"
>
class_name = #{className},
</if>
<if
test=
"awardType != null and awardType != ''"
>
award_type = #{awardType},
</if>
<if
test=
"name != null and name != ''"
>
name = #{name},
</if>
<if
test=
"schoolUnit != null"
>
school_unit = #{schoolUnit},
</if>
<if
test=
"guidanceTeacher != null"
>
guidance_teacher = #{guidanceTeacher},
</if>
<if
test=
"awardTime != null"
>
award_time = #{awardTime},
</if>
<if
test=
"file != null"
>
file = #{file},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteSchoolStudentAwardBhsById"
parameterType=
"Long"
>
delete from school_student_award_bhs where id = #{id}
</delete>
<delete
id=
"deleteSchoolStudentAwardBhsByIds"
parameterType=
"String"
>
delete from school_student_award_bhs where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
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