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
a4efb984
Commit
a4efb984
authored
Nov 02, 2023
by
xuwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11.2修改测试问题
parent
0ef44e50
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
616 additions
and
117 deletions
+616
-117
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
+6
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/SchoolEquipment/EquipmentLedgerController.java
+25
-2
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/schoolDcwj/SchoolDcwjController.java
+116
-1
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/studentStatus/StudentStatusController.java
+6
-2
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/teacher/SchoolTeacherController.java
+32
-16
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/schoolEquipment/SchoolCirculation.java
+4
-3
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/schoolgrade/SchoolGradeMentor.java
+0
-1
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/SchoolTeacherWages.java
+6
-1
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/ShebeiJy.java
+4
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/TeacherJy.java
+4
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/schoolEquipment/EquipmentLedgerMapper.java
+7
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/SchoolTeacherWagesMapper.java
+7
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolDcwj/SchoolDcwjNrServiceImpl.java
+0
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolDcwj/SchoolDcwjRyServiceImpl.java
+66
-24
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolEquipment/CirculationServiceImpl.java
+3
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolEquipment/EquipmentLedgerServiceImpl.java
+37
-10
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolEquipment/EquipmentRepairServiceImpl.java
+6
-1
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolEquipment/ReceiveServiceImpl.java
+9
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolbudget/SchoolBudgetDetailsServiceImpl.java
+6
-6
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/student/SchoolStudentServiceImpl.java
+48
-15
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/SchoolTeacherWagesServiceImpl.java
+74
-25
smart-campus/src/main/java/yangtz/cs/liu/campus/service/schoolDcwj/ISchoolDcwjRyService.java
+4
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/service/schoolEquipment/IEquipmentLedgerService.java
+6
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/schoolEquipment/SchoolCirculationVo.java
+3
-4
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/schoolEquipment/SchoolEquipmentLedgerDcVo.java
+97
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/student/StudentLeaveVO.java
+1
-0
smart-campus/src/main/resources/mapper/schoolEquipment/CirculationMapper.xml
+2
-0
smart-campus/src/main/resources/mapper/schoolEquipment/EquipmentLedgerMapper.xml
+9
-0
smart-campus/src/main/resources/mapper/schoolEquipment/EquipmentRepairMapper.xml
+3
-1
smart-campus/src/main/resources/mapper/schoolEquipment/InStockMapper.xml
+2
-0
smart-campus/src/main/resources/mapper/schoolEquipment/OutStockMapper.xml
+2
-0
smart-campus/src/main/resources/mapper/schoolEquipment/ReceiveMapper.xml
+2
-0
smart-campus/src/main/resources/mapper/teacher/SchoolTeacherWagesMapper.xml
+13
-1
smart-campus/src/main/resources/mapper/teacher/ShebeiBxMapper.xml
+1
-1
smart-campus/src/main/resources/mapper/teacher/ShebeiJyMapper.xml
+2
-1
smart-campus/src/main/resources/mapper/teacher/TeacherBxMapper.xml
+1
-1
smart-campus/src/main/resources/mapper/teacher/TeacherJyMapper.xml
+2
-1
No files found.
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
View file @
a4efb984
...
...
@@ -126,6 +126,12 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
.
antMatchers
(
"/dd/school/**"
).
permitAll
()
//打印下载接口放行
.
antMatchers
(
"/school/student/queryOne/**"
,
"/school/studentStatus/proofStatus/**"
).
permitAll
()
//打印设备条码信息
.
antMatchers
(
"/equipmentLedger/getEquipmentledger/**"
).
permitAll
()
.
antMatchers
(
"/school/studentStatus/exportStatus/**"
,
"/school/student/queryAllInfo/**"
).
permitAll
()
//网页注册登录接口放行
.
antMatchers
(
"/web/artStudent/register"
,
"/web/artStudent/login"
).
permitAll
()
// 静态资源,可匿名访问
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/SchoolEquipment/EquipmentLedgerController.java
View file @
a4efb984
package
yangtz
.
cs
.
liu
.
campus
.
controller
.
SchoolEquipment
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
...
...
@@ -7,17 +8,21 @@ import com.ruoyi.common.core.domain.entity.SysUser;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
yangtz.cs.liu.campus.domain.schoolEquipment.SchoolEquipmentLedger
;
import
yangtz.cs.liu.campus.service.schoolEquipment.IEquipmentLedgerService
;
import
yangtz.cs.liu.campus.vo.curricula.CurriculaStudentVo
;
import
yangtz.cs.liu.campus.vo.schoolEquipment.SchoolEquipmentLedgerDcVo
;
import
yangtz.cs.liu.campus.vo.schoolEquipment.SchoolEquipmentLedgerVo
;
import
yangtz.cs.liu.campus.vo.student.SchoolStudentScoreVo
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
/**
* 设备基础信息
...
...
@@ -58,8 +63,17 @@ public class EquipmentLedgerController extends BaseController {
public
void
export
(
HttpServletResponse
response
,
SchoolEquipmentLedgerVo
schoolEquipmentLedgerVo
)
{
List
<
SchoolEquipmentLedger
>
list
=
equipmentLedgerService
.
selectSchoolEquipmentLedgerList
(
schoolEquipmentLedgerVo
);
ExcelUtil
<
SchoolEquipmentLedger
>
util
=
new
ExcelUtil
<
SchoolEquipmentLedger
>(
SchoolEquipmentLedger
.
class
);
util
.
exportExcel
(
response
,
list
,
"设备台账数据"
);
List
<
SchoolEquipmentLedgerDcVo
>
list1
=
new
ArrayList
<>();
int
i
=
1
;
for
(
SchoolEquipmentLedger
schoolEquipmentLedger
:
list
)
{
SchoolEquipmentLedgerDcVo
schoolEquipmentLedgerDcVo
=
new
SchoolEquipmentLedgerDcVo
();
BeanUtils
.
copyProperties
(
schoolEquipmentLedger
,
schoolEquipmentLedgerDcVo
);
schoolEquipmentLedgerDcVo
.
setSerialNumber
(
i
);
list1
.
add
(
schoolEquipmentLedgerDcVo
);
i
++;
}
ExcelUtil
<
SchoolEquipmentLedgerDcVo
>
util
=
new
ExcelUtil
<
SchoolEquipmentLedgerDcVo
>(
SchoolEquipmentLedgerDcVo
.
class
);
util
.
exportExcel
(
response
,
list1
,
"设备台账数据"
);
}
/**
...
...
@@ -138,4 +152,13 @@ public class EquipmentLedgerController extends BaseController {
public
TableDataInfo
getUser
(
SysUser
sysUser
){
return
getDataTable
(
equipmentLedgerService
.
getUser
(
sysUser
));
}
/**
* 打印设备条码信息
*/
@GetMapping
(
"/getEquipmentledger/{ids}"
)
public
AjaxResult
getEquipmentledger
(
@PathVariable
Long
[]
ids
){
List
<
Map
<
String
,
Object
>>
mapList
=
equipmentLedgerService
.
getEquipmentledger
(
ids
);
return
AjaxResult
.
success
(
mapList
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/schoolDcwj/SchoolDcwjController.java
View file @
a4efb984
...
...
@@ -41,6 +41,7 @@ import yangtz.cs.liu.campus.domain.schoolDcwj.*;
import
yangtz.cs.liu.campus.domain.schoolDuty.SchoolDuty
;
import
yangtz.cs.liu.campus.domain.schoolgrade.SchoolGrade
;
import
yangtz.cs.liu.campus.domain.student.SchoolStudent
;
import
yangtz.cs.liu.campus.mapper.schoolDcwj.SchoolDcwjPushMapper
;
import
yangtz.cs.liu.campus.service.schoolClass.ISchoolClassService
;
import
yangtz.cs.liu.campus.service.schoolDcwj.*
;
import
yangtz.cs.liu.campus.service.schoolgrade.ISchoolGradeMentorService
;
...
...
@@ -88,6 +89,7 @@ public class SchoolDcwjController extends BaseController {
@Autowired
private
ISchoolDcwjPushService
pushService
;
@Value
(
"${server.port}"
)
private
String
p
;
...
...
@@ -513,9 +515,122 @@ public class SchoolDcwjController extends BaseController {
ajax
.
put
(
"titles"
,
titlesVo
);
//获取内容
List
<
SchoolDcwjAnVo
>
list
=
schoolDcwjRyService
.
getSenateAnData
(
dcwjId
,
vo
);
// List<SchoolDcwjAnVo> list = schoolDcwjRyService.getSenateAnData(dcwjId, vo);
//判断是推送给教师还是家长
LambdaQueryWrapper
<
SchoolDcwjPush
>
pushLqw
=
new
LambdaQueryWrapper
<>();
pushLqw
.
eq
(
SchoolDcwjPush:
:
getDcwjId
,
dcwjId
);
List
<
SchoolDcwjPush
>
pushes
=
pushService
.
list
(
pushLqw
);
if
(
DcwjType
.
PUSHT
.
equals
(
pushes
.
get
(
0
).
getPubType
())){
//教师
//获取固定列的值,,获取到的list的id为ry表的id
startPage
();
List
<
SchoolDcwjAnVo
>
list
=
schoolDcwjRyService
.
getTeaAnData
(
dcwjId
,
vo
);
//获取问卷调查题目
LambdaQueryWrapper
<
SchoolDcwjNr
>
nrlqw
=
new
LambdaQueryWrapper
<>();
nrlqw
.
eq
(
SchoolDcwjNr:
:
getDcwjId
,
dcwjId
).
orderByAsc
(
SchoolDcwjNr:
:
getNrPx
).
orderByDesc
(
SchoolDcwjNr:
:
getCreateTime
);
List
<
SchoolDcwjNr
>
nrs
=
schoolDcwjNrService
.
list
(
nrlqw
);
LambdaQueryWrapper
<
SchoolDcwjAn
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
SchoolDcwjAn:
:
getDcwjId
,
dcwjId
)
;
//a里要么有1个值,要么没有值
List
<
SchoolDcwjAn
>
a
=
schoolDcwjAnService
.
list
(
lqw
);
//教师调查问卷回答的内容
for
(
SchoolDcwjAnVo
anVo
:
list
)
{
List
<
SchoolDcwjAn
>
ans
=
new
ArrayList
<>();
//设置空对象,是为了,通俗的说就是站位,如果不占位的话,就目前来说,如果用户第一题没写,第二题写了,那么第2题的答案会显示在第1题的位置
SchoolDcwjAn
entity
=
new
SchoolDcwjAn
();
//获取该学生从第一题到最后一题的答案,如果当前题没有答案,,附空值
for
(
SchoolDcwjNr
nr
:
nrs
){
// LambdaQueryWrapper<SchoolDcwjAn> lqw = new LambdaQueryWrapper<>();
// lqw
// .eq(SchoolDcwjAn::getDcwjId, dcwjId)
// .eq(SchoolDcwjAn::getRyId, anVo.getId())
// .eq(SchoolDcwjAn::getNrId, nr.getId())
// ;
// //a里要么有1个值,要么没有值
// List<SchoolDcwjAn> a = anMapper.selectList(lqw);
for
(
SchoolDcwjAn
schoolDcwjAn
:
a
)
{
if
(
schoolDcwjAn
.
getRyId
().
equals
(
anVo
.
getId
())
&&
schoolDcwjAn
.
getNrId
().
equals
(
nr
.
getId
())){
ans
.
add
(
schoolDcwjAn
);
}
else
{
ans
.
add
(
entity
);
}
}
// if(StringUtils.isNotNull(a) && a.size() > 0){
// ans.add(a.get(0));
// }else {
// ans.add(entity);
// }
}
anVo
.
setList
(
ans
);
}
List
<
ViewDataVo
>
voList
=
schoolDcwjNrService
.
turnData
(
list
);
ajax
.
put
(
"data"
,
voList
);
ajax
.
put
(
"total"
,
getDataTable
(
list
).
getTotal
());
return
ajax
;
}
//推送类型为学生家长
//获取固定列的值,,获取到的list的id为ry表的id
startPage
();
List
<
SchoolDcwjAnVo
>
list
=
schoolDcwjRyService
.
getAnData1
(
dcwjId
,
vo
);
//获取问卷调查题目
LambdaQueryWrapper
<
SchoolDcwjNr
>
nrlqw
=
new
LambdaQueryWrapper
<>();
nrlqw
.
eq
(
SchoolDcwjNr:
:
getDcwjId
,
dcwjId
).
orderByAsc
(
SchoolDcwjNr:
:
getNrPx
).
orderByDesc
(
SchoolDcwjNr:
:
getCreateTime
);
List
<
SchoolDcwjNr
>
nrs
=
schoolDcwjNrService
.
list
(
nrlqw
);
LambdaQueryWrapper
<
SchoolDcwjAn
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
SchoolDcwjAn:
:
getDcwjId
,
dcwjId
)
;
//a里要么有1个值,要么没有值
List
<
SchoolDcwjAn
>
a
=
schoolDcwjAnService
.
list
(
lqw
);
//学生家长调查问卷回答的内容
for
(
SchoolDcwjAnVo
anVo
:
list
)
{
List
<
SchoolDcwjAn
>
ans
=
new
ArrayList
<>();
//设置空对象,是为了,通俗的说就是站位,如果不占位的话,就目前来说,如果用户第一题没写,第二题写了,那么第2题的答案会显示在第1题的位置
SchoolDcwjAn
entity
=
new
SchoolDcwjAn
();
//获取该学生从第一题到最后一题的答案,如果当前题没有答案,,附空值
for
(
SchoolDcwjNr
nr
:
nrs
){
// LambdaQueryWrapper<SchoolDcwjAn> lqw = new LambdaQueryWrapper<>();
// lqw
// .eq(SchoolDcwjAn::getDcwjId, dcwjId)
// .eq(SchoolDcwjAn::getRyId, anVo.getId())
// .eq(SchoolDcwjAn::getNrId, nr.getId())
// ;
// //a里要么有1个值,要么没有值
// List<SchoolDcwjAn> a = anMapper.selectList(lqw);
for
(
SchoolDcwjAn
schoolDcwjAn
:
a
)
{
if
(
schoolDcwjAn
.
getRyId
().
equals
(
anVo
.
getId
())
&&
schoolDcwjAn
.
getNrId
().
equals
(
nr
.
getId
())){
ans
.
add
(
schoolDcwjAn
);
}
else
{
ans
.
add
(
entity
);
}
}
// if(StringUtils.isNotNull(a) && a.size() > 0){
// ans.add(a.get(0));
// }else {
// ans.add(entity);
// }
}
anVo
.
setList
(
ans
);
}
List
<
ViewDataVo
>
voList
=
schoolDcwjNrService
.
turnData
(
list
);
ajax
.
put
(
"data"
,
voList
);
ajax
.
put
(
"total"
,
getDataTable
(
list
).
getTotal
());
return
ajax
;
}
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/studentStatus/StudentStatusController.java
View file @
a4efb984
...
...
@@ -122,7 +122,9 @@ public class StudentStatusController {
map
.
put
(
"avatar"
,
image
);
}
map
.
put
(
"idCard"
,
baseInfo
.
getIdCard
());
map
.
put
(
"birthday"
,
new
SimpleDateFormat
(
"yyyy-MM-dd"
).
format
(
baseInfo
.
getBirthday
()));
if
(
StringUtils
.
isNotNull
(
baseInfo
.
getBirthday
())){
map
.
put
(
"birthday"
,
new
SimpleDateFormat
(
"yyyy-MM-dd"
).
format
(
baseInfo
.
getBirthday
()));
}
map
.
put
(
"nation"
,
baseInfo
.
getNation
());
map
.
put
(
"stuTelephone"
,
baseInfo
.
getStuTelephone
());
map
.
put
(
"postalCode"
,
baseInfo
.
getPostalCode
());
...
...
@@ -285,7 +287,9 @@ public class StudentStatusController {
}
else
{
map
.
put
(
"sex"
,
"女"
);
}
map
.
put
(
"birthday"
,
new
SimpleDateFormat
(
"yyyy-MM-dd"
).
format
(
baseInfo
.
getBirthday
()));
if
(
StringUtils
.
isNotNull
(
baseInfo
.
getBirthday
())){
map
.
put
(
"birthday"
,
new
SimpleDateFormat
(
"yyyy-MM-dd"
).
format
(
baseInfo
.
getBirthday
()));
}
map
.
put
(
"idCard"
,
baseInfo
.
getIdCard
());
// 图片
//路径去掉/profile
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/teacher/SchoolTeacherController.java
View file @
a4efb984
...
...
@@ -238,49 +238,65 @@ public class SchoolTeacherController extends BaseController {
//查询设备号
if
(
StringUtils
.
isNotNull
(
schoolTeacher
.
getDeviceNum
())){
LambdaQueryWrapper
<
SchoolTeacher
>
lqw1
=
new
LambdaQueryWrapper
<>();
lqw1
.
eq
(
SchoolTeacher:
:
getDeviceNum
,
schoolTeacher
.
getDeviceNum
());
lqw1
.
notIn
(
SchoolTeacher:
:
getId
,
schoolTeacher
.
getId
())
.
eq
(
SchoolTeacher:
:
getDeviceNum
,
schoolTeacher
.
getDeviceNum
());
SchoolTeacher
teacher
=
schoolTeacherService
.
getOne
(
lqw1
);
if
(
StringUtils
.
isNotNull
(
schoolTeacher
.
getId
())
&&
schoolTeacher
.
getId
().
equals
(
teacher
.
getId
()))
{
}
else
if
(
schoolTeacher
.
getDeviceNum
().
equals
(
teacher
.
getDeviceNum
())){
if
(
StringUtils
.
isNotNull
(
teacher
)){
throw
new
ServiceException
(
"设备号已存在"
);
}
// if (StringUtils.isNotNull(schoolTeacher.getId()) && schoolTeacher.getId().equals(teacher.getId())) {
//
// }else if(schoolTeacher.getDeviceNum().equals(teacher.getDeviceNum())){
// throw new ServiceException("设备号已存在");
// }
}
//查询身份证号
if
(
StringUtils
.
isNotNull
(
schoolTeacher
.
getIdCard
())){
LambdaQueryWrapper
<
SchoolTeacher
>
lqw2
=
new
LambdaQueryWrapper
<>();
lqw2
.
eq
(
SchoolTeacher:
:
getIdCard
,
schoolTeacher
.
getIdCard
());
lqw2
.
notIn
(
SchoolTeacher:
:
getId
,
schoolTeacher
.
getId
())
.
eq
(
SchoolTeacher:
:
getIdCard
,
schoolTeacher
.
getIdCard
());
SchoolTeacher
teacher
=
schoolTeacherService
.
getOne
(
lqw2
);
if
(
StringUtils
.
isNotNull
(
schoolTeacher
.
getId
())
&&
schoolTeacher
.
getId
().
equals
(
teacher
.
getId
()))
{
}
else
if
(
schoolTeacher
.
getIdCard
().
equals
(
teacher
.
getIdCard
())){
if
(
StringUtils
.
isNotNull
(
teacher
)){
throw
new
ServiceException
(
"身份证号已存在"
);
}
// if (StringUtils.isNotNull(schoolTeacher.getId()) && schoolTeacher.getId().equals(teacher.getId())) {
//
// }else if(schoolTeacher.getIdCard().equals(teacher.getIdCard())){
// throw new ServiceException("身份证号已存在");
// }
}
//查询编号
if
(
StringUtils
.
isNotNull
(
schoolTeacher
.
getTeacherCode
())){
LambdaQueryWrapper
<
SchoolTeacher
>
lqw3
=
new
LambdaQueryWrapper
<>();
lqw3
.
eq
(
SchoolTeacher:
:
getTeacherCode
,
schoolTeacher
.
getTeacherCode
());
lqw3
.
notIn
(
SchoolTeacher:
:
getId
,
schoolTeacher
.
getId
())
.
eq
(
SchoolTeacher:
:
getTeacherCode
,
schoolTeacher
.
getTeacherCode
());
SchoolTeacher
teacher
=
schoolTeacherService
.
getOne
(
lqw3
);
if
(
StringUtils
.
isNotNull
(
schoolTeacher
.
getId
())
&&
schoolTeacher
.
getId
().
equals
(
teacher
.
getId
()))
{
}
else
if
(
schoolTeacher
.
getTeacherCode
().
equals
(
teacher
.
getTeacherCode
())){
if
(
StringUtils
.
isNotNull
(
teacher
)){
throw
new
ServiceException
(
"编号已存在"
);
}
// if (StringUtils.isNotNull(schoolTeacher.getId()) && schoolTeacher.getId().equals(teacher.getId())) {
//
// }else if(schoolTeacher.getTeacherCode().equals(teacher.getTeacherCode())){
// throw new ServiceException("编号已存在");
// }
}
//查询电话号码
if
(
StringUtils
.
isNotNull
(
schoolTeacher
.
getTeacherCode
())){
LambdaQueryWrapper
<
SchoolTeacher
>
lqw4
=
new
LambdaQueryWrapper
<>();
lqw4
.
eq
(
SchoolTeacher:
:
getTeacherTel
,
schoolTeacher
.
getTeacherTel
());
lqw4
.
notIn
(
SchoolTeacher:
:
getId
,
schoolTeacher
.
getId
())
.
eq
(
SchoolTeacher:
:
getTeacherTel
,
schoolTeacher
.
getTeacherTel
());
SchoolTeacher
teacher
=
schoolTeacherService
.
getOne
(
lqw4
);
if
(
StringUtils
.
isNotNull
(
schoolTeacher
.
getId
())
&&
schoolTeacher
.
getId
().
equals
(
teacher
.
getId
()))
{
}
else
if
(
schoolTeacher
.
getTeacherTel
().
equals
(
teacher
.
getTeacherTel
())){
if
(
StringUtils
.
isNotNull
(
teacher
)){
throw
new
ServiceException
(
"电话号码已存在"
);
}
// if (StringUtils.isNotNull(schoolTeacher.getId()) && schoolTeacher.getId().equals(teacher.getId())) {
//
// }else if(schoolTeacher.getTeacherTel().equals(teacher.getTeacherTel())){
// throw new ServiceException("电话号码已存在");
// }
}
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/schoolEquipment/SchoolCirculation.java
View file @
a4efb984
package
yangtz
.
cs
.
liu
.
campus
.
domain
.
schoolEquipment
;
import
com.ruoyi.common.annotation.Excel
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
com.core.domain.OurBaseEntity
;
...
...
@@ -52,13 +54,12 @@ public class SchoolCirculation extends OurBaseEntity
/** 接收人 */
private
String
receivedBy
;
/** 预计使用
时间
*/
/** 预计使用
期限
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
yjuseTime
;
/** 实际使用时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
sjuseTime
;
private
Long
sjuseTime
;
/** 备注 */
private
String
remark
;
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/schoolgrade/SchoolGradeMentor.java
View file @
a4efb984
...
...
@@ -33,7 +33,6 @@ public class SchoolGradeMentor extends OurBaseEntity {
private
String
type
;
/** 职务 */
@NotBlank
(
message
=
"职务不能为空"
)
private
String
teacherPost
;
/** 学科组(1物理学科组,2化学学科组,3生物学科组) */
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/SchoolTeacherWages.java
View file @
a4efb984
...
...
@@ -40,9 +40,14 @@ public class SchoolTeacherWages extends OurBaseEntity {
private
BigDecimal
basePay
;
/**
* 教师电话
*/
@Excel
(
name
=
"教师联系方式"
)
private
String
teacherTel
;
/**
* 身份证号
*/
@Excel
(
name
=
"身份证号"
)
private
String
idCard
;
/**
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/ShebeiJy.java
View file @
a4efb984
...
...
@@ -46,4 +46,8 @@ public class ShebeiJy extends OurBaseEntity {
@Excel
(
name
=
"借用期限"
)
private
int
deadline
;
//归还状态(1已归还,0未归还)
@Excel
(
name
=
"归还状态"
,
readConverterExp
=
"1=已归还,0=未归还"
,
combo
=
{
"已归还"
,
"未归还"
})
private
String
returnState
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/teacher/TeacherJy.java
View file @
a4efb984
...
...
@@ -52,4 +52,8 @@ public class TeacherJy extends OurBaseEntity {
@Excel
(
name
=
"借用期限"
)
private
int
deadline
;
//归还状态(1已归还,0未归还)
@Excel
(
name
=
"归还状态"
,
readConverterExp
=
"1=已归还,0=未归还"
,
combo
=
{
"已归还"
,
"未归还"
})
private
String
returnState
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/schoolEquipment/EquipmentLedgerMapper.java
View file @
a4efb984
...
...
@@ -35,4 +35,11 @@ public interface EquipmentLedgerMapper extends BaseMapper<SchoolEquipmentLedger>
* @return
*/
List
<
SchoolEquipmentLedger
>
selectSchoolEquipmentLedgerListGr
(
SchoolEquipmentLedgerVo
schoolEquipmentLedgerVo
);
/**
* 打印设备条码信息
* @param ids
* @return
*/
List
<
Map
<
String
,
Object
>>
getEquipmentledger
(
Long
[]
ids
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/mapper/teacher/SchoolTeacherWagesMapper.java
View file @
a4efb984
...
...
@@ -13,4 +13,11 @@ public interface SchoolTeacherWagesMapper extends BaseMapper<SchoolTeacherWages>
List
<
SchoolTeacherWages
>
query
(
SchoolTeacherWages
schoolTeacherWages
);
/**
* 批量新增教师工资
* @param list
* @return
*/
int
batchInsertTeacherWages
(
List
<
SchoolTeacherWages
>
list
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolDcwj/SchoolDcwjNrServiceImpl.java
View file @
a4efb984
This diff is collapsed.
Click to expand it.
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolDcwj/SchoolDcwjRyServiceImpl.java
View file @
a4efb984
...
...
@@ -179,6 +179,13 @@ public class SchoolDcwjRyServiceImpl extends ServiceImpl<SchoolDcwjRyMapper, Sch
nrlqw
.
eq
(
SchoolDcwjNr:
:
getDcwjId
,
dcwjId
).
orderByAsc
(
SchoolDcwjNr:
:
getNrPx
).
orderByDesc
(
SchoolDcwjNr:
:
getCreateTime
);
List
<
SchoolDcwjNr
>
nrs
=
nrMapper
.
selectList
(
nrlqw
);
LambdaQueryWrapper
<
SchoolDcwjAn
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
SchoolDcwjAn:
:
getDcwjId
,
dcwjId
)
;
//a里要么有1个值,要么没有值
List
<
SchoolDcwjAn
>
a
=
anMapper
.
selectList
(
lqw
);
//教师调查问卷回答的内容
for
(
SchoolDcwjAnVo
anVo
:
list
)
{
List
<
SchoolDcwjAn
>
ans
=
new
ArrayList
<>();
...
...
@@ -187,19 +194,28 @@ public class SchoolDcwjRyServiceImpl extends ServiceImpl<SchoolDcwjRyMapper, Sch
//获取该学生从第一题到最后一题的答案,如果当前题没有答案,,附空值
for
(
SchoolDcwjNr
nr
:
nrs
){
LambdaQueryWrapper
<
SchoolDcwjAn
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
SchoolDcwjAn:
:
getDcwjId
,
dcwjId
)
.
eq
(
SchoolDcwjAn:
:
getRyId
,
anVo
.
getId
())
.
eq
(
SchoolDcwjAn:
:
getNrId
,
nr
.
getId
())
;
//a里要么有1个值,要么没有值
List
<
SchoolDcwjAn
>
a
=
anMapper
.
selectList
(
lqw
);
if
(
StringUtils
.
isNotNull
(
a
)
&&
a
.
size
()
>
0
){
ans
.
add
(
a
.
get
(
0
));
}
else
{
ans
.
add
(
entity
);
// LambdaQueryWrapper<SchoolDcwjAn> lqw = new LambdaQueryWrapper<>();
// lqw
// .eq(SchoolDcwjAn::getDcwjId, dcwjId)
// .eq(SchoolDcwjAn::getRyId, anVo.getId())
// .eq(SchoolDcwjAn::getNrId, nr.getId())
// ;
// //a里要么有1个值,要么没有值
// List<SchoolDcwjAn> a = anMapper.selectList(lqw);
for
(
SchoolDcwjAn
schoolDcwjAn
:
a
)
{
if
(
schoolDcwjAn
.
getRyId
().
equals
(
anVo
.
getId
())
&&
schoolDcwjAn
.
getNrId
().
equals
(
nr
.
getId
())){
ans
.
add
(
schoolDcwjAn
);
}
else
{
ans
.
add
(
entity
);
}
}
// if(StringUtils.isNotNull(a) && a.size() > 0){
// ans.add(a.get(0));
// }else {
// ans.add(entity);
// }
}
anVo
.
setList
(
ans
);
}
...
...
@@ -215,6 +231,13 @@ public class SchoolDcwjRyServiceImpl extends ServiceImpl<SchoolDcwjRyMapper, Sch
nrlqw
.
eq
(
SchoolDcwjNr:
:
getDcwjId
,
dcwjId
).
orderByAsc
(
SchoolDcwjNr:
:
getNrPx
).
orderByDesc
(
SchoolDcwjNr:
:
getCreateTime
);
List
<
SchoolDcwjNr
>
nrs
=
nrMapper
.
selectList
(
nrlqw
);
LambdaQueryWrapper
<
SchoolDcwjAn
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
SchoolDcwjAn:
:
getDcwjId
,
dcwjId
)
;
//a里要么有1个值,要么没有值
List
<
SchoolDcwjAn
>
a
=
anMapper
.
selectList
(
lqw
);
//学生家长调查问卷回答的内容
for
(
SchoolDcwjAnVo
anVo
:
list
)
{
List
<
SchoolDcwjAn
>
ans
=
new
ArrayList
<>();
...
...
@@ -223,19 +246,28 @@ public class SchoolDcwjRyServiceImpl extends ServiceImpl<SchoolDcwjRyMapper, Sch
//获取该学生从第一题到最后一题的答案,如果当前题没有答案,,附空值
for
(
SchoolDcwjNr
nr
:
nrs
){
LambdaQueryWrapper
<
SchoolDcwjAn
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
SchoolDcwjAn:
:
getDcwjId
,
dcwjId
)
.
eq
(
SchoolDcwjAn:
:
getRyId
,
anVo
.
getId
())
.
eq
(
SchoolDcwjAn:
:
getNrId
,
nr
.
getId
())
;
//a里要么有1个值,要么没有值
List
<
SchoolDcwjAn
>
a
=
anMapper
.
selectList
(
lqw
);
if
(
StringUtils
.
isNotNull
(
a
)
&&
a
.
size
()
>
0
){
ans
.
add
(
a
.
get
(
0
));
}
else
{
ans
.
add
(
entity
);
// LambdaQueryWrapper<SchoolDcwjAn> lqw = new LambdaQueryWrapper<>();
// lqw
// .eq(SchoolDcwjAn::getDcwjId, dcwjId)
// .eq(SchoolDcwjAn::getRyId, anVo.getId())
// .eq(SchoolDcwjAn::getNrId, nr.getId())
// ;
// //a里要么有1个值,要么没有值
// List<SchoolDcwjAn> a = anMapper.selectList(lqw);
for
(
SchoolDcwjAn
schoolDcwjAn
:
a
)
{
if
(
schoolDcwjAn
.
getRyId
().
equals
(
anVo
.
getId
())
&&
schoolDcwjAn
.
getNrId
().
equals
(
nr
.
getId
())){
ans
.
add
(
schoolDcwjAn
);
}
else
{
ans
.
add
(
entity
);
}
}
// if(StringUtils.isNotNull(a) && a.size() > 0){
// ans.add(a.get(0));
// }else {
// ans.add(entity);
// }
}
anVo
.
setList
(
ans
);
}
...
...
@@ -2060,4 +2092,14 @@ public class SchoolDcwjRyServiceImpl extends ServiceImpl<SchoolDcwjRyMapper, Sch
}
return
list
;
}
@Override
public
List
<
SchoolDcwjAnVo
>
getTeaAnData
(
Long
dcwjId
,
SchoolDcwjAnVo
vo
)
{
return
schoolDcwjRyMapper
.
getTeaAnData
(
dcwjId
,
vo
);
}
@Override
public
List
<
SchoolDcwjAnVo
>
getAnData1
(
Long
dcwjId
,
SchoolDcwjAnVo
vo
)
{
return
schoolDcwjRyMapper
.
getAnData
(
dcwjId
,
vo
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolEquipment/CirculationServiceImpl.java
View file @
a4efb984
...
...
@@ -101,6 +101,9 @@ public class CirculationServiceImpl extends ServiceImpl<CirculationMapper, Schoo
public
int
insertSchoolCirculation
(
SchoolCirculation
schoolCirculation
)
{
//判断该设备是否允许借出
SchoolEquipmentLedger
schoolEquipmentLedger1
=
equipmentLedgerMapper
.
selectById
(
schoolCirculation
.
getEquipmentId
());
if
(
StringUtils
.
isNull
(
schoolEquipmentLedger1
)){
throw
new
ServiceException
(
"未查询到该设备,请重新输入!"
);
}
if
(
schoolEquipmentLedger1
.
getIsAllowLend
().
equals
(
"0"
)){
throw
new
ServiceException
(
"该设备不允许借出"
);
}
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolEquipment/EquipmentLedgerServiceImpl.java
View file @
a4efb984
...
...
@@ -19,8 +19,10 @@ import yangtz.cs.liu.campus.mapper.schoolEquipment.*;
import
yangtz.cs.liu.campus.service.schoolEquipment.IEquipmentLedgerService
;
import
yangtz.cs.liu.campus.vo.schoolEquipment.SchoolEquipmentLedgerVo
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDate
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -223,16 +225,6 @@ public class EquipmentLedgerServiceImpl extends ServiceImpl<EquipmentLedgerMappe
}
else
if
(
schoolEquipmentLedger
.
getClassificationCode
().
length
()
<
4
){
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、分类编码长度最少为4位,请你核对后重新输入!"
);
}
else
if
(
StringUtils
.
isNotNull
(
schoolEquipmentLedger
.
getClassificationCode
())){
//查询分类编码是否重复
LambdaQueryWrapper
<
SchoolProductCategory
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
SchoolProductCategory:
:
getClassificationCode
,
schoolEquipmentLedger
.
getClassificationCode
())
.
eq
(
SchoolProductCategory:
:
getDelFlag
,
"0"
);
List
<
SchoolProductCategory
>
schoolProductCategories
=
productCategoryMapper
.
selectList
(
wrapper
);
if
(
schoolProductCategories
.
size
()<=
0
)
{
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、分类编码不存在,请你重新输入!"
);
}
}
else
if
(
StringUtils
.
isNull
(
schoolEquipmentLedger
.
getUnit
())){
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、单位为空,请你重新输入!"
);
...
...
@@ -260,6 +252,31 @@ public class EquipmentLedgerServiceImpl extends ServiceImpl<EquipmentLedgerMappe
}
else
if
(
StringUtils
.
isNull
(
schoolEquipmentLedger
.
getPlace
())){
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、地点为空,请你重新输入!"
);
}
else
{
try
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Date
dateOfProduction
=
schoolEquipmentLedger
.
getDateOfProduction
();
sdf
.
format
(
dateOfProduction
);
}
catch
(
Exception
e
)
{
throw
new
ServiceException
(
"格式不对,请检查日期格式"
);
}
try
{
Integer
.
parseInt
(
schoolEquipmentLedger
.
getPlace
());
throw
new
ServiceException
(
"地点输入错误,请重新输入!"
);
}
catch
(
NumberFormatException
e
)
{
e
.
printStackTrace
();
}
}
if
(
StringUtils
.
isNotNull
(
schoolEquipmentLedger
.
getClassificationCode
())){
//查询分类编码是否重复
LambdaQueryWrapper
<
SchoolProductCategory
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
SchoolProductCategory:
:
getClassificationCode
,
schoolEquipmentLedger
.
getClassificationCode
())
.
eq
(
SchoolProductCategory:
:
getDelFlag
,
"0"
);
List
<
SchoolProductCategory
>
schoolProductCategories
=
productCategoryMapper
.
selectList
(
wrapper
);
if
(
schoolProductCategories
.
size
()<=
0
)
{
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、分类编码不存在,请你重新输入!"
);
}
}
}
if
(
failureNum
>
0
)
{
...
...
@@ -276,4 +293,14 @@ public class EquipmentLedgerServiceImpl extends ServiceImpl<EquipmentLedgerMappe
public
List
<
Map
<
String
,
Object
>>
getUser
(
SysUser
sysUser
)
{
return
equipmentLedgerMapper
.
getUser
(
sysUser
);
}
/**
* 打印设备条码信息
* @param ids
* @return
*/
@Override
public
List
<
Map
<
String
,
Object
>>
getEquipmentledger
(
Long
[]
ids
)
{
return
equipmentLedgerMapper
.
getEquipmentledger
(
ids
);
}
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolEquipment/EquipmentRepairServiceImpl.java
View file @
a4efb984
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.ruoyi.common.annotation.DataScope
;
import
com.ruoyi.common.core.domain.entity.SysRole
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.common.utils.StringUtils
;
...
...
@@ -144,7 +145,11 @@ public class EquipmentRepairServiceImpl extends ServiceImpl<EquipmentRepairMappe
@Override
public
Map
<
String
,
String
>
getEquipment
(
String
encode
)
{
// Long userId = SecurityUtils.getLoginUser().getUser().getUserId();
return
equipmentRepairMapper
.
getEquipment
(
encode
);
Map
<
String
,
String
>
equipment
=
equipmentRepairMapper
.
getEquipment
(
encode
);
if
(
StringUtils
.
isNull
(
equipment
)){
throw
new
ServiceException
(
"未查询到设备信息,请重新输入设备编号!"
);
}
return
equipment
;
}
/**
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolEquipment/ReceiveServiceImpl.java
View file @
a4efb984
...
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.ruoyi.common.annotation.DataScope
;
import
com.ruoyi.common.core.domain.entity.SysRole
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.common.utils.StringUtils
;
...
...
@@ -71,6 +72,14 @@ public class ReceiveServiceImpl extends ServiceImpl<ReceiveMapper, SchoolReceive
*/
@Override
public
int
insertSchoolReceive
(
SchoolReceive
schoolReceive
)
{
//判断该设备是否允许借出
SchoolEquipmentLedger
schoolEquipmentLedger1
=
equipmentLedgerMapper
.
selectById
(
schoolReceive
.
getEquipmentId
());
if
(
StringUtils
.
isNull
(
schoolEquipmentLedger1
)){
throw
new
ServiceException
(
"未查询到该设备,请重新输入!"
);
}
if
(
schoolEquipmentLedger1
.
getIsAllowLend
().
equals
(
"0"
)){
throw
new
ServiceException
(
"该设备不允许借出"
);
}
if
(
StringUtils
.
isNotNull
(
schoolReceive
.
getRecipientById
())){
String
userName
=
sysUserMapper
.
selectUserById
(
schoolReceive
.
getRecipientById
()).
getUserName
();
schoolReceive
.
setRecipientBy
(
userName
);
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/schoolbudget/SchoolBudgetDetailsServiceImpl.java
View file @
a4efb984
...
...
@@ -139,8 +139,8 @@ public class SchoolBudgetDetailsServiceImpl extends ServiceImpl<SchoolBudgetDeta
}
boolean
isMerge
=
isMergedRegion
(
sheet
,
i
,
0
);
//schoolBudgetDetails.setBudgetDetailed(row.getCell(6).getStringCellValue());
schoolBudgetDetails
.
setBudgetDetailed
(
TemplateExcelUtils
.
getCellValue
(
row
.
getCell
(
6
),
workbook
));
schoolBudgetDetails
.
setMoneyDetailed
(
new
BigDecimal
(
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
7
))));
schoolBudgetDetails
.
setBudgetDetailed
(
TemplateExcelUtils
.
getCellValue
(
row
.
getCell
(
7
),
workbook
));
schoolBudgetDetails
.
setMoneyDetailed
(
new
BigDecimal
(
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
8
))));
if
(
isMerge
){
//如果是合并单元格
isSameCell
=
isSameMergeRegion
(
sheet
,
i
,
0
);
//判断与上一行是否为同一单元格
if
(!
isSameCell
){
...
...
@@ -157,14 +157,14 @@ public class SchoolBudgetDetailsServiceImpl extends ServiceImpl<SchoolBudgetDeta
schoolBudget
.
setBudgetName
(
budgetName
);
giveMoney
=
getMergedRegionValue
(
sheet
,
row
.
getRowNum
(),
3
);
schoolBudget
.
setGiveMoney
(
new
BigDecimal
(
giveMoney
));
isGov
=
getMergedRegionValue
(
sheet
,
row
.
getRowNum
(),
4
);
isGov
=
getMergedRegionValue
(
sheet
,
row
.
getRowNum
(),
5
);
if
(
isGov
.
equals
(
"是"
)){
schoolBudget
.
setIsGov
(
"0"
);
}
if
(
isGov
.
equals
(
"否"
)){
schoolBudget
.
setIsGov
(
"1"
);
}
remark
=
getMergedRegionValue
(
sheet
,
row
.
getRowNum
(),
5
);
remark
=
getMergedRegionValue
(
sheet
,
row
.
getRowNum
(),
6
);
schoolBudget
.
setRemark
(
remark
);
schoolBudgetMapper
.
insert
(
schoolBudget
);
budgetId
=
schoolBudget
.
getId
();
...
...
@@ -182,14 +182,14 @@ public class SchoolBudgetDetailsServiceImpl extends ServiceImpl<SchoolBudgetDeta
schoolBudget
.
setDeptId
(
deptId
);
schoolBudget
.
setBudgetName
(
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
2
)));
schoolBudget
.
setGiveMoney
(
new
BigDecimal
(
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
3
))));
isGov
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
4
));
isGov
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
5
));
if
(
isGov
.
equals
(
"是"
)){
schoolBudget
.
setIsGov
(
"0"
);
}
if
(
isGov
.
equals
(
"否"
)){
schoolBudget
.
setIsGov
(
"1"
);
}
schoolBudget
.
setRemark
(
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
5
)));
schoolBudget
.
setRemark
(
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
6
)));
schoolBudgetMapper
.
insert
(
schoolBudget
);
schoolBudgetDetails
.
setBudgetId
(
schoolBudget
.
getId
());
schoolBudgetDetailsMapper
.
insert
(
schoolBudgetDetails
);
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/student/SchoolStudentServiceImpl.java
View file @
a4efb984
...
...
@@ -116,15 +116,24 @@ public class SchoolStudentServiceImpl extends ServiceImpl<SchoolStudentMapper, S
if
(
isNull
(
list
)
||
list
.
size
()
==
0
)
{
return
new
ArrayList
<>();
}
//获取所有学生家长
LambdaQueryWrapper
<
SchoolStudentParent
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
orderByDesc
(
SchoolStudentParent:
:
getCreateTime
);
List
<
SchoolStudentParent
>
studentParentList
=
schoolStudentParentMapper
.
selectList
(
lqw
);
for
(
SchoolStudentVO
vo
:
list
)
{
LambdaQueryWrapper
<
SchoolStudentParent
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
SchoolStudentParent:
:
getStudentId
,
vo
.
getId
())
.
orderByDesc
(
SchoolStudentParent:
:
getCreateTime
);
List
<
SchoolStudentParent
>
parentList
=
schoolStudentParentMapper
.
selectList
(
lqw
);
// LambdaQueryWrapper<SchoolStudentParent> lqw = new LambdaQueryWrapper<>();
// lqw.eq(SchoolStudentParent::getStudentId, vo.getId())
// .orderByDesc(SchoolStudentParent::getCreateTime);
// List<SchoolStudentParent> parentList = schoolStudentParentMapper.selectList(lqw);
List
<
SchoolStudentParent
>
parentList
=
new
ArrayList
<>();
for
(
SchoolStudentParent
studentParent
:
studentParentList
)
{
if
(
vo
.
getId
().
equals
(
studentParent
.
getStudentId
())){
parentList
.
add
(
studentParent
);
}
}
if
(
isNull
(
parentList
)
||
parentList
.
size
()
==
0
)
{
continue
;
}
//获取学生家长,至多2人
int
i
=
1
;
for
(
SchoolStudentParent
parent
:
parentList
)
{
...
...
@@ -172,22 +181,46 @@ public class SchoolStudentServiceImpl extends ServiceImpl<SchoolStudentMapper, S
List
<
SchoolStudentVO
>
list
=
new
ArrayList
<>();
List
<
SchoolStudent
>
studentList
=
schoolStudentMapper
.
selectBatchIds
(
ids
);
//获取所有班级
List
<
SchoolClass
>
schoolClasses
=
schoolClassMapper
.
selectList
(
new
LambdaQueryWrapper
<>());
//获取所有家长
LambdaQueryWrapper
<
SchoolStudentParent
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
orderByDesc
(
SchoolStudentParent:
:
getCreateTime
);
List
<
SchoolStudentParent
>
studentParentList
=
schoolStudentParentMapper
.
selectList
(
lqw
);
for
(
SchoolStudent
student
:
studentList
)
{
SchoolStudentVO
vo
=
new
SchoolStudentVO
();
BeanUtils
.
copyProperties
(
student
,
vo
);
//学年年级班级
SchoolClass
theClass
=
schoolClassMapper
.
selectById
(
student
.
getClassId
());
if
(
isNotNull
(
theClass
))
{
vo
.
setSchoolYear
(
theClass
.
getSchoolYear
());
vo
.
setGradeValue
(
theClass
.
getGrade
Value
());
vo
.
setClassValue
(
theClass
.
getClassValue
());
for
(
SchoolClass
schoolClass
:
schoolClasses
)
{
if
(
schoolClass
.
getId
().
equals
(
student
.
getClassId
())){
vo
.
setSchoolYear
(
schoolClass
.
getSchoolYear
());
vo
.
setGradeValue
(
schoolClass
.
getGradeValue
());
vo
.
setClassValue
(
schoolClass
.
getClass
Value
());
}
}
// //学年年级班级
// SchoolClass theClass = schoolClassMapper.selectById(student.getClassId());
// if (isNotNull(theClass)) {
// vo.setSchoolYear(theClass.getSchoolYear());
// vo.setGradeValue(theClass.getGradeValue());
// vo.setClassValue(theClass.getClassValue());
// }
//家长信息
LambdaQueryWrapper
<
SchoolStudentParent
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
SchoolStudentParent:
:
getStudentId
,
student
.
getId
())
.
orderByDesc
(
SchoolStudentParent:
:
getCreateTime
);
List
<
SchoolStudentParent
>
parentList
=
schoolStudentParentMapper
.
selectList
(
lqw
);
// LambdaQueryWrapper<SchoolStudentParent> lqw = new LambdaQueryWrapper<>();
// lqw.eq(SchoolStudentParent::getStudentId, student.getId())
// .orderByDesc(SchoolStudentParent::getCreateTime);
// List<SchoolStudentParent> parentList = schoolStudentParentMapper.selectList(lqw);
List
<
SchoolStudentParent
>
parentList
=
new
ArrayList
<>();
for
(
SchoolStudentParent
studentParent
:
studentParentList
)
{
if
(
vo
.
getId
().
equals
(
studentParent
.
getStudentId
())){
parentList
.
add
(
studentParent
);
}
}
if
(
isNull
(
parentList
)
||
parentList
.
size
()
==
0
)
{
list
.
add
(
vo
);
continue
;
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/impl/teacher/SchoolTeacherWagesServiceImpl.java
View file @
a4efb984
...
...
@@ -16,6 +16,7 @@ import yangtz.cs.liu.campus.mapper.teacher.SchoolTeacherWagesMapper;
import
yangtz.cs.liu.campus.service.teacher.ISchoolTeacherWagesService
;
import
yangtz.cs.liu.campus.vo.student.SchoolTeacherWagesVO
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -123,7 +124,7 @@ public class SchoolTeacherWagesServiceImpl extends ServiceImpl<SchoolTeacherWage
public
int
insertByTeacherId
(
Long
teacherId
,
SchoolTeacherWages
schoolTeacherWages
)
{
SchoolTeacher
schoolTeacher
=
schoolTeacherMapper
.
selectById
(
teacherId
);
schoolTeacherWages
.
setTeacherName
(
schoolTeacher
.
getTeacherName
());
schoolTeacherWages
.
set
IdCard
(
schoolTeacher
.
getIdCard
());
schoolTeacherWages
.
set
TeacherTel
(
schoolTeacher
.
getTeacherTel
());
return
schoolTeacherWagesMapper
.
insert
(
schoolTeacherWages
);
}
...
...
@@ -143,12 +144,10 @@ public class SchoolTeacherWagesServiceImpl extends ServiceImpl<SchoolTeacherWage
if
(
StringUtils
.
isEmpty
(
schoolTeacherWages
.
getTeacherName
()))
{
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、教师姓名为空,请您重新输入! "
);
}
// else if (StringUtils.isEmpty(schoolTeacherWages.getIdCard())) {
// failureNum++;
// failureMsg.append("<br/>" + failureNum + "、身份证号为空,请您重新输入! ");
// }
else
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getWagesTime
()))
{
}
else
if
(
StringUtils
.
isEmpty
(
schoolTeacherWages
.
getTeacherTel
()))
{
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、教师联系方式为空,请您重新输入! "
);
}
else
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getWagesTime
()))
{
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、工资日期为空,请您重新输入!"
);
}
else
if
(
isNotNull
(
schoolTeacherWages
.
getWagesTime
()))
{
...
...
@@ -159,15 +158,62 @@ public class SchoolTeacherWagesServiceImpl extends ServiceImpl<SchoolTeacherWage
}
catch
(
Exception
e
)
{
throw
new
ServiceException
(
"格式不对,请检查日期格式"
);
}
}
// else {
// LambdaQueryWrapper<SchoolTeacherWages> lqw = new LambdaQueryWrapper<>();
// lqw
// .eq(SchoolTeacherWages::getTeacherTel, schoolTeacherWages.getTeacherTel());
// SchoolTeacherWages teacherWages = schoolTeacherWagesMapper.selectOne(lqw);
// if (isNull(teacherWages)){
// failureNum++;
// failureMsg.append("<br/>" + failureNum + "、该老师不存在,请您重新输入! ");
// }
// }
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getBasePay
()))
{
schoolTeacherWages
.
setBasePay
(
new
BigDecimal
(
0
));
}
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getBonus
()))
{
schoolTeacherWages
.
setBonus
(
new
BigDecimal
(
0
));
}
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getPension
()))
{
schoolTeacherWages
.
setPension
(
new
BigDecimal
(
0
));
}
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getAccumulationFund
()))
{
schoolTeacherWages
.
setAccumulationFund
(
new
BigDecimal
(
0
));
}
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getMedicalInsurance
()))
{
schoolTeacherWages
.
setMedicalInsurance
(
new
BigDecimal
(
0
));
}
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getFareSubsidy
()))
{
schoolTeacherWages
.
setFareSubsidy
(
new
BigDecimal
(
0
));
}
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getTelephoneSubsidy
()))
{
schoolTeacherWages
.
setTelephoneSubsidy
(
new
BigDecimal
(
0
));
}
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getMealAllowance
()))
{
schoolTeacherWages
.
setMealAllowance
(
new
BigDecimal
(
0
));
}
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getIncomeTax
()))
{
schoolTeacherWages
.
setIncomeTax
(
new
BigDecimal
(
0
));
}
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getUnemploymentBenefits
()))
{
schoolTeacherWages
.
setUnemploymentBenefits
(
new
BigDecimal
(
0
));
}
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getOvertimePay
()))
{
schoolTeacherWages
.
setOvertimePay
(
new
BigDecimal
(
0
));
}
if
(
StringUtils
.
isNull
(
schoolTeacherWages
.
getRemarks
()))
{
schoolTeacherWages
.
setRemarks
(
""
);
}
LambdaQueryWrapper
<
SchoolTeacher
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
SchoolTeacher:
:
getTeacherTel
,
schoolTeacherWages
.
getTeacherTel
());
SchoolTeacher
schoolTeacher
=
schoolTeacherMapper
.
selectOne
(
lqw
);
if
(
isNull
(
schoolTeacher
)){
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、该老师不存在,请您重新输入! "
);
}
else
{
LambdaQueryWrapper
<
SchoolTeacherWages
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
SchoolTeacherWages:
:
getIdCard
,
schoolTeacherWages
.
getIdCard
());
SchoolTeacherWages
teacherWages
=
schoolTeacherWagesMapper
.
selectOne
(
lqw
);
if
(
isNull
(
teacherWages
)){
failureNum
++;
failureMsg
.
append
(
"<br/>"
+
failureNum
+
"、该老师不存在,请您重新输入! "
);
}
schoolTeacherWages
.
setTeacherId
(
schoolTeacher
.
getId
());
}
}
if
(
failureNum
>
0
)
{
...
...
@@ -186,16 +232,19 @@ public class SchoolTeacherWagesServiceImpl extends ServiceImpl<SchoolTeacherWage
// 准备记录日志数据
int
successNum
=
0
;
StringBuilder
successMsg
=
new
StringBuilder
();
for
(
SchoolTeacherWages
schoolTeacherWages
:
list
)
{
try
{
schoolTeacherWagesMapper
.
insert
(
schoolTeacherWages
);
successNum
++;
successMsg
.
append
(
"<br/>"
+
successNum
+
"数据"
+
" 导入成功"
);
}
catch
(
Exception
e
)
{
throw
new
ServiceException
(
"导入失败"
);
}
}
successMsg
.
insert
(
0
,
"恭喜您,数据已导入成功!共有 "
+
successNum
+
" 条,数据如下:"
);
schoolTeacherWagesMapper
.
batchInsertTeacherWages
(
list
);
// for (SchoolTeacherWages schoolTeacherWages : list) {
// try {
// schoolTeacherWagesMapper.insert(schoolTeacherWages);
// successNum++;
// successMsg.append("<br/>" + successNum + "数据" + " 导入成功");
// } catch (Exception e) {
// throw new ServiceException("导入失败");
// }
// }
successMsg
.
insert
(
0
,
"恭喜您,数据已导入成功!"
);
return
successMsg
.
toString
();
}
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/service/schoolDcwj/ISchoolDcwjRyService.java
View file @
a4efb984
...
...
@@ -91,4 +91,8 @@ public interface ISchoolDcwjRyService extends IService<SchoolDcwjRy>
//班主任-问卷结果-统计
public
List
<
DataCountVo
>
getHeaderCount
(
Long
id
,
List
<
Long
>
studentIds
);
List
<
SchoolDcwjAnVo
>
getTeaAnData
(
Long
dcwjId
,
SchoolDcwjAnVo
vo
);
List
<
SchoolDcwjAnVo
>
getAnData1
(
Long
dcwjId
,
SchoolDcwjAnVo
vo
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/service/schoolEquipment/IEquipmentLedgerService.java
View file @
a4efb984
...
...
@@ -70,4 +70,10 @@ public interface IEquipmentLedgerService extends IService<SchoolEquipmentLedger>
*/
List
<
Map
<
String
,
Object
>>
getUser
(
SysUser
sysUser
);
/**
* 打印设备条码信息
* @param ids
* @return
*/
List
<
Map
<
String
,
Object
>>
getEquipmentledger
(
Long
[]
ids
);
}
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/schoolEquipment/SchoolCirculationVo.java
View file @
a4efb984
...
...
@@ -86,13 +86,12 @@ public class SchoolCirculationVo extends BaseEntity
/** 预计使用时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"预计使用
时间
"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"预计使用
期限
"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
yjuseTime
;
/** 实际使用时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"实际使用时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
sjuseTime
;
@Excel
(
name
=
"实际使用时间"
)
private
Long
sjuseTime
;
/** 备注 */
@Excel
(
name
=
"备注"
)
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/schoolEquipment/SchoolEquipmentLedgerDcVo.java
0 → 100644
View file @
a4efb984
package
yangtz
.
cs
.
liu
.
campus
.
vo
.
schoolEquipment
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.core.domain.OurBaseEntity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.ruoyi.common.annotation.Excel
;
import
com.ruoyi.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* 设备台账对象 school_equipment_ledger
*
* @author ruoyi
* @date 2023-08-09
*/
@Data
public
class
SchoolEquipmentLedgerDcVo
extends
OurBaseEntity
{
@Excel
(
name
=
"序号"
)
private
Integer
serialNumber
;
/** 自编码 */
@Excel
(
name
=
"设备名称"
)
private
String
encode
;
/** 设备名称 */
@Excel
(
name
=
"设备名称"
)
private
String
equipmentName
;
/** 型号 */
@Excel
(
name
=
"型号"
)
private
String
model
;
/** 规格 */
@Excel
(
name
=
"规格"
)
private
String
specification
;
/** 分类编码 */
@Excel
(
name
=
"分类编码"
)
private
String
classificationCode
;
/** 单位 */
@Excel
(
name
=
"单位"
)
private
String
unit
;
/** 归属类型(1公共区域,2信息中心,3个人) */
@Excel
(
name
=
"归属类型"
,
readConverterExp
=
"1=公共区域,2=信息中心,3=个人"
,
combo
=
{
"公共区域"
,
"信息中心"
,
"个人"
})
private
String
affiliationType
;
/** 设备状态(1完好,2损坏,3报废) */
@Excel
(
name
=
"设备状态"
,
readConverterExp
=
"1=完好,2=损坏,3=报废"
,
combo
=
{
"完好"
,
"损坏"
,
"报废"
})
private
String
equipmentState
;
/** 是否允许借出(1是,0否) */
@Excel
(
name
=
"是否允许借出"
,
readConverterExp
=
"1=是,0=否"
,
combo
=
{
"是"
,
"否"
})
private
String
isAllowLend
;
/** 是否已借出(1是,0否) */
@Excel
(
name
=
"是否已借出"
,
readConverterExp
=
"1=是,0=否"
,
combo
=
{
"是"
,
"否"
})
private
String
isLend
;
/** 投产日期 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"投产日期"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
dateOfProduction
;
/** 价格 */
@Excel
(
name
=
"价格(元)"
)
private
BigDecimal
price
;
/** 效用年限(年) */
@Excel
(
name
=
"效用年限(年)"
)
private
String
lifeOfUtility
;
/** 地点 */
@Excel
(
name
=
"地点"
)
private
String
place
;
/** 使用人id */
@TableField
(
fill
=
FieldFill
.
UPDATE
)
private
Long
useId
;
/** 使用人 */
@TableField
(
fill
=
FieldFill
.
UPDATE
)
@Excel
(
name
=
"使用人"
)
private
String
useName
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remark
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/student/StudentLeaveVO.java
View file @
a4efb984
...
...
@@ -104,6 +104,7 @@ public class StudentLeaveVO extends ProcessBaseEntity {
private
String
handUserName
;
/** 创建时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
createTime
;
...
...
smart-campus/src/main/resources/mapper/schoolEquipment/CirculationMapper.xml
View file @
a4efb984
...
...
@@ -63,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"equipmentName != null and equipmentName != ''"
>
and el.equipment_name like concat('%', #{equipmentName}, '%')
</if>
<if
test=
"borrowTime != null"
>
and DATE_FORMAT(c.borrow_time,'%Y-%m-%d') = DATE_FORMAT(#{borrowTime},'%Y-%m-%d')
</if>
<if
test=
"borrowById != null"
>
and c.borrow_by_id = #{borrowById}
</if>
order by c.create_time DESC
</select>
<select
id=
"selectSchoolCirculationVoListGr"
parameterType=
"SchoolCirculationVo"
resultMap=
"schoolCirculationVoResult"
>
...
...
@@ -99,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"equipmentName != null and equipmentName != ''"
>
and el.equipment_name like concat('%', #{equipmentName}, '%')
</if>
<if
test=
"borrowTime != null"
>
and DATE_FORMAT(c.borrow_time,,'%Y-%m-%d') = DATE_FORMAT(#{borrowTime},'%Y-%m-%d')
</if>
<if
test=
"borrowById != null"
>
and c.borrow_by_id = #{borrowById}
</if>
order by c.create_time DESC
</select>
<select
id=
"selectSchoolCirculationVoById"
parameterType=
"Long"
resultMap=
"schoolCirculationVoResult"
>
...
...
smart-campus/src/main/resources/mapper/schoolEquipment/EquipmentLedgerMapper.xml
View file @
a4efb984
...
...
@@ -42,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"classificationCode != null and classificationCode != ''"
>
and el.classification_code like concat('%', #{classificationCode}, '%')
</if>
<if
test=
"equipmentState != null and equipmentState != ''"
>
and el.equipment_state = #{equipmentState}
</if>
<if
test=
"affiliationType != null and affiliationType != ''"
>
and el.affiliation_type = #{affiliationType}
</if>
order by el.create_time DESC
</select>
<select
id=
"selectSchoolEquipmentLedgerListGr"
parameterType=
"SchoolEquipmentLedgerVo"
resultMap=
"schoolEquipmentLedgerResult"
>
...
...
@@ -56,6 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"classificationCode != null and classificationCode != ''"
>
and el.classification_code like concat('%', #{classificationCode}, '%')
</if>
<if
test=
"equipmentState != null and equipmentState != ''"
>
and el.equipment_state = #{equipmentState}
</if>
<if
test=
"affiliationType != null and affiliationType != ''"
>
and el.affiliation_type = #{affiliationType}
</if>
order by el.create_time DESC
</select>
<update
id=
"outSchoolEquipmentLedger"
parameterType=
"String"
>
...
...
@@ -79,4 +81,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND user_name like concat('%', #{userName}, '%')
</if>
</select>
<select
id=
"getEquipmentledger"
parameterType=
"String"
resultType=
"Map"
>
select id as id, encode as encode, equipment_name as equipmentName, model as model, place as place from school_equipment_ledger where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</select>
</mapper>
smart-campus/src/main/resources/mapper/schoolEquipment/EquipmentRepairMapper.xml
View file @
a4efb984
...
...
@@ -65,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"classificationCode != null and classificationCode != ''"
>
and el.classification_code like concat('%', #{classificationCode}, '%')
</if>
<if
test=
"repairState != null and repairState != ''"
>
and er.repair_state = #{repairState}
</if>
<if
test=
"disposeState != null and disposeState != ''"
>
and er.dispose_state = #{disposeState}
</if>
order by er.create_time DESC
</select>
<select
id=
"selectSchoolEquipmentRepairVoListGr"
parameterType=
"SchoolEquipmentRepairVo"
resultMap=
"schoolEquipmentRepairVoResult"
>
...
...
@@ -100,6 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"classificationCode != null and classificationCode != ''"
>
and el.classification_code like concat('%', #{classificationCode}, '%')
</if>
<if
test=
"repairState != null and repairState != ''"
>
and er.repair_state = #{repairState}
</if>
<if
test=
"disposeState != null and disposeState != ''"
>
and er.dispose_state = #{disposeState}
</if>
order by er.create_time DESC
</select>
...
...
@@ -110,7 +112,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM school_equipment_repair er LEFT JOIN school_equipment_ledger el ON er.equipment_id=el.id
where er.del_flag=0
<if
test=
"equipmentName != null and equipmentName != ''"
>
and el.equipment_name like concat('%', #{equipmentName}, '%')
</if>
</select>
...
...
@@ -177,6 +178,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
school_equipment_ledger
WHERE
encode = #{encode}
and del_flag = '0'
</select>
...
...
smart-campus/src/main/resources/mapper/schoolEquipment/InStockMapper.xml
View file @
a4efb984
...
...
@@ -67,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"affiliationType != null and affiliationType != ''"
>
and el.affiliation_type = #{affiliationType}
</if>
<if
test=
"classificationCode != null and classificationCode != ''"
>
and el.classification_code like concat('%', #{classificationCode}, '%')
</if>
<if
test=
"equipmentState != null and equipmentState != ''"
>
and el.equipment_state = #{equipmentState}
</if>
order by i.create_time DESC
</select>
<select
id=
"selectSchoolInStockVoListGr"
parameterType=
"SchoolInStockVo"
resultMap=
"schoolInStockVoResult"
>
...
...
@@ -105,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"affiliationType != null and affiliationType != ''"
>
and el.affiliation_type = #{affiliationType}
</if>
<if
test=
"classificationCode != null and classificationCode != ''"
>
and el.classification_code like concat('%', #{classificationCode}, '%')
</if>
<if
test=
"equipmentState != null and equipmentState != ''"
>
and el.equipment_state = #{equipmentState}
</if>
order by i.create_time DESC
</select>
<select
id=
"selectSchoolInStockVoById"
parameterType=
"Long"
resultMap=
"schoolInStockVoResult"
>
...
...
smart-campus/src/main/resources/mapper/schoolEquipment/OutStockMapper.xml
View file @
a4efb984
...
...
@@ -67,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"affiliationType != null and affiliationType != ''"
>
and el.affiliation_type = #{affiliationType}
</if>
<if
test=
"classificationCode != null and classificationCode != ''"
>
and el.classification_code like concat('%', #{classificationCode}, '%')
</if>
<if
test=
"equipmentState != null and equipmentState != ''"
>
and el.equipment_state = #{equipmentState}
</if>
order by create_time DESC
</select>
<select
id=
"selectSchoolOutStockVoListGr"
parameterType=
"SchoolOutStockVo"
resultMap=
"schoolOutStockVoResult"
>
...
...
@@ -105,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"affiliationType != null and affiliationType != ''"
>
and el.affiliation_type = #{affiliationType}
</if>
<if
test=
"classificationCode != null and classificationCode != ''"
>
and el.classification_code like concat('%', #{classificationCode}, '%')
</if>
<if
test=
"equipmentState != null and equipmentState != ''"
>
and el.equipment_state = #{equipmentState}
</if>
order by create_time DESC
</select>
<select
id=
"selectSchoolOutStockVoById"
parameterType=
"Long"
resultMap=
"schoolOutStockVoResult"
>
...
...
smart-campus/src/main/resources/mapper/schoolEquipment/ReceiveMapper.xml
View file @
a4efb984
...
...
@@ -57,6 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
r.del_flag = '0'
<if
test=
"equipmentName != null and equipmentName != ''"
>
and el.equipment_name like concat('%', #{equipmentName}, '%')
</if>
<if
test=
"recipientBy != null and recipientBy != ''"
>
and r.recipient_by like concat('%', #{recipientBy}, '%')
</if>
order by r.create_time DESC
</select>
<select
id=
"selectSchoolReceiveVoListGr"
parameterType=
"SchoolReceiveVo"
resultMap=
"schoolReceiveVoResult"
>
...
...
@@ -89,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
r.del_flag = '0' and u.user_id = #{adminId}
<if
test=
"equipmentName != null and equipmentName != ''"
>
and el.equipment_name like concat('%', #{equipmentName}, '%')
</if>
<if
test=
"recipientBy != null and recipientBy != ''"
>
and r.recipient_by like concat('%', #{recipientBy}, '%')
</if>
order by r.create_time DESC
</select>
<select
id=
"selectSchoolReceiveVoById"
parameterType=
"Long"
resultMap=
"schoolReceiveVoResult"
>
...
...
smart-campus/src/main/resources/mapper/teacher/SchoolTeacherWagesMapper.xml
View file @
a4efb984
...
...
@@ -6,6 +6,7 @@
<result
property=
"id"
column=
"id"
/>
<result
property=
"teacherId"
column=
"teacher_id"
/>
<result
property=
"teacherName"
column=
"teacher_name"
/>
<result
property=
"teacherTel"
column=
"teacher_tel"
/>
<result
property=
"idCard"
column=
"id_card"
/>
<result
property=
"basePay"
column=
"base_pay"
/>
<result
property=
"bonus"
column=
"bonus"
/>
...
...
@@ -29,7 +30,7 @@
</resultMap>
<sql
id=
"selectSchoolTeacherWagesVo"
>
select id, teacher_id, teacher_name, id_card, base_pay, bonus, pension, accumulation_fund, medical_insurance, fare_subsidy, telephone_subsidy, meal_allowance, income_tax, unemployment_benefits, overtime_pay, pay_slip_url, wages_time, remarks from school_teacher_wages
select id, teacher_id, teacher_name,
teacher_tel,
id_card, base_pay, bonus, pension, accumulation_fund, medical_insurance, fare_subsidy, telephone_subsidy, meal_allowance, income_tax, unemployment_benefits, overtime_pay, pay_slip_url, wages_time, remarks from school_teacher_wages
</sql>
<select
id=
"queryList"
parameterType=
"SchoolTeacherWages"
resultMap=
"SchoolTeacherWagesResult"
>
...
...
@@ -55,4 +56,15 @@
order by create_time desc
</select>
<insert
id=
"batchInsertTeacherWages"
>
insert into school_teacher_wages(teacher_id, teacher_name, teacher_tel, base_pay, bonus, pension, accumulation_fund, medical_insurance,
fare_subsidy, telephone_subsidy, meal_allowance, income_tax, unemployment_benefits, overtime_pay, wages_time, remarks, create_by, create_time )
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.teacherId}, #{item.teacherName}, #{item.teacherTel}, #{item.basePay}, #{item.bonus}, #{item.pension}, #{item.accumulationFund},
#{item.medicalInsurance}, #{item.fareSubsidy}, #{item.telephoneSubsidy}, #{item.mealAllowance}, #{item.incomeTax}, #{item.unemploymentBenefits},
#{item.overtimePay}, #{item.wagesTime}, #{item.remarks}, #{item.createBy}, #{item.createTime})
</foreach>
</insert>
</mapper>
smart-campus/src/main/resources/mapper/teacher/ShebeiBxMapper.xml
View file @
a4efb984
...
...
@@ -25,7 +25,7 @@
<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
SELECT ser.id,encode,
report_repair_id,equipment_name,model,date_of_production,ser.place,report_repair_time,report_repair
,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
...
...
smart-campus/src/main/resources/mapper/teacher/ShebeiJyMapper.xml
View file @
a4efb984
...
...
@@ -14,11 +14,12 @@
<result
property=
"borrowBy"
column=
"borrow_by"
/>
<result
property=
"purpose"
column=
"purpose"
/>
<result
property=
"deadline"
column=
"deadline"
/>
<result
property=
"returnState"
column=
"return_state"
/>
</resultMap>
<select
id=
"shebeilist"
parameterType=
"ShebeiJy"
resultMap=
"ShebeiJyResult"
>
SELECT ss.id,encode,equipment_name,model,borrow_time,borrow_by_id,borrow_by,deadline,purpose
SELECT ss.id,encode,equipment_name,model,borrow_time,borrow_by_id,borrow_by,deadline,purpose
,ss.return_state
FROM school_circulation ss
JOIN school_equipment_ledger ssc
ON ss.equipment_id=ssc.id
...
...
smart-campus/src/main/resources/mapper/teacher/TeacherBxMapper.xml
View file @
a4efb984
...
...
@@ -24,7 +24,7 @@
</resultMap>
<select
id=
"querylistbx"
parameterType=
"TeacherBx"
resultMap=
"TeacherBxResult"
>
SELECT ser.id,encode,equipment_name,model,date_of_production,place,report_repair_time,report_repair,problem,repair_name,repair_id,repair_time,repair_state,evaluate,ser.remark
SELECT ser.id,encode,equipment_name,model,date_of_production,
ser.
place,report_repair_time,report_repair,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
...
...
smart-campus/src/main/resources/mapper/teacher/TeacherJyMapper.xml
View file @
a4efb984
...
...
@@ -12,10 +12,11 @@
<result
property=
"borrowBy"
column=
"borrow_by"
/>
<result
property=
"purpose"
column=
"purpose"
/>
<result
property=
"deadline"
column=
"deadline"
/>
<result
property=
"returnState"
column=
"return_state"
/>
</resultMap>
<select
id=
"queryList"
parameterType=
"TeacherJy"
resultMap=
"TeacherJyResult"
>
SELECT ss.id,encode,equipment_name,model,borrow_time,borrow_by_id,borrow_by,deadline,purpose
SELECT ss.id,encode,equipment_name,model,borrow_time,borrow_by_id,borrow_by,deadline,purpose
,ss.return_state
FROM school_circulation ss
JOIN school_equipment_ledger ssc
ON ss.equipment_id=ssc.id
...
...
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