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
ddf3a95c
Commit
ddf3a95c
authored
Sep 08, 2023
by
T440
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023/9/8/xty
parent
70476677
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
987 additions
and
0 deletions
+987
-0
ruoyi-ui/src/api/smartSchool/teacherjy/teachetjy.js
+10
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/xcgl/TeacherJyController.java
+81
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/SchoolHeadMaster.java
+25
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/ShebeiBx.java
+76
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/ShebeiJy.java
+49
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/ShebeiLy.java
+38
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/TeacherBx.java
+73
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/TeacherJy.java
+53
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/TeacherLy.java
+37
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/ShebeiBxMapper.java
+14
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/ShebeiJyMapper.java
+13
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/ShebeiLyMapper.java
+12
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/TeacherBxMapper.java
+13
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/TeacherJyMapper.java
+13
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/TeacherLyMapper.java
+14
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/common/mapper/teacher/SchoolHeadMasterMapper.java
+12
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/ShebeiBxImpl.java
+22
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/ShebeiJyImpl.java
+20
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/ShebeiLyImpl.java
+21
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/TeacherBxImpl.java
+27
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/TeacherJyImpl.java
+27
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/TeacherLyImpl.java
+28
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacher/ShebeiBxService.java
+11
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacher/ShebeiJyService.java
+11
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacher/ShebeiLyService.java
+11
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacher/TeacherBxService.java
+12
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacher/TeacherJyService.java
+16
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacher/TeacherLyService.java
+14
-0
smart-campus/src/main/resources/mapper/teacher/SchoolHeadMasterMapper.xml
+37
-0
smart-campus/src/main/resources/mapper/teacher/ShebeiBxMapper.xml
+35
-0
smart-campus/src/main/resources/mapper/teacher/ShebeiJyMapper.xml
+27
-0
smart-campus/src/main/resources/mapper/teacher/ShebeiLyMapper.xml
+25
-0
smart-campus/src/main/resources/mapper/teacher/TeacherBxMapper.xml
+46
-0
smart-campus/src/main/resources/mapper/teacher/TeacherJyMapper.xml
+33
-0
smart-campus/src/main/resources/mapper/teacher/TeacherLyMapper.xml
+31
-0
No files found.
ruoyi-ui/src/api/smartSchool/teacherjy/teachetjy.js
0 → 100644
View file @
ddf3a95c
import
request
from
'@/utils/request'
//教师端借用
export
function
jylist
(
query
)
{
return
request
({
url
:
'/teacher/teacherjy/list'
,
method
:
'get'
,
params
:
query
})
}
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/xcgl/TeacherJyController.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
controller
.
xcgl
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
yangtz.cs.liu.campus.domain.teacher.*
;
import
yangtz.cs.liu.campus.service.teacher.*
;
import
java.util.List
;
@RestController
@RequestMapping
(
"/teacher/teacherjy"
)
public
class
TeacherJyController
extends
BaseController
{
@Autowired
private
TeacherJyService
teacherJyService
;
@Autowired
private
TeacherLyService
teacherLyService
;
@Autowired
private
TeacherBxService
teacherBxService
;
@Autowired
private
ShebeiJyService
shebeiJyService
;
@Autowired
private
ShebeiLyService
shebeiLyService
;
@Autowired
private
ShebeiBxService
shebeiBxService
;
//教师端借用
@GetMapping
(
"/jylist"
)
public
TableDataInfo
jylist
(
TeacherJy
teacherJy
){
// startPage();
List
<
TeacherJy
>
list
=
teacherJyService
.
queryList
(
teacherJy
);
return
getDataTable
(
list
);
}
//教师端领用
@GetMapping
(
"/lylist"
)
public
TableDataInfo
lylist
(
TeacherLy
teacherLy
){
startPage
();
List
<
TeacherLy
>
list
=
teacherLyService
.
queryList1
(
teacherLy
);
return
getDataTable
(
list
);
}
//教师报修
@GetMapping
(
"/bxlist"
)
public
TableDataInfo
bxlist
(
TeacherBx
teacherBx
){
startPage
();
List
<
TeacherBx
>
list
=
teacherBxService
.
querylistbx
(
teacherBx
);
return
getDataTable
(
list
);
}
//借用单台设备查看
@GetMapping
(
"/ckjy"
)
public
AjaxResult
shebeilist
(
ShebeiJy
shebeiJy
){
ShebeiJy
list
=
shebeiJyService
.
shebeilist
(
shebeiJy
);
return
AjaxResult
.
success
(
list
);
}
//领用单台设备查看
@GetMapping
(
"/ckly"
)
public
AjaxResult
shebeilist1
(
ShebeiLy
shebeiLy
){
ShebeiLy
list
=
shebeiLyService
.
shebeilist1
(
shebeiLy
);
return
AjaxResult
.
success
(
list
);
}
//报修单台设备查看
@GetMapping
(
"/ckbx"
)
public
AjaxResult
shebeilist2
(
ShebeiBx
shebeiBx
){
ShebeiBx
list
=
shebeiBxService
.
shebeilist2
(
shebeiBx
);
return
AjaxResult
.
success
(
list
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/SchoolHeadMaster.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
domain
.
teacher
;
import
com.core.domain.OurBaseEntity
;
import
lombok.Data
;
@Data
public
class
SchoolHeadMaster
extends
OurBaseEntity
{
private
Long
id
;
private
String
studentId
;
private
String
curriculaId
;
private
String
courseType
;
private
String
curriculaTime
;
// private String curriculaState;
private
String
studentName
;
private
String
selectedCourse
;
private
String
classes
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/ShebeiBx.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
domain
.
teacher
;
import
com.core.domain.OurBaseEntity
;
import
com.ruoyi.common.annotation.Excel
;
import
lombok.Data
;
@Data
public
class
ShebeiBx
extends
OurBaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Excel
(
name
=
"设备id"
)
private
Long
id
;
//设备id
@Excel
(
name
=
"设备id"
)
private
String
equipmentId
;
//自编码
@Excel
(
name
=
"自编码"
)
private
String
encode
;
//分类编码
@Excel
(
name
=
"分类编码"
)
private
String
classificationCode
;
//设备名称
@Excel
(
name
=
"设备名称"
)
private
String
equipmentName
;
//型号
@Excel
(
name
=
"型号"
)
private
String
model
;
//报修人id
private
Long
reportRepairId
;
//投产日期
@Excel
(
name
=
"投产日期"
)
private
String
dateOfProduction
;
//修理人id
private
Long
repairId
;
//地点
@Excel
(
name
=
"地点"
)
private
String
place
;
//报修时间
@Excel
(
name
=
"报修时间"
)
private
String
reportRepairTime
;
//报修人
@Excel
(
name
=
"报修人"
)
private
String
reportRepair
;
//问题
@Excel
(
name
=
"问题"
)
private
String
problem
;
//修理人
@Excel
(
name
=
"修理人"
)
private
String
repairName
;
//修理时间
@Excel
(
name
=
"修理时间"
)
private
String
repairTime
;
//修理状态
@Excel
(
name
=
"修理状态"
)
private
String
repairState
;
//评价
@Excel
(
name
=
"评价"
)
private
String
evaluate
;
//备注
@Excel
(
name
=
"备注"
)
private
String
remark
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/ShebeiJy.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
domain
.
teacher
;
import
com.core.domain.OurBaseEntity
;
import
com.ruoyi.common.annotation.Excel
;
import
lombok.Data
;
@Data
public
class
ShebeiJy
extends
OurBaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Excel
(
name
=
"设备id"
)
private
Long
id
;
//设备id
@Excel
(
name
=
"设备id"
)
private
Long
equipmentId
;
//自编码
@Excel
(
name
=
"自编码"
)
private
String
encode
;
//设备名称
@Excel
(
name
=
"设备名称"
)
private
String
equipmentName
;
//型号
@Excel
(
name
=
"型号"
)
private
String
model
;
//借用日期
@Excel
(
name
=
"借用日期"
)
private
String
borrowTime
;
//借用人
@Excel
(
name
=
"借用人"
)
private
String
borrowBy
;
private
Long
borrowByid
;
//用途
@Excel
(
name
=
"用途"
)
private
String
purpose
;
//借用期限
@Excel
(
name
=
"借用期限"
)
private
int
deadline
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/ShebeiLy.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
domain
.
teacher
;
import
com.core.domain.OurBaseEntity
;
import
com.ruoyi.common.annotation.Excel
;
import
lombok.Data
;
@Data
public
class
ShebeiLy
extends
OurBaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Excel
(
name
=
"设备id"
)
private
Long
id
;
//设备id
@Excel
(
name
=
"设备id"
)
private
String
equipmentId
;
//自编码
@Excel
(
name
=
"自编码"
)
private
String
encode
;
//设备名称
@Excel
(
name
=
"设备名称"
)
private
String
equipmentName
;
//型号
@Excel
(
name
=
"型号"
)
private
String
model
;
//领用日期
@Excel
(
name
=
"领用日期"
)
private
String
recipientTime
;
private
Long
recipientById
;
//领用人
@Excel
(
name
=
"领用人"
)
private
String
recipientBy
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/TeacherBx.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
domain
.
teacher
;
import
com.core.domain.OurBaseEntity
;
import
com.ruoyi.common.annotation.Excel
;
import
lombok.Data
;
@Data
public
class
TeacherBx
extends
OurBaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
//设备id
@Excel
(
name
=
"设备id"
)
private
Long
equipmentId
;
//自编码
@Excel
(
name
=
"自编码"
)
private
String
encode
;
//分类编码
@Excel
(
name
=
"分类编码"
)
private
String
classificationCode
;
//设备名称
@Excel
(
name
=
"设备名称"
)
private
String
equipmentName
;
//型号
@Excel
(
name
=
"型号"
)
private
String
model
;
//报修人id
private
Long
reportRepairId
;
//投产日期
@Excel
(
name
=
"投产日期"
)
private
String
dateOfProduction
;
//修理人id
private
Long
repairId
;
//地点
@Excel
(
name
=
"地点"
)
private
String
place
;
//报修时间
@Excel
(
name
=
"报修时间"
)
private
String
reportRepairTime
;
//报修人
@Excel
(
name
=
"报修人"
)
private
String
reportRepair
;
//问题
@Excel
(
name
=
"问题"
)
private
String
problem
;
//修理人
@Excel
(
name
=
"修理人"
)
private
String
repairName
;
//修理时间
@Excel
(
name
=
"修理时间"
)
private
String
repairTime
;
//修理状态
@Excel
(
name
=
"修理状态"
)
private
String
repairState
;
//评价
@Excel
(
name
=
"评价"
)
private
String
evaluate
;
//备注
@Excel
(
name
=
"备注"
)
private
String
remark
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/TeacherJy.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
domain
.
teacher
;
import
cn.afterturn.easypoi.excel.annotation.ExcelCollection
;
import
com.core.domain.OurBaseEntity
;
import
com.ruoyi.common.annotation.Excel
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.util.Date
;
@Data
public
class
TeacherJy
extends
OurBaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Excel
(
name
=
"设备id"
)
private
Long
id
;
//设备id
@Excel
(
name
=
"设备id"
)
private
Long
equipmentId
;
//自编码
@Excel
(
name
=
"自编码"
)
private
String
encode
;
//设备名称
@Excel
(
name
=
"设备名称"
)
private
String
equipmentName
;
//型号
@Excel
(
name
=
"型号"
)
private
String
model
;
//借用日期
@Excel
(
name
=
"借用日期"
)
private
String
borrowTime
;
//借用人
@Excel
(
name
=
"借用人"
)
private
String
borrowBy
;
private
Long
borrowByid
;
//用途
@Excel
(
name
=
"用途"
)
private
String
purpose
;
//借用期限
@Excel
(
name
=
"借用期限"
)
private
int
deadline
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/TeacherLy.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
domain
.
teacher
;
import
com.core.domain.OurBaseEntity
;
import
com.ruoyi.common.annotation.Excel
;
import
lombok.Data
;
@Data
public
class
TeacherLy
extends
OurBaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Excel
(
name
=
"设备id"
)
private
Long
id
;
//设备id
@Excel
(
name
=
"设备id"
)
private
Long
equipmentId
;
//自编码
@Excel
(
name
=
"自编码"
)
private
String
encode
;
//设备名称
@Excel
(
name
=
"设备名称"
)
private
String
equipmentName
;
//型号
@Excel
(
name
=
"型号"
)
private
String
model
;
//领用日期
@Excel
(
name
=
"领用日期"
)
private
String
recipientTime
;
private
Long
recipientById
;
//领用人
@Excel
(
name
=
"领用人"
)
private
String
recipientBy
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/ShebeiBxMapper.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
mapper
.
teacher
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.catalina.LifecycleState
;
import
org.apache.ibatis.annotations.Mapper
;
import
yangtz.cs.liu.campus.domain.teacher.ShebeiBx
;
import
yangtz.cs.liu.campus.domain.teacher.ShebeiLy
;
import
java.util.List
;
@Mapper
public
interface
ShebeiBxMapper
extends
BaseMapper
<
ShebeiBx
>
{
ShebeiBx
shebeilist2
(
ShebeiBx
shebeiBx
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/ShebeiJyMapper.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
mapper
.
teacher
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
yangtz.cs.liu.campus.domain.teacher.ShebeiJy
;
import
java.util.List
;
@Mapper
public
interface
ShebeiJyMapper
extends
BaseMapper
<
ShebeiJy
>
{
ShebeiJy
shebeilist
(
ShebeiJy
shebeiJy
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/ShebeiLyMapper.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
mapper
.
teacher
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
yangtz.cs.liu.campus.domain.teacher.ShebeiLy
;
import
java.util.List
;
@Mapper
public
interface
ShebeiLyMapper
extends
BaseMapper
<
ShebeiLy
>
{
ShebeiLy
shebeilist1
(
ShebeiLy
shebeiLy
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/TeacherBxMapper.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
mapper
.
teacher
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherBx
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherLy
;
import
java.util.List
;
@Mapper
public
interface
TeacherBxMapper
extends
BaseMapper
<
TeacherBx
>
{
List
<
TeacherBx
>
querylistbx
(
TeacherBx
teacherBx
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/TeacherJyMapper.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
mapper
.
teacher
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
yangtz.cs.liu.campus.domain.teacher.SchoolTeacherWages
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherJy
;
import
java.util.List
;
@Mapper
public
interface
TeacherJyMapper
extends
BaseMapper
<
TeacherJy
>
{
List
<
TeacherJy
>
queryList
(
TeacherJy
teacherJy
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/TeacherLyMapper.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
mapper
.
teacher
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherJy
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherLy
;
import
java.util.List
;
@Mapper
public
interface
TeacherLyMapper
extends
BaseMapper
<
TeacherLy
>
{
List
<
TeacherLy
>
queryList1
(
TeacherLy
teacherLy
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/common/mapper/teacher/SchoolHeadMasterMapper.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
common
.
mapper
.
teacher
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
yangtz.cs.liu.campus.domain.teacher.SchoolHeadMaster
;
import
java.util.List
;
public
interface
SchoolHeadMasterMapper
extends
BaseMapper
<
SchoolHeadMaster
>
{
List
<
SchoolHeadMaster
>
schoolHeadMasterelist
(
SchoolHeadMaster
schoolHeadMaster
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/ShebeiBxImpl.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
impl
.
teacher
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
yangtz.cs.liu.campus.domain.teacher.ShebeiBx
;
import
yangtz.cs.liu.campus.mapper.teacher.ShebeiBxMapper
;
import
yangtz.cs.liu.campus.service.teacher.ShebeiBxService
;
import
java.util.List
;
@Service
public
class
ShebeiBxImpl
extends
ServiceImpl
<
ShebeiBxMapper
,
ShebeiBx
>
implements
ShebeiBxService
{
@Autowired
private
ShebeiBxMapper
shebeiBxMapper
;
@Override
public
ShebeiBx
shebeilist2
(
ShebeiBx
shebeiBx
)
{
return
shebeiBxMapper
.
shebeilist2
(
shebeiBx
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/ShebeiJyImpl.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
impl
.
teacher
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
yangtz.cs.liu.campus.domain.teacher.ShebeiJy
;
import
yangtz.cs.liu.campus.mapper.teacher.ShebeiJyMapper
;
import
yangtz.cs.liu.campus.service.teacher.ShebeiJyService
;
import
java.util.List
;
@Service
public
class
ShebeiJyImpl
extends
ServiceImpl
<
ShebeiJyMapper
,
ShebeiJy
>
implements
ShebeiJyService
{
@Autowired
private
ShebeiJyMapper
shebeiJyMapper
;
@Override
public
ShebeiJy
shebeilist
(
ShebeiJy
shebei
)
{
return
shebeiJyMapper
.
shebeilist
(
shebei
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/ShebeiLyImpl.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
impl
.
teacher
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
yangtz.cs.liu.campus.domain.teacher.ShebeiLy
;
import
yangtz.cs.liu.campus.mapper.teacher.ShebeiLyMapper
;
import
yangtz.cs.liu.campus.service.teacher.ShebeiLyService
;
import
java.util.List
;
@Service
public
class
ShebeiLyImpl
extends
ServiceImpl
<
ShebeiLyMapper
,
ShebeiLy
>
implements
ShebeiLyService
{
@Autowired
private
ShebeiLyMapper
shebeiLyMapper
;
@Override
public
ShebeiLy
shebeilist1
(
ShebeiLy
shebeiLy
)
{
return
shebeiLyMapper
.
shebeilist1
(
shebeiLy
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/TeacherBxImpl.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
impl
.
teacher
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherBx
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherLy
;
import
yangtz.cs.liu.campus.mapper.teacher.TeacherBxMapper
;
import
yangtz.cs.liu.campus.mapper.teacher.TeacherLyMapper
;
import
yangtz.cs.liu.campus.service.teacher.TeacherBxService
;
import
yangtz.cs.liu.campus.service.teacher.TeacherLyService
;
import
java.util.List
;
@Service
public
class
TeacherBxImpl
extends
ServiceImpl
<
TeacherBxMapper
,
TeacherBx
>
implements
TeacherBxService
{
@Autowired
private
TeacherBxMapper
teacherBxMapper
;
@Override
public
List
<
TeacherBx
>
querylistbx
(
TeacherBx
teacherBx
)
{
Long
userId
=
SecurityUtils
.
getLoginUser
().
getUser
().
getUserId
();
teacherBx
.
setReportRepairId
(
userId
);
return
teacherBxMapper
.
querylistbx
(
teacherBx
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/TeacherJyImpl.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
impl
.
teacher
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
yangtz.cs.liu.campus.domain.teacher.SchoolTeacherWages
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherJy
;
import
yangtz.cs.liu.campus.mapper.teacher.SchoolTeacherWagesMapper
;
import
yangtz.cs.liu.campus.mapper.teacher.TeacherJyMapper
;
import
yangtz.cs.liu.campus.service.teacher.ISchoolTeacherWagesService
;
import
yangtz.cs.liu.campus.service.teacher.TeacherJyService
;
import
java.util.List
;
@Service
public
class
TeacherJyImpl
extends
ServiceImpl
<
TeacherJyMapper
,
TeacherJy
>
implements
TeacherJyService
{
@Autowired
private
TeacherJyMapper
teacherJyMapper
;
@Override
public
List
<
TeacherJy
>
queryList
(
TeacherJy
teacherJy
)
{
Long
userId
=
SecurityUtils
.
getLoginUser
().
getUser
().
getUserId
();
teacherJy
.
setBorrowByid
(
userId
);
return
teacherJyMapper
.
queryList
(
teacherJy
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/TeacherLyImpl.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
impl
.
teacher
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherJy
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherLy
;
import
yangtz.cs.liu.campus.mapper.teacher.TeacherJyMapper
;
import
yangtz.cs.liu.campus.mapper.teacher.TeacherLyMapper
;
import
yangtz.cs.liu.campus.service.teacher.TeacherJyService
;
import
yangtz.cs.liu.campus.service.teacher.TeacherLyService
;
import
java.util.List
;
@Service
public
class
TeacherLyImpl
extends
ServiceImpl
<
TeacherLyMapper
,
TeacherLy
>
implements
TeacherLyService
{
@Autowired
TeacherLyMapper
teacherLyMapper
;
@Override
public
List
<
TeacherLy
>
queryList1
(
TeacherLy
teacherLy
)
{
Long
userId
=
SecurityUtils
.
getLoginUser
().
getUser
().
getUserId
();
teacherLy
.
setRecipientById
(
userId
);
return
teacherLyMapper
.
queryList1
(
teacherLy
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacher/ShebeiBxService.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
teacher
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
yangtz.cs.liu.campus.domain.teacher.ShebeiBx
;
import
yangtz.cs.liu.campus.domain.teacher.ShebeiLy
;
import
java.util.List
;
public
interface
ShebeiBxService
extends
IService
<
ShebeiBx
>
{
ShebeiBx
shebeilist2
(
ShebeiBx
shebeiBx
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacher/ShebeiJyService.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
teacher
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
yangtz.cs.liu.campus.domain.teacher.ShebeiJy
;
import
java.util.List
;
public
interface
ShebeiJyService
extends
IService
<
ShebeiJy
>
{
ShebeiJy
shebeilist
(
ShebeiJy
shebeiJy
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacher/ShebeiLyService.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
teacher
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
yangtz.cs.liu.campus.domain.teacher.ShebeiJy
;
import
yangtz.cs.liu.campus.domain.teacher.ShebeiLy
;
import
java.util.List
;
public
interface
ShebeiLyService
extends
IService
<
ShebeiLy
>
{
ShebeiLy
shebeilist1
(
ShebeiLy
shebeiLy
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacher/TeacherBxService.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
teacher
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.springframework.stereotype.Service
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherBx
;
import
java.util.List
;
public
interface
TeacherBxService
extends
IService
<
TeacherBx
>
{
List
<
TeacherBx
>
querylistbx
(
TeacherBx
teacherBx
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacher/TeacherJyService.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
teacher
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.apache.catalina.LifecycleState
;
import
org.springframework.stereotype.Service
;
import
yangtz.cs.liu.campus.domain.teacher.SchoolTeacherWages
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherJy
;
import
java.util.List
;
@Service
public
interface
TeacherJyService
extends
IService
<
TeacherJy
>
{
List
<
TeacherJy
>
queryList
(
TeacherJy
teacherJy
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/teacher/TeacherLyService.java
0 → 100644
View file @
ddf3a95c
package
yangtz
.
cs
.
liu
.
campus
.
service
.
teacher
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.springframework.stereotype.Service
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherJy
;
import
yangtz.cs.liu.campus.domain.teacher.TeacherLy
;
import
java.util.List
;
public
interface
TeacherLyService
extends
IService
<
TeacherLy
>
{
List
<
TeacherLy
>
queryList1
(
TeacherLy
teacherLy
);
}
smart-campus/src/main/resources/mapper/teacher/SchoolHeadMasterMapper.xml
0 → 100644
View file @
ddf3a95c
<?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.service.common.mapper.teacher.SchoolHeadMasterMapper"
>
<resultMap
id=
"SchoolHeadMasterResult"
type=
"SchoolHeadMaster"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"studentId"
column=
"student_id"
/>
<result
property=
"curriculaId"
column=
"curricula_id"
/>
<result
property=
"courseType"
column=
"course_type"
/>
<result
property=
"curriculaTime"
column=
"curricula_time"
/>
<result
property=
"studentName"
column=
"student_name"
/>
<!-- <result property="curriculaState" column="curricula_state" />-->
<result
property=
"selectedCourse"
column=
"selected_course"
/>
<result
property=
"classes"
column=
"classes"
/>
</resultMap>
<select
id=
"schoolHeadMasterelist"
parameterType=
"String"
resultMap=
"SchoolHeadMasterResult"
>
SELECT *
FROM school_curriculum
<if
test=
"courseType != null"
>
AND course_type = #{courseType}
</if>
<if
test=
"studentName != null"
>
AND SELECT
*
FROM
school_student ss
JOIN
school_student_classes ssc
ON
ss.id = ssc.student_id
WHERE
student_name=#{studentName}
</if>
</select>
</mapper>
smart-campus/src/main/resources/mapper/teacher/ShebeiBxMapper.xml
0 → 100644
View file @
ddf3a95c
<?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.teacher.ShebeiBxMapper"
>
<!--namespace根据自己需要创建的的mapper的路径和名称填写-->
<resultMap
id=
"ShebeiBxResult"
type=
"ShebeiBx"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"equipmentId"
column=
"equipment_id"
/>
<result
property=
"encode"
column=
"encode"
/>
<result
property=
"reportRepairId"
column=
"report_repair_id"
/>
<result
property=
"equipmentName"
column=
"equipment_name"
/>
<result
property=
"model"
column=
"model"
/>
<result
property=
"repairId"
column=
"repair_id"
/>
<result
property=
"dateOfProduction"
column=
"date_of_production"
/>
<result
property=
"place"
column=
"place"
/>
<result
property=
"reportRepairTime"
column=
"report_repair_time"
/>
<result
property=
"reportRepair"
column=
"report_repair"
/>
<result
property=
"problem"
column=
"problem"
/>
<result
property=
"repairName"
column=
"repair_name"
/>
<result
property=
"classificationCode"
column=
"classification_code"
/>
<result
property=
"repairTime"
column=
"repair_time"
/>
<result
property=
"repairState"
column=
"repair_state"
/>
<result
property=
"evaluate"
column=
"evaluate"
/>
<result
property=
"remark"
column=
"remark"
/>
</resultMap>
<select
id=
"shebeilist2"
parameterType=
"ShebeiBx"
resultMap=
"ShebeiBxResult"
>
SELECT ser.id,encode,equipment_name,model,date_of_production,place,report_repair_time,problem,repair_name,repair_id,repair_time,repair_state,evaluate,ser.remark
FROM school_equipment_repair ser
JOIN school_equipment_ledger sel
ON ser.equipment_id=sel.id
WHERE ser.id = #{id}
</select>
</mapper>
smart-campus/src/main/resources/mapper/teacher/ShebeiJyMapper.xml
0 → 100644
View file @
ddf3a95c
<?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.teacher.ShebeiJyMapper"
>
<!--namespace根据自己需要创建的的mapper的路径和名称填写-->
<resultMap
id=
"ShebeiJyResult"
type=
"ShebeiJy"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"equipmentId"
column=
"equipment_id"
/>
<result
property=
"encode"
column=
"encode"
/>
<result
property=
"equipmentName"
column=
"equipment_name"
/>
<result
property=
"model"
column=
"model"
/>
<result
property=
"borrowByid"
column=
"borrow_by_id"
/>
<result
property=
"borrowTime"
column=
"borrow_time"
/>
<result
property=
"borrowBy"
column=
"borrow_by"
/>
<result
property=
"purpose"
column=
"purpose"
/>
<result
property=
"deadline"
column=
"deadline"
/>
</resultMap>
<select
id=
"shebeilist"
parameterType=
"ShebeiJy"
resultMap=
"ShebeiJyResult"
>
SELECT ss.id,encode,equipment_name,model,borrow_time,borrow_by_id,borrow_by,deadline,purpose
FROM school_circulation ss
JOIN school_equipment_ledger ssc
ON ss.equipment_id=ssc.id
WHERE ss.id = #{id}
</select>
</mapper>
smart-campus/src/main/resources/mapper/teacher/ShebeiLyMapper.xml
0 → 100644
View file @
ddf3a95c
<?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.teacher.ShebeiLyMapper"
>
<!--namespace根据自己需要创建的的mapper的路径和名称填写-->
<resultMap
id=
"ShebeiLyResult"
type=
"ShebeiLy"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"equipmentId"
column=
"equipment_id"
/>
<result
property=
"encode"
column=
"encode"
/>
<result
property=
"recipientById"
column=
"recipient_by_id"
/>
<result
property=
"equipmentName"
column=
"equipment_name"
/>
<result
property=
"model"
column=
"model"
/>
<result
property=
"recipientTime"
column=
"recipient_time"
/>
<result
property=
"recipientBy"
column=
"recipient_by"
/>
</resultMap>
<select
id=
"shebeilist1"
parameterType=
"ShebeiLy"
resultMap=
"ShebeiLyResult"
>
SELECT sel.id,encode,equipment_name,recipient_by_id,model,recipient_time,recipient_by
FROM school_receive sel
JOIN school_equipment_ledger sr
ON sel.equipment_id=sr.id
WHERE sel.id = #{id}
</select>
</mapper>
smart-campus/src/main/resources/mapper/teacher/TeacherBxMapper.xml
0 → 100644
View file @
ddf3a95c
<?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.teacher.TeacherBxMapper"
>
<!--namespace根据自己需要创建的的mapper的路径和名称填写-->
<resultMap
id=
"TeacherBxResult"
type=
"TeacherBx"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"equipmentId"
column=
"equipment_id"
/>
<result
property=
"encode"
column=
"encode"
/>
<result
property=
"reportRepairId"
column=
"report_repair_id"
/>
<result
property=
"equipmentName"
column=
"equipment_name"
/>
<result
property=
"model"
column=
"model"
/>
<result
property=
"repairId"
column=
"repair_id"
/>
<result
property=
"dateOfProduction"
column=
"date_of_production"
/>
<result
property=
"place"
column=
"place"
/>
<result
property=
"reportRepairTime"
column=
"report_repair_time"
/>
<result
property=
"reportRepair"
column=
"report_repair"
/>
<result
property=
"problem"
column=
"problem"
/>
<result
property=
"repairName"
column=
"repair_name"
/>
<result
property=
"classificationCode"
column=
"classification_code"
/>
<result
property=
"repairTime"
column=
"repair_time"
/>
<result
property=
"repairState"
column=
"repair_state"
/>
<result
property=
"evaluate"
column=
"evaluate"
/>
<result
property=
"remark"
column=
"remark"
/>
</resultMap>
<select
id=
"querylistbx"
parameterType=
"TeacherBx"
resultMap=
"TeacherBxResult"
>
SELECT ser.id,encode,equipment_name,model,date_of_production,place,report_repair_time,problem,repair_name,repair_id,repair_time,repair_state,evaluate,ser.remark
FROM school_equipment_repair ser
JOIN school_equipment_ledger sel
ON ser.equipment_id=sel.id
<if
test=
"equipmentName!=null"
>
WHERE equipment_name like concat('%',#{equipmentName},'%')
</if>
<if
test=
"classificationCode!=null"
>
AND ser.classification_code like concat('%',#{classificationCode},'%')
</if>
<if
test=
"repairState!=null"
>
AND repair_state like concat('%',#{repairState},'%')
</if>
<if
test=
"reportRepairId!=null"
>
AND report_repair_id =#{reportRepairId}
</if>
</select>
</mapper>
smart-campus/src/main/resources/mapper/teacher/TeacherJyMapper.xml
0 → 100644
View file @
ddf3a95c
<?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.teacher.TeacherJyMapper"
>
<resultMap
id=
"TeacherJyResult"
type=
"TeacherJy"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"equipmentId"
column=
"equipment_id"
/>
<result
property=
"encode"
column=
"encode"
/>
<result
property=
"equipmentName"
column=
"equipment_name"
/>
<result
property=
"model"
column=
"model"
/>
<result
property=
"borrowByid"
column=
"borrow_by_id"
/>
<result
property=
"borrowTime"
column=
"borrow_time"
/>
<result
property=
"borrowBy"
column=
"borrow_by"
/>
<result
property=
"purpose"
column=
"purpose"
/>
<result
property=
"deadline"
column=
"deadline"
/>
</resultMap>
<select
id=
"queryList"
parameterType=
"TeacherJy"
resultMap=
"TeacherJyResult"
>
SELECT ss.id,encode,equipment_name,model,borrow_time,borrow_by_id,borrow_by,deadline,purpose
FROM school_circulation ss
JOIN school_equipment_ledger ssc
ON ss.equipment_id=ssc.id
<if
test=
"equipmentName!=null"
>
WHERE equipment_name like concat('%',#{equipmentName},'%')
</if>
<if
test=
"borrowTime!=null"
>
AND borrow_time like concat('%',#{borrowTime},'%')
</if>
<if
test=
"borrowByid!=null"
>
AND borrow_by_id =#{borrowByid}
</if>
</select>
</mapper>
smart-campus/src/main/resources/mapper/teacher/TeacherLyMapper.xml
0 → 100644
View file @
ddf3a95c
<?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.teacher.TeacherLyMapper"
>
<!--namespace根据自己需要创建的的mapper的路径和名称填写-->
<resultMap
id=
"TeacherLyResult"
type=
"TeacherLy"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"equipmentId"
column=
"equipment_id"
/>
<result
property=
"encode"
column=
"encode"
/>
<result
property=
"recipientById"
column=
"recipient_by_id"
/>
<result
property=
"equipmentName"
column=
"equipment_name"
/>
<result
property=
"model"
column=
"model"
/>
<result
property=
"recipientTime"
column=
"recipient_time"
/>
<result
property=
"recipientBy"
column=
"recipient_by"
/>
</resultMap>
<select
id=
"queryList1"
parameterType=
"TeacherLy"
resultMap=
"TeacherLyResult"
>
SELECT sel.id,encode,equipment_name,recipient_by_id,model,recipient_time,recipient_by
FROM school_receive sel
JOIN school_equipment_ledger sr
ON sel.equipment_id=sr.id
<if
test=
"equipmentName!=null"
>
WHERE equipment_name like concat('%',#{equipmentName},'%')
</if>
<if
test=
"recipientTime!=null"
>
AND recipient_time like concat('%',#{recipientTime},'%')
</if>
<if
test=
"recipientById!=null"
>
AND recipient_by_id =#{recipientById}
</if>
</select>
</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