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
276db3da
Commit
276db3da
authored
Dec 13, 2023
by
xty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023/12/13
parent
23b03d41
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
758 additions
and
0 deletions
+758
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/fudao/FudaoStudentController.java
+76
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/fudao/FudaoTeacherController.java
+73
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/fudao/FudaoStudent.java
+70
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/fudao/FudaoTeacher.java
+72
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/fudao/FudaoStudentMapper.java
+19
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/fudao/FudaoTeacherMapper.java
+19
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/fudao/FudaoStudentService.java
+22
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/fudao/FudaoTeacherService.java
+22
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/fudao/FudaoStudentImpl.java
+56
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/fudao/FudaoTeacherImpl.java
+58
-0
smart-campus/src/main/resources/mapper/fudao/FudaoStudentMapper.xml
+137
-0
smart-campus/src/main/resources/mapper/fudao/FudaoTeacherMapper.xml
+134
-0
No files found.
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/fudao/FudaoStudentController.java
0 → 100644
View file @
276db3da
package
yangtz
.
cs
.
liu
.
campus
.
controller
.
fudao
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
yangtz.cs.liu.campus.domain.fudao.FudaoStudent
;
import
yangtz.cs.liu.campus.domain.fudao.FudaoTeacher
;
import
yangtz.cs.liu.campus.domain.schoolRewardsPunishments.SchoolScDiscipline
;
import
yangtz.cs.liu.campus.service.fudao.FudaoStudentService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
@RestController
@RequestMapping
(
"/school/fudaos"
)
public
class
FudaoStudentController
extends
BaseController
{
@Autowired
private
FudaoStudentService
fudaoStudentService
;
//查询辅导学生获奖列表
@GetMapping
(
"/studentlist"
)
public
TableDataInfo
list
(
FudaoStudent
fudaoStudent
){
startPage
();
List
<
FudaoStudent
>
list
=
fudaoStudentService
.
querylist
(
fudaoStudent
);
return
getDataTable
(
list
);
}
//新增辅导学生获奖(管理)
@PostMapping
(
"/addgl"
)
public
AjaxResult
addgl
(
@RequestBody
FudaoStudent
fudaoStudent
){
fudaoStudent
.
setAuditstate
(
"1"
);
return
toAjax
(
fudaoStudentService
.
insert
(
fudaoStudent
));
}
// 新增辅导学生获奖(个人)
@PostMapping
(
"/add"
)
public
AjaxResult
add
(
@RequestBody
FudaoStudent
fudaoStudent
){
return
toAjax
(
fudaoStudentService
.
insert
(
fudaoStudent
));
}
//删除
@DeleteMapping
(
"/delete/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
){
return
toAjax
(
fudaoStudentService
.
delete
(
ids
));
}
//修改
@PutMapping
(
"/edit"
)
public
AjaxResult
edit
(
@RequestBody
FudaoStudent
fudaoStudent
){
return
toAjax
(
fudaoStudentService
.
updatefudao
(
fudaoStudent
));
}
//导出
@PostMapping
(
"/export/{ids}"
)
public
void
export
(
HttpServletResponse
response
,
@PathVariable
(
"ids"
)
List
<
Integer
>
ids
)
{
List
<
FudaoStudent
>
list
=
fudaoStudentService
.
listByIds
(
ids
);
ExcelUtil
<
FudaoStudent
>
util
=
new
ExcelUtil
<>(
FudaoStudent
.
class
);
util
.
exportExcel
(
response
,
list
,
"辅导学生获奖"
);
}
//审核
@PutMapping
(
"/submit"
)
public
AjaxResult
submit
(
@RequestBody
FudaoStudent
fudaoStudent
)
{
return
toAjax
(
fudaoStudentService
.
updateById
(
fudaoStudent
));
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/fudao/FudaoTeacherController.java
0 → 100644
View file @
276db3da
package
yangtz
.
cs
.
liu
.
campus
.
controller
.
fudao
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
yangtz.cs.liu.campus.domain.fudao.FudaoStudent
;
import
yangtz.cs.liu.campus.domain.fudao.FudaoTeacher
;
import
yangtz.cs.liu.campus.domain.student.SchoolEducation
;
import
yangtz.cs.liu.campus.service.fudao.FudaoTeacherService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
@RestController
@RequestMapping
(
"/school/fudaot"
)
public
class
FudaoTeacherController
extends
BaseController
{
@Autowired
private
FudaoTeacherService
fudaoTeacherService
;
//查询辅导教师获奖列表
@GetMapping
(
"/teacher"
)
public
TableDataInfo
list
(
FudaoTeacher
fudaoTeacher
){
startPage
();
List
<
FudaoTeacher
>
list
=
fudaoTeacherService
.
querylist
(
fudaoTeacher
);
return
getDataTable
(
list
);
}
//新增辅导教师获奖(管理员)
@PostMapping
(
"/addgl"
)
public
AjaxResult
addgl
(
@RequestBody
FudaoTeacher
fudaoTeacher
){
fudaoTeacher
.
setAuditstate
(
"1"
);
return
toAjax
(
fudaoTeacherService
.
insert
(
fudaoTeacher
));
}
// 新增辅导教师获奖(个人)
@PostMapping
(
"/add"
)
public
AjaxResult
add
(
@RequestBody
FudaoTeacher
fudaoTeacher
){
return
toAjax
(
fudaoTeacherService
.
insert
(
fudaoTeacher
));
}
//删除
@DeleteMapping
(
"/delete/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
){
return
toAjax
(
fudaoTeacherService
.
delete
(
ids
));
}
//修改
@PutMapping
(
"/edit"
)
public
AjaxResult
edit
(
@RequestBody
FudaoTeacher
fudaoTeacher
){
return
toAjax
(
fudaoTeacherService
.
updatefudao
(
fudaoTeacher
));
}
//导出
@PostMapping
(
"/export/{ids}"
)
public
void
export
(
HttpServletResponse
response
,
@PathVariable
(
"ids"
)
List
<
Integer
>
ids
)
{
List
<
FudaoTeacher
>
list
=
fudaoTeacherService
.
listByIds
(
ids
);
ExcelUtil
<
FudaoTeacher
>
util
=
new
ExcelUtil
<>(
FudaoTeacher
.
class
);
util
.
exportExcel
(
response
,
list
,
"辅导教师获奖"
);
}
//审核
@PutMapping
(
"/submit"
)
public
AjaxResult
submit
(
@RequestBody
FudaoTeacher
fudaoTeacher
)
{
return
toAjax
(
fudaoTeacherService
.
updateById
(
fudaoTeacher
));
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/fudao/FudaoStudent.java
0 → 100644
View file @
276db3da
package
yangtz
.
cs
.
liu
.
campus
.
domain
.
fudao
;
import
com.core.domain.OurBaseEntity
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
FudaoStudent
extends
OurBaseEntity
{
//id
private
Long
id
;
//学科
private
String
sub
;
//获奖类别
private
String
awardtype
;
//审核状态
private
String
auditstate
;
//获奖级别
private
String
awardrank
;
//获奖等级
private
String
awardlevel
;
//成果名称
private
String
resultname
;
//指导教师
private
String
guidanceteacher
;
//获奖人id
private
Long
userid
;
//获奖人
private
String
username
;
//主办单位
private
String
org
;
//获奖时间
private
String
awardtime
;
//备注
private
String
remark
;
//证书图片名称
private
String
picturename
;
//证书图片地址
private
String
pictureurl
;
//创建人
private
String
createby
;
//创建时间
private
Date
createtime
;
//修改人
private
String
updateby
;
//修改时间
private
Date
updatetime
;
//删除状态
private
int
delflag
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/fudao/FudaoTeacher.java
0 → 100644
View file @
276db3da
package
yangtz
.
cs
.
liu
.
campus
.
domain
.
fudao
;
import
com.core.domain.OurBaseEntity
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
FudaoTeacher
extends
OurBaseEntity
{
//id
private
Long
id
;
//学科
private
String
sub
;
//获奖类别
private
String
awardtype
;
//获奖级别
private
String
awardrank
;
//获奖等级
private
String
awardlevel
;
//辅导职责
private
String
coachingr
;
//比赛名称
private
String
competitionname
;
//指导教师
private
String
guidanceteacher
;
//获奖人id
private
Long
userid
;
//获奖人
private
String
username
;
//主办单位
private
String
org
;
//审核状态
private
String
auditstate
;
//获奖时间
private
String
awardtime
;
//备注
private
String
remark
;
//证书图片名称
private
String
picturename
;
//证书图片地址
private
String
pictureurl
;
//创建人
private
String
createby
;
//创建时间
private
Date
createtime
;
//修改人
private
String
updateby
;
//修改时间
private
Date
updatetime
;
//删除状态
private
int
delflag
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/fudao/FudaoStudentMapper.java
0 → 100644
View file @
276db3da
package
yangtz
.
cs
.
liu
.
campus
.
mapper
.
fudao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
yangtz.cs.liu.campus.domain.fudao.FudaoStudent
;
import
yangtz.cs.liu.campus.domain.fudao.FudaoTeacher
;
import
java.util.List
;
@Mapper
public
interface
FudaoStudentMapper
extends
BaseMapper
<
FudaoStudent
>
{
List
<
FudaoStudent
>
querylist
(
FudaoStudent
fudaoStudent
);
public
int
add
(
FudaoStudent
fudaoStudent
);
public
int
deleteid
(
Long
[]
ids
);
public
int
updatefudao
(
FudaoStudent
fudaoStudent
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/fudao/FudaoTeacherMapper.java
0 → 100644
View file @
276db3da
package
yangtz
.
cs
.
liu
.
campus
.
mapper
.
fudao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
yangtz.cs.liu.campus.domain.fudao.FudaoTeacher
;
import
java.util.List
;
@Mapper
public
interface
FudaoTeacherMapper
extends
BaseMapper
<
FudaoTeacher
>
{
List
<
FudaoTeacher
>
querylist
(
FudaoTeacher
fudaoTeacher
);
public
int
add
(
FudaoTeacher
fudaoTeacher
);
public
int
deleteid
(
Long
[]
ids
);
public
int
updatefudao
(
FudaoTeacher
fudaoTeacher
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/fudao/FudaoStudentService.java
0 → 100644
View file @
276db3da
package
yangtz
.
cs
.
liu
.
campus
.
service
.
fudao
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.springframework.stereotype.Service
;
import
yangtz.cs.liu.campus.domain.fudao.FudaoStudent
;
import
yangtz.cs.liu.campus.domain.fudao.FudaoTeacher
;
import
java.util.List
;
@Service
public
interface
FudaoStudentService
extends
IService
<
FudaoStudent
>
{
List
<
FudaoStudent
>
querylist
(
FudaoStudent
fudaoStudent
);
public
int
insert
(
FudaoStudent
fudaoStudent
);
public
int
delete
(
Long
[]
ids
);
public
int
updatefudao
(
FudaoStudent
fudaoStudent
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/fudao/FudaoTeacherService.java
0 → 100644
View file @
276db3da
package
yangtz
.
cs
.
liu
.
campus
.
service
.
fudao
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.springframework.stereotype.Service
;
import
yangtz.cs.liu.campus.domain.fudao.FudaoTeacher
;
import
java.util.List
;
@Service
public
interface
FudaoTeacherService
extends
IService
<
FudaoTeacher
>
{
//查询
List
<
FudaoTeacher
>
querylist
(
FudaoTeacher
fudaoTeacher
);
//新增
public
int
insert
(
FudaoTeacher
fudaoTeacher
);
//删除
public
int
delete
(
Long
[]
ids
);
//修改
public
int
updatefudao
(
FudaoTeacher
fudaoTeacher
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/fudao/FudaoStudentImpl.java
0 → 100644
View file @
276db3da
package
yangtz
.
cs
.
liu
.
campus
.
service
.
impl
.
fudao
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
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
yangtz.cs.liu.campus.domain.fudao.FudaoStudent
;
import
yangtz.cs.liu.campus.domain.fudao.FudaoTeacher
;
import
yangtz.cs.liu.campus.mapper.fudao.FudaoStudentMapper
;
import
yangtz.cs.liu.campus.mapper.fudao.FudaoTeacherMapper
;
import
yangtz.cs.liu.campus.service.fudao.FudaoStudentService
;
import
yangtz.cs.liu.campus.service.fudao.FudaoTeacherService
;
import
java.util.List
;
@Service
public
class
FudaoStudentImpl
extends
ServiceImpl
<
FudaoStudentMapper
,
FudaoStudent
>
implements
FudaoStudentService
{
@Autowired
private
FudaoStudentMapper
fudaoStudentMapper
;
@Override
public
List
<
FudaoStudent
>
querylist
(
FudaoStudent
fudaoStudent
)
{
return
fudaoStudentMapper
.
querylist
(
fudaoStudent
);
}
@Override
public
int
insert
(
FudaoStudent
fudaoStudent
)
{
SysUser
user
=
SecurityUtils
.
getLoginUser
().
getUser
();
fudaoStudent
.
setUserid
(
user
.
getUserId
());
fudaoStudent
.
setUsername
(
user
.
getUserName
());
fudaoStudent
.
setCreateby
(
user
.
getUserName
());
fudaoStudent
.
setCreatetime
(
DateUtils
.
getNowDate
());
int
s
=
fudaoStudentMapper
.
add
(
fudaoStudent
);
// insertSchoolAccessory(fudaoTeacher);
return
s
;
}
@Override
public
int
delete
(
Long
[]
ids
)
{
fudaoStudentMapper
.
deleteid
(
ids
);
return
delete
(
ids
);
}
@Override
public
int
updatefudao
(
FudaoStudent
fudaoStudent
)
{
fudaoStudent
.
setUpdateBy
(
SecurityUtils
.
getLoginUser
().
getUser
().
getUserName
());
fudaoStudent
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
fudaoStudentMapper
.
updatefudao
(
fudaoStudent
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/fudao/FudaoTeacherImpl.java
0 → 100644
View file @
276db3da
package
yangtz
.
cs
.
liu
.
campus
.
service
.
impl
.
fudao
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
yangtz.cs.liu.campus.domain.fudao.FudaoTeacher
;
import
yangtz.cs.liu.campus.domain.student.SchoolEducationDetails
;
import
yangtz.cs.liu.campus.mapper.fudao.FudaoTeacherMapper
;
import
yangtz.cs.liu.campus.mapper.student.SchoolEducationDetailsMapper
;
import
yangtz.cs.liu.campus.service.fudao.FudaoTeacherService
;
import
yangtz.cs.liu.campus.service.student.ISchoolEducationDetailsService
;
import
java.util.List
;
@Service
public
class
FudaoTeacherImpl
extends
ServiceImpl
<
FudaoTeacherMapper
,
FudaoTeacher
>
implements
FudaoTeacherService
{
@Autowired
private
FudaoTeacherMapper
fudaoTeacherMapper
;
@Override
public
List
<
FudaoTeacher
>
querylist
(
FudaoTeacher
fudaoTeacher
)
{
return
fudaoTeacherMapper
.
querylist
(
fudaoTeacher
);
}
@Transactional
@Override
public
int
insert
(
FudaoTeacher
fudaoTeacher
)
{
SysUser
user
=
SecurityUtils
.
getLoginUser
().
getUser
();
fudaoTeacher
.
setUserid
(
user
.
getUserId
());
fudaoTeacher
.
setUsername
(
user
.
getUserName
());
fudaoTeacher
.
setCreateby
(
user
.
getUserName
());
fudaoTeacher
.
setCreatetime
(
DateUtils
.
getNowDate
());
int
s
=
fudaoTeacherMapper
.
add
(
fudaoTeacher
);
// insertSchoolAccessory(fudaoTeacher);
return
s
;
}
@Override
public
int
delete
(
Long
[]
ids
)
{
fudaoTeacherMapper
.
deleteid
(
ids
);
return
delete
(
ids
);
}
@Override
public
int
updatefudao
(
FudaoTeacher
fudaoTeacher
)
{
fudaoTeacher
.
setUpdateBy
(
SecurityUtils
.
getLoginUser
().
getUser
().
getUserName
());
fudaoTeacher
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
fudaoTeacherMapper
.
updatefudao
(
fudaoTeacher
);
}
}
smart-campus/src/main/resources/mapper/fudao/FudaoStudentMapper.xml
0 → 100644
View file @
276db3da
<?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.fudao.FudaoStudentMapper"
>
<resultMap
type=
"FudaoStudent"
id=
"FudaoStudentResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"sub"
column=
"sub"
/>
<result
property=
"awardtype"
column=
"award_type"
/>
<result
property=
"awardrank"
column=
"award_rank"
/>
<result
property=
"awardlevel"
column=
"award_level"
/>
<result
property=
"resultname"
column=
"result_name"
/>
<result
property=
"guidanceteacher"
column=
"guidance_teacher"
/>
<result
property=
"auditstate"
column=
"audit_state"
/>
<result
property=
"userid"
column=
"user_id"
/>
<result
property=
"username"
column=
"user_name"
/>
<result
property=
"org"
column=
"org"
/>
<result
property=
"awardtime"
column=
"award_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"picturename"
column=
"picture_name"
/>
<result
property=
"pictureurl"
column=
"picture_url"
/>
<result
property=
"createby"
column=
"create_by"
/>
<result
property=
"createtime"
column=
"create_time"
/>
<result
property=
"updateby"
column=
"update_by"
/>
<result
property=
"updatetime"
column=
"update_time"
/>
<result
property=
"delflag"
column=
"del_flag"
/>
</resultMap>
<select
id=
"querylist"
parameterType=
"FudaoStudent"
resultMap=
"FudaoStudentResult"
>
SELECT id,sub,award_type,award_rank,award_level,result_name,guidance_teacher,user_id,user_name,org,award_time,remark,picture_name,audit_state,
picture_url,create_by,create_time,update_by,update_time,del_flag
FROM school_xtutor_student_award
<where>
del_flag = '0'
<if
test=
"id != null and id != ''"
>
and id = #{id}
</if>
<if
test=
"sub != null and sub != ''"
>
and sub = #{sub}
</if>
<if
test=
"awardtype != null and awardtype != ''"
>
and award_type = #{awardtype}
</if>
<if
test=
"awardrank != null "
>
and award_rank = #{awardrank}
</if>
<if
test=
"awardlevel != null and awardlevel != ''"
>
and award_level = #{awardlevel}
</if>
<if
test=
"resultname != null and resultname != ''"
>
and result_name like concat('%', #{resultname}, '%')
</if>
<if
test=
"guidanceteacher != null and guidanceteacher != ''"
>
and guidance_teacher = #{guidanceteacher}
</if>
<if
test=
"auditstate != null and auditstate != ''"
>
and audit_state = #{auditstate}
</if>
<if
test=
"username != null and username != ''"
>
and user_name like concat('%', #{username}, '%')
</if>
<if
test=
"org != null and org != ''"
>
and org like concat('%', #{org}, '%')
</if>
<if
test=
"awardtime != null"
>
and award_time = #{awardtime}
</if>
</where>
order by create_time DESC
</select>
<insert
id=
"add"
parameterType=
"FudaoTeacher"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into school_xtutor_student_award
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"sub != null"
>
sub,
</if>
<if
test=
"awardtype != null"
>
award_type,
</if>
<if
test=
"awardrank != null"
>
award_rank,
</if>
<if
test=
"awardlevel != null"
>
award_level,
</if>
<if
test=
"resultname != null"
>
result_name
</if>
<if
test=
"auditstate != null"
>
audit_state
</if>
<if
test=
"guidanceteacher != null"
>
guidance_teacher,
</if>
<if
test=
"userid != null"
>
user_id,
</if>
<if
test=
"username != null"
>
user_name,
</if>
<if
test=
"org != null"
>
org,
</if>
<if
test=
"awardtime != null"
>
award_time,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"picturename != null"
>
picture_name,
</if>
<if
test=
"pictureurl != null"
>
picture_url,
</if>
<if
test=
"createby != null"
>
create_by,
</if>
<if
test=
"createtime != null"
>
create_time,
</if>
<if
test=
"updateby != null"
>
update_by,
</if>
<if
test=
"updatetime != null"
>
update_time,
</if>
<if
test=
"delFlag != null"
>
del_flag,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"sub != null"
>
#{sub},
</if>
<if
test=
"awardtype != null"
>
#{awardtype},
</if>
<if
test=
"awardrank != null"
>
#{awardrank},
</if>
<if
test=
"awardlevel != null"
>
#{awardlevel},
</if>
<if
test=
"auditstate != null"
>
#{auditstate},
</if>
<if
test=
"resultname !=null"
>
#{resultname},
</if>
<if
test=
"guidanceteacher != null"
>
#{guidanceteacher},
</if>
<if
test=
"userid != null"
>
#{userid},
</if>
<if
test=
"username != null"
>
#{username},
</if>
<if
test=
"org != null"
>
#{org},
</if>
<if
test=
"awardtime != null"
>
#{awardtime},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"picturename != null"
>
#{picturename},
</if>
<if
test=
"pictureurl != null"
>
#{pictureurl},
</if>
<if
test=
"createby != null"
>
#{createby},
</if>
<if
test=
"createtime != null"
>
#{createtime},
</if>
<if
test=
"updateby != null"
>
#{updateby},
</if>
<if
test=
"updatetime != null"
>
#{updatetime},
</if>
<if
test=
"delflag != null"
>
#{delflag},
</if>
</trim>
</insert>
<delete
id=
"delete"
parameterType=
"Long"
>
delete from school_xtutor_student_award where id = #{id}
</delete>
<delete
id=
"delete"
parameterType=
"String"
>
delete from school_xtutor_student_award where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
<update
id=
"updatefudao"
parameterType=
"FudaoTeacher"
>
update school_xtutor_student_award
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"sub != null"
>
sub = #{sub},
</if>
<if
test=
"awardtype != null"
>
award_type = #{awardtype},
</if>
<if
test=
"awardrank != null"
>
award_rank = #{awardrank},
</if>
<if
test=
"awardlevel != null"
>
award_level = #{awardlevel},
</if>
<if
test=
"auditstate != null"
>
audit_state = #{auditstate},
</if>
<if
test=
"resultname != null"
>
result_name = #{resultname},
</if>
<if
test=
"guidanceteacher != null"
>
guidance_teacher = #{guidanceteacher},
</if>
<if
test=
"userid != null"
>
user_id = #{userid},
</if>
<if
test=
"username != null"
>
user_name = #{username},
</if>
<if
test=
"org != null"
>
org = #{org},
</if>
<if
test=
"awardtime != null"
>
award_time = #{awardtime},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"picturename != null"
>
picture_name = #{picturename},
</if>
<if
test=
"pictureurl != null"
>
picture_url = #{pictureurl},
</if>
<if
test=
"createby != null"
>
create_by = #{createby},
</if>
<if
test=
"createtime != null"
>
create_time = #{createtime},
</if>
<if
test=
"updateby != null"
>
update_by = #{updateby},
</if>
<if
test=
"updatetime != null"
>
update_time = #{updatetime},
</if>
<if
test=
"delflag != null"
>
del_flag = #{delflag},
</if>
</trim>
where id = #{id}
</update>
</mapper>
smart-campus/src/main/resources/mapper/fudao/FudaoTeacherMapper.xml
0 → 100644
View file @
276db3da
<?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.fudao.FudaoTeacherMapper"
>
<resultMap
type=
"FudaoTeacher"
id=
"FudaoTeacherResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"sub"
column=
"sub"
/>
<result
property=
"awardtype"
column=
"award_type"
/>
<result
property=
"awardrank"
column=
"award_rank"
/>
<result
property=
"awardlevel"
column=
"award_level"
/>
<result
property=
"coachingr"
column=
"coaching_responsibilities"
/>
<result
property=
"competitionname"
column=
"competition_name"
/>
<result
property=
"guidanceteacher"
column=
"guidance_teacher"
/>
<result
property=
"userid"
column=
"user_id"
/>
<result
property=
"username"
column=
"user_name"
/>
<result
property=
"auditstate"
column=
"audit_state"
/>
<result
property=
"org"
column=
"org"
/>
<result
property=
"awardtime"
column=
"award_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"picturename"
column=
"picture_name"
/>
<result
property=
"pictureurl"
column=
"picture_url"
/>
<result
property=
"createby"
column=
"create_by"
/>
<result
property=
"createtime"
column=
"create_time"
/>
<result
property=
"updateby"
column=
"update_by"
/>
<result
property=
"updatetime"
column=
"update_time"
/>
<result
property=
"delflag"
column=
"del_flag"
/>
</resultMap>
<select
id=
"querylist"
parameterType=
"FudaoTeacher"
resultMap=
"FudaoTeacherResult"
>
SELECT id,sub,award_type,award_rank,award_level,coaching_responsibilities,competition_name,guidance_teacher,user_id,user_name,org,audit_state,award_time,remark,picture_name,
picture_url,create_by,create_time,update_by,update_time,del_flag
FROM school_xtutor_award
<where>
del_flag = '0'
<if
test=
"id != null and id != ''"
>
and id = #{id}
</if>
<if
test=
"sub != null and sub != ''"
>
and sub = #{sub}
</if>
<if
test=
"awardtype != null and awardtype != ''"
>
and award_type = #{awardtype}
</if>
<if
test=
"awardrank != null "
>
and award_rank = #{awardrank}
</if>
<if
test=
"awardlevel != null and awardlevel != ''"
>
and award_level = #{awardlevel}
</if>
<if
test=
"competitionname != null and competitionname != ''"
>
and competition_name like concat('%', #{competitionname}, '%')
</if>
<if
test=
"guidanceteacher != null and guidanceteacher != ''"
>
and guidance_teacher = #{guidanceteacher}
</if>
<if
test=
"auditstate != null and auditstate != ''"
>
and audit_state = #{auditstate}
</if>
<if
test=
"username != null and username != ''"
>
and user_name like concat('%', #{username}, '%')
</if>
<if
test=
"org != null and org != ''"
>
and org like concat('%', #{org}, '%')
</if>
<if
test=
"awardtime != null"
>
and award_time = #{awardtime}
</if>
</where>
order by create_time DESC
</select>
<insert
id=
"add"
parameterType=
"FudaoTeacher"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into school_xtutor_award
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"sub != null"
>
sub,
</if>
<if
test=
"awardtype != null"
>
award_type,
</if>
<if
test=
"awardrank != null"
>
award_rank,
</if>
<if
test=
"awardlevel != null"
>
award_level,
</if>
<if
test=
"auditstate != null"
>
audit_state
</if>
<if
test=
"coachingr != null"
>
coaching_responsibilities,
</if>
<if
test=
"competitionname != null"
>
competition_name,
</if>
<if
test=
"guidanceteacher != null"
>
guidance_teacher,
</if>
<if
test=
"userid != null"
>
user_id,
</if>
<if
test=
"username != null"
>
user_name,
</if>
<if
test=
"org != null"
>
org,
</if>
<if
test=
"awardtime != null"
>
award_time,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"picturename != null"
>
picture_name,
</if>
<if
test=
"pictureurl != null"
>
picture_url,
</if>
<if
test=
"createby != null"
>
create_by,
</if>
<if
test=
"createtime != null"
>
create_time,
</if>
<if
test=
"updateby != null"
>
update_by,
</if>
<if
test=
"updatetime != null"
>
update_time,
</if>
<if
test=
"delFlag != null"
>
del_flag,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"sub != null"
>
#{sub},
</if>
<if
test=
"awardtype != null"
>
#{awardtype},
</if>
<if
test=
"awardrank != null"
>
#{awardrank},
</if>
<if
test=
"awardlevel != null"
>
#{awardlevel},
</if>
<if
test=
"coachingr != null"
>
#{coachingr},
</if>
<if
test=
"auditstate != null"
>
#{auditstate},
</if>
<if
test=
"competitionname != null"
>
#{competitionname},
</if>
<if
test=
"guidanceteacher != null"
>
#{guidanceteacher},
</if>
<if
test=
"userid != null"
>
#{userid},
</if>
<if
test=
"username != null"
>
#{username},
</if>
<if
test=
"org != null"
>
#{org},
</if>
<if
test=
"awardtime != null"
>
#{awardtime},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"picturename != null"
>
#{picturename},
</if>
<if
test=
"pictureurl != null"
>
#{pictureurl},
</if>
<if
test=
"createby != null"
>
#{createby},
</if>
<if
test=
"createtime != null"
>
#{createtime},
</if>
<if
test=
"updateby != null"
>
#{updateby},
</if>
<if
test=
"updatetime != null"
>
#{updatetime},
</if>
<if
test=
"delflag != null"
>
#{delflag},
</if>
</trim>
</insert>
<delete
id=
"delete"
parameterType=
"Long"
>
delete from school_xtutor_award where id = #{id}
</delete>
<delete
id=
"delete"
parameterType=
"String"
>
delete from school_xtutor_award where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
<update
id=
"updatefudao"
parameterType=
"FudaoTeacher"
>
update school_xtutor_award
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"sub != null"
>
sub = #{sub},
</if>
<if
test=
"awardtype != null"
>
award_type = #{awardtype},
</if>
<if
test=
"awardrank != null"
>
award_rank = #{awardrank},
</if>
<if
test=
"awardlevel != null"
>
award_level = #{awardlevel},
</if>
<if
test=
"coachingr != null"
>
coaching_responsibilities = #{coachingr},
</if>
<if
test=
"competitionname != null"
>
competition_name = #{competitionname},
</if>
<if
test=
"guidanceteacher != null"
>
guidance_teacher = #{guidanceteacher},
</if>
<if
test=
"userid != null"
>
user_id = #{userid},
</if>
<if
test=
"auditstate != null"
>
audit_state = #{auditstate},
</if>
<if
test=
"username != null"
>
user_name = #{username},
</if>
<if
test=
"org != null"
>
org = #{org},
</if>
<if
test=
"awardtime != null"
>
award_time = #{awardtime},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"picturename != null"
>
picture_name = #{picturename},
</if>
<if
test=
"pictureurl != null"
>
picture_url = #{pictureurl},
</if>
<if
test=
"createby != null"
>
create_by = #{createby},
</if>
<if
test=
"createtime != null"
>
create_time = #{createtime},
</if>
<if
test=
"updateby != null"
>
update_by = #{updateby},
</if>
<if
test=
"updatetime != null"
>
update_time = #{updatetime},
</if>
<if
test=
"delflag != null"
>
del_flag = #{delflag},
</if>
</trim>
where id = #{id}
</update>
</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