Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qianhe-ydsj
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
jiangyun
qianhe-ydsj
Commits
c3ab09d3
Commit
c3ab09d3
authored
Jul 15, 2025
by
wangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2025-07-15 规范建设 V2
parent
949e9b92
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
2754 additions
and
1 deletions
+2754
-1
qianhe-ydsj/src/main/java/com/qianhe/controller/SjGfjsJcdwkhpjController.java
+438
-0
qianhe-ydsj/src/main/java/com/qianhe/controller/SjGfjsJcdwkhpjZbController.java
+96
-0
qianhe-ydsj/src/main/java/com/qianhe/domain/SjGfjsZsdwkhpj.java
+99
-0
qianhe-ydsj/src/main/java/com/qianhe/domain/SjGfjsZsdwkhpjZb.java
+188
-0
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsJcdwkhpjMapper.java
+67
-0
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsJcdwkhpjZbMapper.java
+65
-0
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsYdjcjlMapper.java
+8
-1
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsZsdwkhpjMapper.java
+67
-0
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsZsdwkhpjZbMapper.java
+65
-0
qianhe-ydsj/src/main/java/com/qianhe/service/ISjGfjsJcdwkhpjService.java
+67
-0
qianhe-ydsj/src/main/java/com/qianhe/service/ISjGfjsJcdwkhpjZbService.java
+64
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjGfjsJcdwkhpjServiceImpl.java
+219
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjGfjsJcdwkhpjZbServiceImpl.java
+104
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjGfjsYdjcjlServiceImpl.java
+22
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjGfjsZsdwkhpjZbServiceImpl.java
+104
-0
qianhe-ydsj/src/main/resources/mapper/SjGfjsJcdwkhpjMapper.xml
+208
-0
qianhe-ydsj/src/main/resources/mapper/SjGfjsJcdwkhpjZbMapper.xml
+301
-0
qianhe-ydsj/src/main/resources/mapper/SjGfjsYdjcjlMapper.xml
+55
-0
qianhe-ydsj/src/main/resources/mapper/SjGfjsZsdwkhpjMapper.xml
+209
-0
qianhe-ydsj/src/main/resources/mapper/SjGfjsZsdwkhpjZbMapper.xml
+308
-0
qianhe-ydsj/src/main/resources/static/gfjs_zsdwkhpj.xlsx
+0
-0
No files found.
qianhe-ydsj/src/main/java/com/qianhe/controller/SjGfjsJcdwkhpjController.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
controller
;
import
com.qianhe.common.annotation.Log
;
import
com.qianhe.common.constant.HttpStatus
;
import
com.qianhe.common.core.controller.BaseController
;
import
com.qianhe.common.core.domain.AjaxResult
;
import
com.qianhe.common.core.domain.entity.SysDept
;
import
com.qianhe.common.core.page.TableDataInfo
;
import
com.qianhe.common.enums.BusinessType
;
import
com.qianhe.common.exception.BusinessException
;
import
com.qianhe.common.utils.StringUtils
;
import
com.qianhe.domain.*
;
import
com.qianhe.mapper.SjGfjsYdjcjlMapper
;
import
com.qianhe.mapper.SjGfjsZdgzMapper
;
import
com.qianhe.service.ISjGfjsJcdwkhpjService
;
import
com.qianhe.service.ISjGfjsJcdwkhpjZbService
;
import
com.qianhe.system.mapper.SysDeptMapper
;
import
org.apache.poi.ss.usermodel.*
;
import
org.apache.poi.ss.util.CellRangeAddress
;
import
org.apache.poi.xssf.usermodel.XSSFRow
;
import
org.apache.poi.xssf.usermodel.XSSFSheet
;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.net.URLEncoder
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
* 规范建设-基层单位考核评价Controller
*
* @author qianhe
* @date 2024-07-24
*/
@RestController
@RequestMapping
(
"/system/sjGfjsJcdwkhpj"
)
public
class
SjGfjsJcdwkhpjController
extends
BaseController
{
@Autowired
private
SysDeptMapper
sysDeptMapper
;
@Autowired
private
ISjGfjsJcdwkhpjService
sjGfjsZsdwkhpjService
;
@Autowired
private
ISjGfjsJcdwkhpjZbService
sjGfjsZsdwkhpjZbService
;
@Autowired
private
SjGfjsYdjcjlMapper
sjGfjsYdjcjlMapper
;
// private SjGfjsZsdwwtcjMapper sjGfjsZsdwwtcjMapper;
@Autowired
private
SjGfjsZdgzMapper
sjGfjsZdgzMapper
;
// private SjGfjsKhpjbzMapper sjGfjsKhpjbzMapper;
// @Autowired
// private SjGfjsFjxbzMapper sjGfjsFjxbzMapper;
// @Autowired
// private ISjGfjsZsdwkhpjfjxService sjGfjsZsdwkhpjfjxService;
//
// @Autowired
// private SjGfjsZsdwfjxcjMapper sjGfjsZsdwfjxcjMapper;
/**
* 查询规范建设-基层单位考核评价列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
)
{
startPage
();
List
<
SjGfjsZsdwkhpj
>
list
=
sjGfjsZsdwkhpjService
.
selectSjGfjsZsdwkhpjList
(
sjGfjsZsdwkhpj
);
return
getDataTable
(
list
);
}
/**
* 查询考核评价
* @return
*/
@GetMapping
(
"/listAll"
)
public
Map
<
String
,
Object
>
listAll
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Long
deptId
=
sjGfjsZsdwkhpj
.
getDeptId
();
String
nd
=
sjGfjsZsdwkhpj
.
getNd
();
SysDept
dept
=
sysDeptMapper
.
selectDeptById
(
deptId
);
String
deptLx
=
dept
.
getDeptLx
();
if
(
StringUtils
.
isEmpty
(
deptLx
)){
map
.
put
(
"code"
,
5
);
map
.
put
(
"msg"
,
"该单位未维护单位类型"
);
map
.
put
(
"khpjData"
,
new
ArrayList
<>());
map
.
put
(
"fjxData"
,
new
ArrayList
<>());
return
map
;
}
String
zqfw
=
sjGfjsZsdwkhpj
.
getZqfw
();
String
startRq
=
null
;
String
endRq
=
null
;
if
(
"第一季度"
.
equals
(
zqfw
)){
startRq
=
nd
+
"-01"
;
endRq
=
nd
+
"-03"
;
}
else
if
(
"第二季度"
.
equals
(
zqfw
))
{
startRq
=
nd
+
"-04"
;
endRq
=
nd
+
"-6"
;
}
else
if
(
"第三季度"
.
equals
(
zqfw
))
{
startRq
=
nd
+
"-07"
;
endRq
=
nd
+
"-9"
;
}
else
{
startRq
=
nd
+
"-10"
;
endRq
=
nd
+
"-12"
;
}
//查询考核评价是否保存到从表
List
<
SjGfjsZsdwkhpj
>
sjGfjsZsdwkhpjs
=
sjGfjsZsdwkhpjService
.
selectSjGfjsZsdwkhpjList
(
sjGfjsZsdwkhpj
);
// List<SjGfjsZsdwkhpj>
if
(
sjGfjsZsdwkhpjs
.
size
()<=
0
){
//查询主表信息
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
=
new
SjGfjsZsdwkhpjZb
();
sjGfjsZsdwkhpjZb
.
setNd
(
nd
);
sjGfjsZsdwkhpjZb
.
setDeptId
(
deptId
);
sjGfjsZsdwkhpjZb
.
setZqfw
(
sjGfjsZsdwkhpj
.
getZqfw
());
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZbnew
=
sjGfjsZsdwkhpjZbService
.
selectSjGfjsZsdwkhpjZb
(
sjGfjsZsdwkhpjZb
);
if
(
sjGfjsZsdwkhpjZbnew
==
null
){
sjGfjsZsdwkhpjZbnew
=
new
SjGfjsZsdwkhpjZb
();
sjGfjsZsdwkhpjZbnew
.
setNd
(
nd
);
sjGfjsZsdwkhpjZbnew
.
setDeptId
(
deptId
);
sjGfjsZsdwkhpjZbnew
.
setParentDeptId
(
dept
.
getParentId
());
sjGfjsZsdwkhpjZbnew
.
setZqfw
(
sjGfjsZsdwkhpj
.
getZqfw
());
sjGfjsZsdwkhpjZbnew
.
setZqlx
(
"季度"
);
sjGfjsZsdwkhpjZbnew
.
setJb
(
"基层单位"
);
sjGfjsZsdwkhpjZbnew
.
setDeptDfl
(
dept
.
getDeptDfl
());
sjGfjsZsdwkhpjZbnew
.
setDeptLx
(
dept
.
getDeptLx
());
sjGfjsZsdwkhpjZbnew
.
setDeptYwfl
(
dept
.
getDeptYwfl
());
sjGfjsZsdwkhpjZbService
.
insertSjGfjsZsdwkhpjZb
(
sjGfjsZsdwkhpjZbnew
);
}
//先保存再查询
SjGfjsZdgz
sjGfjsZdgz
=
new
SjGfjsZdgz
();
sjGfjsZdgz
.
setLx
(
deptLx
);
sjGfjsZdgz
.
setNd
(
nd
);
List
<
SjGfjsZdgzCb
>
sjGfjsZdgzList
=
sjGfjsZdgzMapper
.
selectSjGfjsZdgzCxBzList
(
sjGfjsZdgz
);
List
<
SjGfjsZsdwkhpj
>
addList
=
new
ArrayList
<>();
//查询问题
SjGfjsZsdwwtcj
sjGfjsZsdwwtcj
=
new
SjGfjsZsdwwtcj
();
sjGfjsZsdwwtcj
.
setDeptId
(
deptId
);
sjGfjsZsdwwtcj
.
setStartRq
(
startRq
);
sjGfjsZsdwwtcj
.
setEndRq
(
endRq
);
sjGfjsZsdwwtcj
.
setJcjb
(
"基层单位自查"
);
List
<
SjGfjsZsdwwtcj
>
sjGfjsZsdwwtcjs
=
sjGfjsYdjcjlMapper
.
selectSjGfjsZsdwwtcjList
(
sjGfjsZsdwwtcj
);
for
(
int
i
=
0
;
i
<
sjGfjsZdgzList
.
size
();
i
++){
SjGfjsZdgzCb
sjGfjsZdgzCb
=
sjGfjsZdgzList
.
get
(
i
);
SjGfjsZsdwkhpj
zsdwkhpj
=
new
SjGfjsZsdwkhpj
();
zsdwkhpj
.
setKhnr
(
sjGfjsZdgzCb
.
getKhnr
());
zsdwkhpj
.
setKhxd
(
sjGfjsZdgzCb
.
getKhxd
());
zsdwkhpj
.
setPjbzid
(
sjGfjsZdgzCb
.
getId
()+
""
);
zsdwkhpj
.
setPjbzmc
(
sjGfjsZdgzCb
.
getPjbz
());
zsdwkhpj
.
setDeptId
(
deptId
);
zsdwkhpj
.
setNd
(
nd
);
zsdwkhpj
.
setZqfw
(
sjGfjsZsdwkhpj
.
getZqfw
());
zsdwkhpj
.
setZqlx
(
"季度"
);
zsdwkhpj
.
setJb
(
"基层单位"
);
zsdwkhpj
.
setZbId
(
sjGfjsZsdwkhpjZbnew
.
getId
());
zsdwkhpj
.
setYl1
(
i
+
1L
);
zsdwkhpj
.
setKhfz
(
"-0"
);
//计算问题
List
<
String
>
collect
=
sjGfjsZsdwwtcjs
.
stream
().
filter
(
item
->
item
.
getPjbzid
().
equals
(
zsdwkhpj
.
getPjbzid
()))
.
map
(
SjGfjsZsdwwtcj:
:
getWtmc
).
collect
(
Collectors
.
toList
());
zsdwkhpj
.
setSj
(
collect
.
size
()+
""
);
zsdwkhpj
.
setWtms
(
String
.
join
(
";"
,
collect
));
addList
.
add
(
zsdwkhpj
);
}
//保存考核评价
if
(
addList
.
size
()>
0
){
sjGfjsZsdwkhpjService
.
batchSave
(
addList
);
}
}
//查询考核评价
List
<
SjGfjsZsdwkhpj
>
resjGfjsZsdwkhpjs
=
sjGfjsZsdwkhpjService
.
selectSjGfjsZsdwkhpjList
(
sjGfjsZsdwkhpj
);
map
.
put
(
"code"
,
HttpStatus
.
SUCCESS
);
map
.
put
(
"msg"
,
"查询成功"
);
map
.
put
(
"khpjData"
,
resjGfjsZsdwkhpjs
);
return
map
;
}
/**
* 导出规范建设-基层单位考核评价列表
*/
@Log
(
title
=
"规范建设-基层单位考核评价"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
)
{
List
<
SjGfjsZsdwkhpj
>
list
=
sjGfjsZsdwkhpjService
.
selectSjGfjsZsdwkhpjList
(
sjGfjsZsdwkhpj
);
Workbook
exl
=
null
;
OutputStream
out
=
null
;
InputStream
in
=
null
;
try
{
in
=
this
.
getClass
().
getResourceAsStream
(
"/static/gfjs_zsdwkhpj.xlsx"
);
exl
=
WorkbookFactory
.
create
(
in
);
out
=
response
.
getOutputStream
();
response
.
reset
();
String
filename
=
URLEncoder
.
encode
(
"考核评价.xlsx"
,
"UTF-8"
);
response
.
setCharacterEncoding
(
"UTF-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
filename
);
response
.
setContentType
(
MediaType
.
APPLICATION_OCTET_STREAM_VALUE
);
Sheet
sheet
=
exl
.
getSheet
(
"Sheet1"
);
// sheet.getRow(0).getCell(0).setCellValue(sjGfjsZsdwkhpj.getNd()+"年"+sjGfjsZsdwkhpj.getZqfw()+sjGfjsZsdwkhpj.getDeptName());
CellStyle
cellStyle
=
exl
.
createCellStyle
();
cellStyle
.
setWrapText
(
true
);
cellStyle
.
setAlignment
(
HorizontalAlignment
.
LEFT
);
cellStyle
.
setVerticalAlignment
(
VerticalAlignment
.
CENTER
);
cellStyle
.
setBorderBottom
(
BorderStyle
.
THIN
);
cellStyle
.
setBottomBorderColor
(
IndexedColors
.
BLACK
.
getIndex
());
cellStyle
.
setBorderLeft
(
BorderStyle
.
THIN
);
cellStyle
.
setLeftBorderColor
(
IndexedColors
.
BLACK
.
getIndex
());
cellStyle
.
setBorderRight
(
BorderStyle
.
THIN
);
cellStyle
.
setRightBorderColor
(
IndexedColors
.
BLACK
.
getIndex
());
cellStyle
.
setBorderTop
(
BorderStyle
.
THIN
);
cellStyle
.
setTopBorderColor
(
IndexedColors
.
BLACK
.
getIndex
());
String
deptName
=
""
;
int
lastRow
=
sheet
.
getLastRowNum
()+
1
;
for
(
SjGfjsZsdwkhpj
zsdwkhpj:
list
){
deptName
=
zsdwkhpj
.
getDeptName
();;
Row
row
=
sheet
.
createRow
(
lastRow
);
row
.
setHeightInPoints
(
18
);
int
m
=
0
;
Cell
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getKhnr
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getKhxd
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getPjbzmc
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getSj
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getWtms
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getKhfz
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getId
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getZbId
());
lastRow
++;
}
//合并行
mergeCellsByColumn
(
sheet
,
0
);
mergeCellsByColumn
(
sheet
,
1
);
sheet
.
getRow
(
0
).
getCell
(
0
).
setCellValue
(
sjGfjsZsdwkhpj
.
getNd
()+
sjGfjsZsdwkhpj
.
getZqfw
()+
deptName
+
"考核评价"
);
exl
.
write
(
out
);
exl
.
close
();
}
catch
(
Exception
e
){
e
.
getMessage
();
throw
new
BusinessException
(
"导出Excel失败,请联系网站管理员!"
);
}
finally
{
if
(
exl
!=
null
)
{
try
{
exl
.
close
();
}
catch
(
IOException
e1
)
{
e1
.
printStackTrace
();
}
}
if
(
out
!=
null
)
{
try
{
out
.
close
();
}
catch
(
IOException
e1
)
{
e1
.
printStackTrace
();
}
}
}
}
// 根据某一列的值是否相同,对其他列的单元格进行合并
private
static
void
mergeCellsByColumn
(
Sheet
sheet
,
int
columnIndex
)
{
Map
<
String
,
Integer
>
groups
=
new
HashMap
<>();
// 遍历该列,记录相同值的行索引
int
start
=
1
;
int
end
=
1
;
String
old
=
""
;
for
(
int
i
=
1
;
i
<=
sheet
.
getLastRowNum
();
i
++)
{
Row
row
=
sheet
.
getRow
(
i
);
Cell
cell
=
row
.
getCell
(
columnIndex
);
String
cellValue
=
cell
.
getStringCellValue
();
if
(!
groups
.
containsKey
(
cellValue
))
{
if
(
groups
.
get
(
old
)!=
null
){
start
=
groups
.
get
(
old
);
}
old
=
cellValue
;
groups
.
put
(
cellValue
,
i
);
//合并行
mergeCellsInRange
(
sheet
,
columnIndex
,
start
,
end
);
start
=
i
;
end
=
i
;
}
else
{
end
++;
if
(
i
==
sheet
.
getLastRowNum
()){
mergeCellsInRange
(
sheet
,
columnIndex
,
start
,
end
);
}
}
}
}
// 合并指定范围内的单元格
private
static
void
mergeCellsInRange
(
Sheet
sheet
,
int
columnIndex
,
int
startIndex
,
int
endIndex
)
{
if
(
startIndex
!=
endIndex
){
sheet
.
addMergedRegion
(
new
CellRangeAddress
(
startIndex
,
endIndex
,
columnIndex
,
columnIndex
));
}
}
/**
* 获取规范建设-基层单位考核评价详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
sjGfjsZsdwkhpjService
.
selectSjGfjsZsdwkhpjById
(
id
));
}
/**
* 新增规范建设-基层单位考核评价
*/
@Log
(
title
=
"规范建设-基层单位考核评价"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
)
{
return
toAjax
(
sjGfjsZsdwkhpjService
.
insertSjGfjsZsdwkhpj
(
sjGfjsZsdwkhpj
));
}
/**
* 修改规范建设-基层单位考核评价
*/
@Log
(
title
=
"规范建设-基层单位考核评价"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
)
{
return
toAjax
(
sjGfjsZsdwkhpjService
.
updateSjGfjsZsdwkhpj
(
sjGfjsZsdwkhpj
));
}
/**
* 删除规范建设-基层单位考核评价
*/
@Log
(
title
=
"规范建设-基层单位考核评价"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
sjGfjsZsdwkhpjService
.
deleteSjGfjsZsdwkhpjByIds
(
ids
));
}
/**
* 修改规范建设-基层单位考核评价
*/
@Log
(
title
=
"规范建设-基层单位考核评价"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
(
"/pledit"
)
public
AjaxResult
pledit
(
@RequestBody
List
<
SjGfjsZsdwkhpj
>
list
)
{
return
toAjax
(
sjGfjsZsdwkhpjService
.
pledit
(
list
));
}
@PostMapping
(
"/importData"
)
public
AjaxResult
importData
(
MultipartFile
file
,
boolean
updateSupport
)
throws
Exception
{
XSSFWorkbook
workbook
=
null
;
// List<SysDept> deptList = sysDeptMapper.selectDeptList(new SysDept());
try
{
//装载流
workbook
=
new
XSSFWorkbook
(
file
.
getInputStream
());
// 获取一个工作表,下标从0开始
XSSFSheet
sheet
=
workbook
.
getSheetAt
(
0
);
int
lastRowNum
=
sheet
.
getLastRowNum
();
List
<
SjGfjsZsdwkhpj
>
list
=
new
ArrayList
<>();
// 通过循环,逐行取出表中每行数据
for
(
int
i
=
0
;
i
<=
lastRowNum
;
i
++)
{
//跳过第一行和第二行
if
(
i
==
0
||
i
==
1
){
continue
;
}
// 获取行
XSSFRow
row
=
sheet
.
getRow
(
i
);
SjGfjsZsdwkhpj
zsdwkhpj
=
new
SjGfjsZsdwkhpj
();
System
.
out
.
println
(
row
);
//id
String
id
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
6
));
if
(
StringUtils
.
isEmpty
(
id
)){
return
AjaxResult
.
error
(
"id不能为空"
);
}
zsdwkhpj
.
setId
(
Long
.
parseLong
(
id
));
//主表id
String
zbid
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
7
));
if
(
StringUtils
.
isEmpty
(
zbid
)){
return
AjaxResult
.
error
(
"主表id不能为空"
);
}
zsdwkhpj
.
setZbId
(
Long
.
parseLong
(
zbid
));
String
khnr
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
1
));
zsdwkhpj
.
setKhnr
(
khnr
);
String
xd
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
2
));
zsdwkhpj
.
setKhxd
(
xd
);
String
pj
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
3
));
zsdwkhpj
.
setPjbzmc
(
pj
);
//数量
String
sl
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
3
));
zsdwkhpj
.
setSj
(
sl
);
//问题描述
String
wtms
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
4
));
zsdwkhpj
.
setWtms
(
wtms
);
//考核分值
String
khfz
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
5
));
zsdwkhpj
.
setKhfz
(
khfz
);
list
.
add
(
zsdwkhpj
);
}
if
(
list
.
size
()>
0
){
sjGfjsZsdwkhpjService
.
pledit
(
list
);
}
}
catch
(
IOException
e
)
{
e
.
getMessage
();
e
.
printStackTrace
();
throw
new
BusinessException
(
"导入Excel失败,请联系网站管理员!"
);
}
finally
{
workbook
.
close
();
}
return
AjaxResult
.
success
(
"导入成功"
);
}
}
qianhe-ydsj/src/main/java/com/qianhe/controller/SjGfjsJcdwkhpjZbController.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
controller
;
import
com.qianhe.common.annotation.Log
;
import
com.qianhe.common.core.controller.BaseController
;
import
com.qianhe.common.core.domain.AjaxResult
;
import
com.qianhe.common.core.page.TableDataInfo
;
import
com.qianhe.common.enums.BusinessType
;
import
com.qianhe.common.utils.poi.ExcelUtil
;
import
com.qianhe.domain.SjGfjsZsdwkhpjZb
;
import
com.qianhe.service.ISjGfjsJcdwkhpjZbService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 规范建设-基层单位考核评价主Controller
*
* @author qianhe
* @date 2024-07-24
*/
@RestController
@RequestMapping
(
"/system/sjGfjsJcdwkhpjZb"
)
public
class
SjGfjsJcdwkhpjZbController
extends
BaseController
{
@Autowired
private
ISjGfjsJcdwkhpjZbService
sjGfjsZsdwkhpjZbService
;
/**
* 查询规范建设-基层单位考核评价主列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
)
{
startPage
();
List
<
SjGfjsZsdwkhpjZb
>
list
=
sjGfjsZsdwkhpjZbService
.
selectSjGfjsZsdwkhpjZbList
(
sjGfjsZsdwkhpjZb
);
return
getDataTable
(
list
);
}
/**
* 导出规范建设-基层单位考核评价主列表
*/
@Log
(
title
=
"规范建设-基层单位考核评价主"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
)
{
List
<
SjGfjsZsdwkhpjZb
>
list
=
sjGfjsZsdwkhpjZbService
.
selectSjGfjsZsdwkhpjZbList
(
sjGfjsZsdwkhpjZb
);
ExcelUtil
<
SjGfjsZsdwkhpjZb
>
util
=
new
ExcelUtil
<
SjGfjsZsdwkhpjZb
>(
SjGfjsZsdwkhpjZb
.
class
);
util
.
exportExcel
(
response
,
list
,
"规范建设-基层单位考核评价主数据"
);
}
/**
* 获取规范建设-基层单位考核评价主详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
sjGfjsZsdwkhpjZbService
.
selectSjGfjsZsdwkhpjZbById
(
id
));
}
/**
* 新增规范建设-基层单位考核评价主
*/
@Log
(
title
=
"规范建设-基层单位考核评价主"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
)
{
return
toAjax
(
sjGfjsZsdwkhpjZbService
.
insertSjGfjsZsdwkhpjZb
(
sjGfjsZsdwkhpjZb
));
}
/**
* 修改规范建设-基层单位考核评价主
*/
@Log
(
title
=
"规范建设-基层单位考核评价主"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
)
{
return
toAjax
(
sjGfjsZsdwkhpjZbService
.
updateSjGfjsZsdwkhpjZb
(
sjGfjsZsdwkhpjZb
));
}
/**
* 删除规范建设-基层单位考核评价主
*/
@Log
(
title
=
"规范建设-基层单位考核评价主"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
sjGfjsZsdwkhpjZbService
.
deleteSjGfjsZsdwkhpjZbByIds
(
ids
));
}
}
qianhe-ydsj/src/main/java/com/qianhe/domain/SjGfjsZsdwkhpj.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
domain
;
import
com.qianhe.common.annotation.Excel
;
import
com.qianhe.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
org.apache.poi.ss.usermodel.IndexedColors
;
/**
* 指导帮扶-直属单位考核评价对象 sj_zdbf_zsdwkhpj
*
* @author qianhe
* @date 2024-07-24
*/
@Data
public
class
SjGfjsZsdwkhpj
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
// @Excel(name = "单位名称")
private
String
deptName
;
/** 年度 */
// @Excel(name = "年度")
private
String
nd
;
/** 周期范围(第一季度-第四季度、上半年、下半年) */
// @Excel(name = "周期范围")
private
String
zqfw
;
/** 周期类型(季度、半年度、年度) */
// @Excel(name = "周期类型", readConverterExp = "季=度、半年度、年度")
private
String
zqlx
;
/** 级别(直属单位(半年度)、基层单位(季度)、三基帮扶组(年度)) */
// @Excel(name = "级别", readConverterExp = "直=属单位(半年度")
private
String
jb
;
/** 考核内容 */
@Excel
(
name
=
"考核内容"
,
needMerge
=
true
)
private
String
khnr
;
/** 考核项点 */
@Excel
(
name
=
"考核项点"
,
needMerge
=
true
)
private
String
khxd
;
/** 评价标准名称 */
@Excel
(
name
=
"评价标准"
)
private
String
pjbzmc
;
/** 数量 */
@Excel
(
name
=
"数量"
)
private
String
sj
;
/** 问题描述 */
@Excel
(
name
=
"问题描述"
)
private
String
wtms
;
/** 考核分值 */
@Excel
(
name
=
"考核结果"
)
private
String
khfz
;
/** 预留1 */
// @Excel(name = "预留1")
private
Long
yl1
;
/** 预留2 */
// @Excel(name = "预留2")
private
String
yl2
;
/** 预留3 */
// @Excel(name = "预留3")
private
String
yl3
;
/** 预留4 */
// @Excel(name = "预留4")
private
String
yl4
;
/** 预留5 */
// @Excel(name = "预留5")
private
String
yl5
;
/** 主键 */
@Excel
(
name
=
"id(勿动)"
,
headerColor
=
IndexedColors
.
RED1
)
private
Long
id
;
/** 主表id */
@Excel
(
name
=
"主表id(勿动)"
,
headerColor
=
IndexedColors
.
RED1
)
private
Long
zbId
;
/** 单位id */
// @Excel(name = "单位id(勿动)",headerColor= IndexedColors.RED1)
private
Long
deptId
;
/** 评价标准id */
// @Excel(name = "评价标准id")
private
String
pjbzid
;
}
qianhe-ydsj/src/main/java/com/qianhe/domain/SjGfjsZsdwkhpjZb.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
domain
;
import
com.qianhe.common.annotation.Excel
;
import
com.qianhe.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
java.math.BigDecimal
;
/**
* 指导帮扶-直属单位考核评价主对象 sj_zdbf_zsdwkhpj_zb
*
* @author qianhe
* @date 2024-07-24
*/
@Data
public
class
SjGfjsZsdwkhpjZb
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 主键 */
private
Long
id
;
/** 单位id */
// @Excel(name = "单位id")
private
Long
deptId
;
@Excel
(
name
=
"直属单位名称"
)
private
String
parentName
;
@Excel
(
name
=
"基层单位名称"
)
private
String
deptName
;
/** 上级单位id */
// @Excel(name = "上级单位id")
private
Long
parentDeptId
;
/** 年度 */
@Excel
(
name
=
"年度"
)
private
String
nd
;
/** 周期范围(第一季度-第四季度、上半年、下半年) */
// @Excel(name = "周期范围")
private
String
zqfw
;
/** 周期类型(季度、半年度、年度) */
// @Excel(name = "周期类型")
private
String
zqlx
;
/** 级别(直属单位(半年度)、基层单位(季度)、三基帮扶组(年度)) */
// @Excel(name = "级别", readConverterExp = "直=属单位(半年度")
private
String
jb
;
/** 单位大分类(A类基层单位、B类基层单位、C类基层单位) */
@Excel
(
name
=
"单位分类"
)
private
String
deptDfl
;
/** 单位类型(采油管理区、专业化基础单位、科研基层单位、服务协调基础单位) */
@Excel
(
name
=
"单位类型"
)
private
String
deptLx
;
/** 单位业务分类 */
@Excel
(
name
=
"单位业务分类"
)
private
String
deptYwfl
;
/** 党建引领总分数 */
@Excel
(
name
=
"党建引领总分数"
)
private
BigDecimal
djyjzfs
;
/** 党建引领扣分数 */
@Excel
(
name
=
"党建引领扣分数"
)
private
BigDecimal
djyjkfs
;
/** 党建引领扣分比例 */
@Excel
(
name
=
"党建引领扣分比例"
)
private
BigDecimal
djyjkfbl
;
/** 党建引领得分 */
@Excel
(
name
=
"党建引领得分"
)
private
BigDecimal
djyjdf
;
/** 素质提升总分数 */
@Excel
(
name
=
"素质提升总分数"
)
private
BigDecimal
sztszfs
;
/** 素质提升扣分数 */
@Excel
(
name
=
"素质提升扣分数"
)
private
BigDecimal
sztskfs
;
/** 素质提升扣分比例 */
@Excel
(
name
=
"素质提升扣分比例"
)
private
BigDecimal
sztsfbl
;
/** 素质提升得分 */
@Excel
(
name
=
"素质提升得分"
)
private
BigDecimal
sztsdf
;
/** 管理规范总分数 */
@Excel
(
name
=
"管理规范总分数"
)
private
BigDecimal
glgfzfs
;
/** 管理规范扣分数 */
@Excel
(
name
=
"管理规范扣分数"
)
private
BigDecimal
glgfkfs
;
/** 管理规范扣分比例 */
@Excel
(
name
=
"管理规范扣分比例"
)
private
BigDecimal
glgfbl
;
/** 管理规范得分 */
@Excel
(
name
=
"管理规范得分"
)
private
BigDecimal
glgfdf
;
/** 管理规范总分数 */
@Excel
(
name
=
"管理规范总分数"
)
private
BigDecimal
ywcxzfs
;
/** 管理规范扣分数 */
@Excel
(
name
=
"管理规范扣分数"
)
private
BigDecimal
ywcxkfs
;
/** 管理规范扣分比例 */
@Excel
(
name
=
"管理规范扣分比例"
)
private
BigDecimal
ywcxbl
;
/** 管理规范得分 */
@Excel
(
name
=
"管理规范得分"
)
private
BigDecimal
ywcxdf
;
/** 发生否决项数量 */
@Excel
(
name
=
"发生否决项数量"
)
private
BigDecimal
sffjxs
;
/** 总扣分 */
@Excel
(
name
=
"总扣分"
)
private
BigDecimal
zkf
;
/** 总扣分比例 */
@Excel
(
name
=
"总扣分比例"
)
private
BigDecimal
zkfbl
;
/** 总得分 */
@Excel
(
name
=
"总得分"
)
private
BigDecimal
zdf
;
/** 综合得分 */
@Excel
(
name
=
"综合得分"
)
private
BigDecimal
zhdf
;
/** 预留1 */
// @Excel(name = "预留1")
private
String
yl1
;
/** 预留2 */
// @Excel(name = "预留2")
private
String
yl2
;
/** 预留3 */
// @Excel(name = "预留3")
private
String
yl3
;
/** 预留4 */
// @Excel(name = "预留4")
private
String
yl4
;
/** 预留5 */
// @Excel(name = "预留5")
private
String
yl5
;
/**
* 得分查询条件
*/
private
BigDecimal
df
;
/**
* 扣分比例查询条件
*/
private
BigDecimal
kfbl
;
/**
* 否决项
*/
private
BigDecimal
fjx
;
/**
* 排名
*/
private
String
pm
;
}
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsJcdwkhpjMapper.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
mapper
;
import
com.qianhe.domain.SjGfjsZsdwkhpj
;
import
java.util.List
;
/**
* 规范建设-基层单位考核评价Mapper接口
*
* @author qianhe
* @date 2024-07-24
*/
public
interface
SjGfjsJcdwkhpjMapper
{
/**
* 查询规范建设-基层单位考核评价
*
* @param id 规范建设-基层单位考核评价主键
* @return 规范建设-基层单位考核评价
*/
public
SjGfjsZsdwkhpj
selectSjGfjsZsdwkhpjById
(
Long
id
);
/**
* 查询规范建设-基层单位考核评价列表
*
* @param sjGfjsZsdwkhpj 规范建设-基层单位考核评价
* @return 规范建设-基层单位考核评价集合
*/
public
List
<
SjGfjsZsdwkhpj
>
selectSjGfjsZsdwkhpjList
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
);
/**
* 新增规范建设-基层单位考核评价
*
* @param sjGfjsZsdwkhpj 规范建设-基层单位考核评价
* @return 结果
*/
public
int
insertSjGfjsZsdwkhpj
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
);
/**
* 修改规范建设-基层单位考核评价
*
* @param sjGfjsZsdwkhpj 规范建设-基层单位考核评价
* @return 结果
*/
public
int
updateSjGfjsZsdwkhpj
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
);
/**
* 删除规范建设-基层单位考核评价
*
* @param id 规范建设-基层单位考核评价主键
* @return 结果
*/
public
int
deleteSjGfjsZsdwkhpjById
(
Long
id
);
/**
* 批量删除规范建设-基层单位考核评价
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteSjGfjsZsdwkhpjByIds
(
Long
[]
ids
);
int
batchSave
(
List
<
SjGfjsZsdwkhpj
>
addList
);
int
pledit
(
List
<
SjGfjsZsdwkhpj
>
list
);
}
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsJcdwkhpjZbMapper.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
mapper
;
import
com.qianhe.domain.SjGfjsZsdwkhpjZb
;
import
java.util.List
;
/**
* 规范建设-基层单位考核评价主Mapper接口
*
* @author qianhe
* @date 2024-07-24
*/
public
interface
SjGfjsJcdwkhpjZbMapper
{
/**
* 查询规范建设-基层单位考核评价主
*
* @param id 规范建设-基层单位考核评价主主键
* @return 规范建设-基层单位考核评价主
*/
public
SjGfjsZsdwkhpjZb
selectSjGfjsZsdwkhpjZbById
(
Long
id
);
/**
* 查询规范建设-基层单位考核评价主列表
*
* @param sjGfjsZsdwkhpjZb 规范建设-基层单位考核评价主
* @return 规范建设-基层单位考核评价主集合
*/
public
List
<
SjGfjsZsdwkhpjZb
>
selectSjGfjsZsdwkhpjZbList
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
/**
* 新增规范建设-基层单位考核评价主
*
* @param sjGfjsZsdwkhpjZb 规范建设-基层单位考核评价主
* @return 结果
*/
public
int
insertSjGfjsZsdwkhpjZb
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
/**
* 修改规范建设-基层单位考核评价主
*
* @param sjGfjsZsdwkhpjZb 规范建设-基层单位考核评价主
* @return 结果
*/
public
int
updateSjGfjsZsdwkhpjZb
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
/**
* 删除规范建设-基层单位考核评价主
*
* @param id 规范建设-基层单位考核评价主主键
* @return 结果
*/
public
int
deleteSjGfjsZsdwkhpjZbById
(
Long
id
);
/**
* 批量删除规范建设-基层单位考核评价主
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteSjGfjsZsdwkhpjZbByIds
(
Long
[]
ids
);
SjGfjsZsdwkhpjZb
selectSjGfjsZsdwkhpjZb
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
}
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsYdjcjlMapper.java
View file @
c3ab09d3
...
@@ -2,7 +2,6 @@ package com.qianhe.mapper;
...
@@ -2,7 +2,6 @@ package com.qianhe.mapper;
import
com.qianhe.domain.SjGfjsYdjcjl
;
import
com.qianhe.domain.SjGfjsYdjcjl
;
import
com.qianhe.domain.SjGfjsZsdwwtcj
;
import
com.qianhe.domain.SjGfjsZsdwwtcj
;
import
com.qianhe.domain.SjZdbfZsdwwtcj
;
import
java.util.List
;
import
java.util.List
;
...
@@ -84,4 +83,12 @@ public interface SjGfjsYdjcjlMapper
...
@@ -84,4 +83,12 @@ public interface SjGfjsYdjcjlMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteSjGfjsZsdwwtcjByPid
(
Long
id
);
public
int
deleteSjGfjsZsdwwtcjByPid
(
Long
id
);
public
List
<
SjGfjsZsdwwtcj
>
selectSjGfjsZsdwwtcjList
(
SjGfjsZsdwwtcj
sjGfjsZsdwwtcj
);
}
}
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsZsdwkhpjMapper.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
mapper
;
import
com.qianhe.domain.SjGfjsZsdwkhpj
;
import
java.util.List
;
/**
* 规范建设-直属单位考核评价Mapper接口
*
* @author qianhe
* @date 2024-07-24
*/
public
interface
SjGfjsZsdwkhpjMapper
{
/**
* 查询规范建设-直属单位考核评价
*
* @param id 规范建设-直属单位考核评价主键
* @return 规范建设-直属单位考核评价
*/
public
SjGfjsZsdwkhpj
selectSjGfjsZsdwkhpjById
(
Long
id
);
/**
* 查询规范建设-直属单位考核评价列表
*
* @param sjGfjsZsdwkhpj 规范建设-直属单位考核评价
* @return 规范建设-直属单位考核评价集合
*/
public
List
<
SjGfjsZsdwkhpj
>
selectSjGfjsZsdwkhpjList
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
);
/**
* 新增规范建设-直属单位考核评价
*
* @param sjGfjsZsdwkhpj 规范建设-直属单位考核评价
* @return 结果
*/
public
int
insertSjGfjsZsdwkhpj
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
);
/**
* 修改规范建设-直属单位考核评价
*
* @param sjGfjsZsdwkhpj 规范建设-直属单位考核评价
* @return 结果
*/
public
int
updateSjGfjsZsdwkhpj
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
);
/**
* 删除规范建设-直属单位考核评价
*
* @param id 规范建设-直属单位考核评价主键
* @return 结果
*/
public
int
deleteSjGfjsZsdwkhpjById
(
Long
id
);
/**
* 批量删除规范建设-直属单位考核评价
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteSjGfjsZsdwkhpjByIds
(
Long
[]
ids
);
int
batchSave
(
List
<
SjGfjsZsdwkhpj
>
addList
);
int
pledit
(
List
<
SjGfjsZsdwkhpj
>
list
);
}
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsZsdwkhpjZbMapper.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
mapper
;
import
com.qianhe.domain.SjGfjsZsdwkhpjZb
;
import
java.util.List
;
/**
* 规范建设-直属单位考核评价主Mapper接口
*
* @author qianhe
* @date 2024-07-24
*/
public
interface
SjGfjsZsdwkhpjZbMapper
{
/**
* 查询规范建设-直属单位考核评价主
*
* @param id 规范建设-直属单位考核评价主主键
* @return 规范建设-直属单位考核评价主
*/
public
SjGfjsZsdwkhpjZb
selectSjGfjsZsdwkhpjZbById
(
Long
id
);
/**
* 查询规范建设-直属单位考核评价主列表
*
* @param sjGfjsZsdwkhpjZb 规范建设-直属单位考核评价主
* @return 规范建设-直属单位考核评价主集合
*/
public
List
<
SjGfjsZsdwkhpjZb
>
selectSjGfjsZsdwkhpjZbList
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
/**
* 新增规范建设-直属单位考核评价主
*
* @param sjGfjsZsdwkhpjZb 规范建设-直属单位考核评价主
* @return 结果
*/
public
int
insertSjGfjsZsdwkhpjZb
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
/**
* 修改规范建设-直属单位考核评价主
*
* @param sjGfjsZsdwkhpjZb 规范建设-直属单位考核评价主
* @return 结果
*/
public
int
updateSjGfjsZsdwkhpjZb
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
/**
* 删除规范建设-直属单位考核评价主
*
* @param id 规范建设-直属单位考核评价主主键
* @return 结果
*/
public
int
deleteSjGfjsZsdwkhpjZbById
(
Long
id
);
/**
* 批量删除规范建设-直属单位考核评价主
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteSjGfjsZsdwkhpjZbByIds
(
Long
[]
ids
);
SjGfjsZsdwkhpjZb
selectSjGfjsZsdwkhpjZb
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
}
qianhe-ydsj/src/main/java/com/qianhe/service/ISjGfjsJcdwkhpjService.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
service
;
import
com.qianhe.domain.SjGfjsZsdwkhpj
;
import
java.util.List
;
/**
* 规范建设-基层单位考核评价Service接口
*
* @author qianhe
* @date 2024-07-24
*/
public
interface
ISjGfjsJcdwkhpjService
{
/**
* 查询规范建设-基层单位考核评价
*
* @param id 规范建设-基层单位考核评价主键
* @return 规范建设-基层单位考核评价
*/
public
SjGfjsZsdwkhpj
selectSjGfjsZsdwkhpjById
(
Long
id
);
/**
* 查询规范建设-基层单位考核评价列表
*
* @param sjGfjsZsdwkhpj 规范建设-基层单位考核评价
* @return 规范建设-基层单位考核评价集合
*/
public
List
<
SjGfjsZsdwkhpj
>
selectSjGfjsZsdwkhpjList
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
);
/**
* 新增规范建设-基层单位考核评价
*
* @param sjGfjsZsdwkhpj 规范建设-基层单位考核评价
* @return 结果
*/
public
int
insertSjGfjsZsdwkhpj
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
);
/**
* 修改规范建设-基层单位考核评价
*
* @param sjGfjsZsdwkhpj 规范建设-基层单位考核评价
* @return 结果
*/
public
int
updateSjGfjsZsdwkhpj
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
);
/**
* 批量删除规范建设-基层单位考核评价
*
* @param ids 需要删除的规范建设-基层单位考核评价主键集合
* @return 结果
*/
public
int
deleteSjGfjsZsdwkhpjByIds
(
Long
[]
ids
);
/**
* 删除规范建设-基层单位考核评价信息
*
* @param id 规范建设-基层单位考核评价主键
* @return 结果
*/
public
int
deleteSjGfjsZsdwkhpjById
(
Long
id
);
int
batchSave
(
List
<
SjGfjsZsdwkhpj
>
addList
);
int
pledit
(
List
<
SjGfjsZsdwkhpj
>
list
);
}
qianhe-ydsj/src/main/java/com/qianhe/service/ISjGfjsJcdwkhpjZbService.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
service
;
import
com.qianhe.domain.SjGfjsZsdwkhpjZb
;
import
java.util.List
;
/**
* 规范建设-基层单位考核评价主Service接口
*
* @author qianhe
* @date 2024-07-24
*/
public
interface
ISjGfjsJcdwkhpjZbService
{
/**
* 查询规范建设-基层单位考核评价主
*
* @param id 规范建设-基层单位考核评价主主键
* @return 规范建设-基层单位考核评价主
*/
public
SjGfjsZsdwkhpjZb
selectSjGfjsZsdwkhpjZbById
(
Long
id
);
/**
* 查询规范建设-基层单位考核评价主列表
*
* @param sjGfjsZsdwkhpjZb 规范建设-基层单位考核评价主
* @return 规范建设-基层单位考核评价主集合
*/
public
List
<
SjGfjsZsdwkhpjZb
>
selectSjGfjsZsdwkhpjZbList
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
/**
* 新增规范建设-基层单位考核评价主
*
* @param sjGfjsZsdwkhpjZb 规范建设-基层单位考核评价主
* @return 结果
*/
public
int
insertSjGfjsZsdwkhpjZb
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
/**
* 修改规范建设-基层单位考核评价主
*
* @param sjGfjsZsdwkhpjZb 规范建设-基层单位考核评价主
* @return 结果
*/
public
int
updateSjGfjsZsdwkhpjZb
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
/**
* 批量删除规范建设-基层单位考核评价主
*
* @param ids 需要删除的规范建设-基层单位考核评价主主键集合
* @return 结果
*/
public
int
deleteSjGfjsZsdwkhpjZbByIds
(
Long
[]
ids
);
/**
* 删除规范建设-基层单位考核评价主信息
*
* @param id 规范建设-基层单位考核评价主主键
* @return 结果
*/
public
int
deleteSjGfjsZsdwkhpjZbById
(
Long
id
);
SjGfjsZsdwkhpjZb
selectSjGfjsZsdwkhpjZb
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
}
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjGfjsJcdwkhpjServiceImpl.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
service
.
impl
;
import
com.qianhe.common.annotation.DataScope
;
import
com.qianhe.common.core.domain.entity.SysDept
;
import
com.qianhe.common.core.domain.entity.SysDictData
;
import
com.qianhe.common.utils.DateUtils
;
import
com.qianhe.common.utils.SecurityUtils
;
import
com.qianhe.common.utils.StringUtils
;
import
com.qianhe.domain.SjGfjsZsdwkhpj
;
import
com.qianhe.domain.SjGfjsZsdwkhpjZb
;
import
com.qianhe.mapper.SjGfjsZsdwkhpjMapper
;
import
com.qianhe.mapper.SjGfjsZsdwkhpjZbMapper
;
import
com.qianhe.service.ISjGfjsJcdwkhpjService
;
import
com.qianhe.system.mapper.SysDeptMapper
;
import
com.qianhe.system.mapper.SysDictDataMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
* 规范建设-基层单位考核评价Service业务层处理
*
* @author qianhe
* @date 2024-07-24
*/
@Service
public
class
SjGfjsJcdwkhpjServiceImpl
implements
ISjGfjsJcdwkhpjService
{
@Autowired
private
SjGfjsZsdwkhpjMapper
sjGfjsZsdwkhpjMapper
;
@Autowired
private
SjGfjsZsdwkhpjZbMapper
sjGfjsZsdwkhpjZbMapper
;
@Autowired
private
SysDictDataMapper
sysDictDataMapper
;
@Autowired
private
SysDeptMapper
sysDeptMapper
;
/**
* 查询规范建设-基层单位考核评价
*
* @param id 规范建设-基层单位考核评价主键
* @return 规范建设-基层单位考核评价
*/
@Override
public
SjGfjsZsdwkhpj
selectSjGfjsZsdwkhpjById
(
Long
id
)
{
return
sjGfjsZsdwkhpjMapper
.
selectSjGfjsZsdwkhpjById
(
id
);
}
/**
* 查询规范建设-基层单位考核评价列表
*
* @param sjGfjsZsdwkhpj 规范建设-基层单位考核评价
* @return 规范建设-基层单位考核评价
*/
@Override
@DataScope
(
deptAlias
=
"d"
)
public
List
<
SjGfjsZsdwkhpj
>
selectSjGfjsZsdwkhpjList
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
)
{
return
sjGfjsZsdwkhpjMapper
.
selectSjGfjsZsdwkhpjList
(
sjGfjsZsdwkhpj
);
}
/**
* 新增规范建设-基层单位考核评价
*
* @param sjGfjsZsdwkhpj 规范建设-基层单位考核评价
* @return 结果
*/
@Override
public
int
insertSjGfjsZsdwkhpj
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
)
{
sjGfjsZsdwkhpj
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
sjGfjsZsdwkhpjMapper
.
insertSjGfjsZsdwkhpj
(
sjGfjsZsdwkhpj
);
}
/**
* 修改规范建设-基层单位考核评价
*
* @param sjGfjsZsdwkhpj 规范建设-基层单位考核评价
* @return 结果
*/
@Override
public
int
updateSjGfjsZsdwkhpj
(
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
)
{
sjGfjsZsdwkhpj
.
setUpdateTime
(
DateUtils
.
getNowDate
());
sjGfjsZsdwkhpj
.
setUpdateBy
(
SecurityUtils
.
getUsername
());
//计算分数
return
sjGfjsZsdwkhpjMapper
.
updateSjGfjsZsdwkhpj
(
sjGfjsZsdwkhpj
);
}
/**
* 批量删除规范建设-基层单位考核评价
*
* @param ids 需要删除的规范建设-基层单位考核评价主键
* @return 结果
*/
@Override
public
int
deleteSjGfjsZsdwkhpjByIds
(
Long
[]
ids
)
{
return
sjGfjsZsdwkhpjMapper
.
deleteSjGfjsZsdwkhpjByIds
(
ids
);
}
/**
* 删除规范建设-基层单位考核评价信息
*
* @param id 规范建设-基层单位考核评价主键
* @return 结果
*/
@Override
public
int
deleteSjGfjsZsdwkhpjById
(
Long
id
)
{
return
sjGfjsZsdwkhpjMapper
.
deleteSjGfjsZsdwkhpjById
(
id
);
}
@Override
public
int
batchSave
(
List
<
SjGfjsZsdwkhpj
>
addList
)
{
return
sjGfjsZsdwkhpjMapper
.
batchSave
(
addList
);
}
@Override
public
int
pledit
(
List
<
SjGfjsZsdwkhpj
>
list
)
{
//计算分数
SjGfjsZsdwkhpj
sjGfjsZsdwkhpj
=
list
.
get
(
0
);
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
=
sjGfjsZsdwkhpjZbMapper
.
selectSjGfjsZsdwkhpjZbById
(
sjGfjsZsdwkhpj
.
getZbId
());
SysDept
dept
=
sysDeptMapper
.
selectDeptById
(
sjGfjsZsdwkhpjZb
.
getDeptId
());
Map
<
String
,
List
<
SjGfjsZsdwkhpj
>>
stringListMap
=
list
.
stream
().
collect
(
Collectors
.
groupingBy
(
SjGfjsZsdwkhpj:
:
getKhnr
));
List
<
SysDictData
>
zdbfKhnr
=
sysDictDataMapper
.
selectDictDataByType
(
"gfjs_sslj"
);
for
(
SysDictData
data:
zdbfKhnr
){
String
dictValue
=
data
.
getDictValue
();
List
<
SjGfjsZsdwkhpj
>
sjGfjsZsdwkhpjs
=
stringListMap
.
get
(
data
.
getDictValue
());
//计算分数
List
<
Double
>
doubleList
=
new
ArrayList
<>();
if
(
sjGfjsZsdwkhpjs
==
null
){
continue
;
}
sjGfjsZsdwkhpjs
.
forEach
(
item
->{
if
(
StringUtils
.
isEmpty
(
item
.
getKhfz
())){
item
.
setKhfz
(
"0"
);
}
doubleList
.
add
(
Double
.
parseDouble
(
item
.
getKhfz
()));
});
double
kf
=
doubleList
.
stream
().
mapToDouble
(
Double:
:
doubleValue
).
sum
();
// if("党建引领".equals(dictValue)){
// //扣分
// sjGfjsZsdwkhpjZb.setDjyjkfs(new BigDecimal(kf));
// //扣分比列
// BigDecimal df = sjGfjsZsdwkhpjZb.getDjyjzfs().add(new BigDecimal(kf));
// BigDecimal kfbl =df.divide(sjGfjsZsdwkhpjZb.getDjyjzfs(),BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100)).setScale(2, BigDecimal.ROUND_HALF_UP);
// sjGfjsZsdwkhpjZb.setDjyjkfbl(new BigDecimal(100).subtract(kfbl));
// //得分
// sjGfjsZsdwkhpjZb.setDjyjdf(df);
//
//
// } else if ("素质提升".equals(dictValue)) {
////扣分
// sjGfjsZsdwkhpjZb.setSztskfs(new BigDecimal(kf));
// //扣分比列
// BigDecimal df = sjGfjsZsdwkhpjZb.getSztszfs().add(new BigDecimal(kf));
// /* BigDecimal aa = df.divide(sjGfjsZsdwkhpjZb.getSztszfs(),4,BigDecimal.ROUND_HALF_UP);
// BigDecimal bb = aa.multiply(new BigDecimal(100));
// BigDecimal cc = bb.setScale(2, BigDecimal.ROUND_HALF_UP);*/
//
// BigDecimal kfbl =df.divide(sjGfjsZsdwkhpjZb.getSztszfs(),4,BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100)).setScale(2, BigDecimal.ROUND_HALF_UP);
// sjGfjsZsdwkhpjZb.setSztsfbl(new BigDecimal(100).subtract(kfbl));
// //得分
// sjGfjsZsdwkhpjZb.setSztsdf(df);
// } else if ("管理精益".equals(dictValue)) {
// sjGfjsZsdwkhpjZb.setGlgfkfs(new BigDecimal(kf));
// //扣分比列
// BigDecimal df = sjGfjsZsdwkhpjZb.getGlgfzfs().add(new BigDecimal(kf));
// BigDecimal kfbl =df.divide(sjGfjsZsdwkhpjZb.getGlgfzfs(),4,BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100)).setScale(2, BigDecimal.ROUND_HALF_UP);
// sjGfjsZsdwkhpjZb.setGlgfbl(new BigDecimal(100).subtract(kfbl));
// //得分
// sjGfjsZsdwkhpjZb.setGlgfdf(df);
// } else if ("业务创效".equals(dictValue)) {
// sjGfjsZsdwkhpjZb.setYwcxkfs(new BigDecimal(kf));
// //扣分比列
// BigDecimal df = sjGfjsZsdwkhpjZb.getYwcxzfs().add(new BigDecimal(kf));
// BigDecimal kfbl =df.divide(sjGfjsZsdwkhpjZb.getYwcxzfs(),4,BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100)).setScale(2, BigDecimal.ROUND_HALF_UP);
// sjGfjsZsdwkhpjZb.setYwcxbl(new BigDecimal(100).subtract(kfbl));
// //得分
// sjGfjsZsdwkhpjZb.setYwcxdf(df);
// }
//
// }
//
// BigDecimal sum = sjGfjsZsdwkhpjZb.getDjyjzfs().add(sjGfjsZsdwkhpjZb.getSztszfs()).add(sjGfjsZsdwkhpjZb.getGlgfzfs()).add(sjGfjsZsdwkhpjZb.getYwcxzfs());
// //总得分
// BigDecimal sunfs = sjGfjsZsdwkhpjZb.getDjyjdf().add(sjGfjsZsdwkhpjZb.getSztsdf()).add(sjGfjsZsdwkhpjZb.getGlgfdf()).add(sjGfjsZsdwkhpjZb.getYwcxdf());
// sjGfjsZsdwkhpjZb.setZdf(sunfs);
// //总扣分
// sjGfjsZsdwkhpjZb.setZkf(sum.subtract(sunfs));
// //总扣分比例
// BigDecimal bigDecimal = sunfs.divide(sum,4,BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100)).setScale(2, BigDecimal.ROUND_HALF_UP);
// sjGfjsZsdwkhpjZb.setZkfbl(new BigDecimal(100).subtract(bigDecimal));
// //综合得分
// String deptDfl = dept.getDeptDfl();
// if(StringUtils.isNotEmpty(deptDfl)){
// if ("B类".equals(deptDfl)) {
// sjGfjsZsdwkhpjZb.setZhdf( sunfs.multiply(new BigDecimal(0.9)).setScale(2, BigDecimal.ROUND_HALF_UP));
// }else if ("C类".equals(deptDfl)) {
// sjGfjsZsdwkhpjZb.setZhdf( sunfs.multiply(new BigDecimal(0.85)).setScale(2, BigDecimal.ROUND_HALF_UP));
// }else {
// sjGfjsZsdwkhpjZb.setZhdf(sunfs);
// }
}
//更新主表
sjGfjsZsdwkhpjZbMapper
.
updateSjGfjsZsdwkhpjZb
(
sjGfjsZsdwkhpjZb
);
return
sjGfjsZsdwkhpjMapper
.
pledit
(
list
);
}
}
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjGfjsJcdwkhpjZbServiceImpl.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
service
.
impl
;
import
com.qianhe.common.annotation.DataScope
;
import
com.qianhe.common.utils.DateUtils
;
import
com.qianhe.domain.SjGfjsZsdwkhpjZb
;
import
com.qianhe.mapper.SjGfjsJcdwkhpjZbMapper
;
import
com.qianhe.service.ISjGfjsJcdwkhpjZbService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* 规范建设-基层单位考核评价主Service业务层处理
*
* @author qianhe
* @date 2024-07-24
*/
@Service
public
class
SjGfjsJcdwkhpjZbServiceImpl
implements
ISjGfjsJcdwkhpjZbService
{
@Autowired
private
SjGfjsJcdwkhpjZbMapper
sjGfjsZsdwkhpjZbMapper
;
/**
* 查询规范建设-基层单位考核评价主
*
* @param id 规范建设-基层单位考核评价主主键
* @return 规范建设-基层单位考核评价主
*/
@Override
public
SjGfjsZsdwkhpjZb
selectSjGfjsZsdwkhpjZbById
(
Long
id
)
{
return
sjGfjsZsdwkhpjZbMapper
.
selectSjGfjsZsdwkhpjZbById
(
id
);
}
/**
* 查询规范建设-基层单位考核评价主列表
*
* @param sjGfjsZsdwkhpjZb 规范建设-基层单位考核评价主
* @return 规范建设-基层单位考核评价主
*/
@Override
@DataScope
(
deptAlias
=
"d"
)
public
List
<
SjGfjsZsdwkhpjZb
>
selectSjGfjsZsdwkhpjZbList
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
)
{
return
sjGfjsZsdwkhpjZbMapper
.
selectSjGfjsZsdwkhpjZbList
(
sjGfjsZsdwkhpjZb
);
}
/**
* 新增规范建设-基层单位考核评价主
*
* @param sjGfjsZsdwkhpjZb 规范建设-基层单位考核评价主
* @return 结果
*/
@Override
public
int
insertSjGfjsZsdwkhpjZb
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
)
{
sjGfjsZsdwkhpjZb
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
sjGfjsZsdwkhpjZbMapper
.
insertSjGfjsZsdwkhpjZb
(
sjGfjsZsdwkhpjZb
);
}
/**
* 修改规范建设-基层单位考核评价主
*
* @param sjGfjsZsdwkhpjZb 规范建设-基层单位考核评价主
* @return 结果
*/
@Override
public
int
updateSjGfjsZsdwkhpjZb
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
)
{
sjGfjsZsdwkhpjZb
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
sjGfjsZsdwkhpjZbMapper
.
updateSjGfjsZsdwkhpjZb
(
sjGfjsZsdwkhpjZb
);
}
/**
* 批量删除规范建设-基层单位考核评价主
*
* @param ids 需要删除的规范建设-基层单位考核评价主主键
* @return 结果
*/
@Override
public
int
deleteSjGfjsZsdwkhpjZbByIds
(
Long
[]
ids
)
{
return
sjGfjsZsdwkhpjZbMapper
.
deleteSjGfjsZsdwkhpjZbByIds
(
ids
);
}
/**
* 删除规范建设-基层单位考核评价主信息
*
* @param id 规范建设-基层单位考核评价主主键
* @return 结果
*/
@Override
public
int
deleteSjGfjsZsdwkhpjZbById
(
Long
id
)
{
return
sjGfjsZsdwkhpjZbMapper
.
deleteSjGfjsZsdwkhpjZbById
(
id
);
}
@Override
public
SjGfjsZsdwkhpjZb
selectSjGfjsZsdwkhpjZb
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
)
{
return
sjGfjsZsdwkhpjZbMapper
.
selectSjGfjsZsdwkhpjZb
(
sjGfjsZsdwkhpjZb
);
}
}
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjGfjsYdjcjlServiceImpl.java
View file @
c3ab09d3
...
@@ -62,6 +62,15 @@ public class SjGfjsYdjcjlServiceImpl implements ISjGfjsYdjcjlService
...
@@ -62,6 +62,15 @@ public class SjGfjsYdjcjlServiceImpl implements ISjGfjsYdjcjlService
{
{
sjGfjsYdjcjl
.
setCreateTime
(
DateUtils
.
getNowDate
());
sjGfjsYdjcjl
.
setCreateTime
(
DateUtils
.
getNowDate
());
sjGfjsYdjcjl
.
setCreateBy
(
SecurityUtils
.
getUsername
());
sjGfjsYdjcjl
.
setCreateBy
(
SecurityUtils
.
getUsername
());
//判断是否有问题
List
<
SjGfjsZsdwwtcj
>
sjGfjsZsdwwtcjList
=
sjGfjsYdjcjl
.
getSjGfjsZsdwwtcjList
();
if
(
sjGfjsZsdwwtcjList
!=
null
&&
sjGfjsZsdwwtcjList
.
size
()
>
0
){
sjGfjsYdjcjl
.
setSfczwt
(
"Y"
);
}
else
{
sjGfjsYdjcjl
.
setSfczwt
(
"N"
);
}
int
rows
=
sjGfjsYdjcjlMapper
.
insertSjGfjsYdjcjl
(
sjGfjsYdjcjl
);
int
rows
=
sjGfjsYdjcjlMapper
.
insertSjGfjsYdjcjl
(
sjGfjsYdjcjl
);
insertSjGfjsZsdwwtcj
(
sjGfjsYdjcjl
);
insertSjGfjsZsdwwtcj
(
sjGfjsYdjcjl
);
return
rows
;
return
rows
;
...
@@ -83,6 +92,14 @@ public class SjGfjsYdjcjlServiceImpl implements ISjGfjsYdjcjlService
...
@@ -83,6 +92,14 @@ public class SjGfjsYdjcjlServiceImpl implements ISjGfjsYdjcjlService
sjGfjsYdjcjlMapper
.
deleteSjGfjsZsdwwtcjByPid
(
sjGfjsYdjcjl
.
getId
());
sjGfjsYdjcjlMapper
.
deleteSjGfjsZsdwwtcjByPid
(
sjGfjsYdjcjl
.
getId
());
insertSjGfjsZsdwwtcj
(
sjGfjsYdjcjl
);
insertSjGfjsZsdwwtcj
(
sjGfjsYdjcjl
);
//判断是否有问题
List
<
SjGfjsZsdwwtcj
>
sjGfjsZsdwwtcjList
=
sjGfjsYdjcjl
.
getSjGfjsZsdwwtcjList
();
if
(
sjGfjsZsdwwtcjList
!=
null
&&
sjGfjsZsdwwtcjList
.
size
()
>
0
){
sjGfjsYdjcjl
.
setSfczwt
(
"Y"
);
}
else
{
sjGfjsYdjcjl
.
setSfczwt
(
"N"
);
}
return
sjGfjsYdjcjlMapper
.
updateSjGfjsYdjcjl
(
sjGfjsYdjcjl
);
return
sjGfjsYdjcjlMapper
.
updateSjGfjsYdjcjl
(
sjGfjsYdjcjl
);
}
}
...
@@ -127,6 +144,11 @@ public class SjGfjsYdjcjlServiceImpl implements ISjGfjsYdjcjlService
...
@@ -127,6 +144,11 @@ public class SjGfjsYdjcjlServiceImpl implements ISjGfjsYdjcjlService
for
(
SjGfjsZsdwwtcj
sjGfjsZsdwwtcj
:
sjGfjsZsdwwtcjList
)
for
(
SjGfjsZsdwwtcj
sjGfjsZsdwwtcj
:
sjGfjsZsdwwtcjList
)
{
{
sjGfjsZsdwwtcj
.
setPid
(
id
);
sjGfjsZsdwwtcj
.
setPid
(
id
);
sjGfjsZsdwwtcj
.
setDeptId
(
sjGfjsYdjcjl
.
getDeptId
());
sjGfjsZsdwwtcj
.
setRq
(
sjGfjsYdjcjl
.
getRq
());
sjGfjsZsdwwtcj
.
setJcjb
(
sjGfjsYdjcjl
.
getJcjb
());
sjGfjsZsdwwtcj
.
setCreateTime
(
DateUtils
.
getNowDate
());
sjGfjsZsdwwtcj
.
setCreateTime
(
DateUtils
.
getNowDate
());
sjGfjsZsdwwtcj
.
setCreateBy
(
SecurityUtils
.
getUsername
());
sjGfjsZsdwwtcj
.
setCreateBy
(
SecurityUtils
.
getUsername
());
list
.
add
(
sjGfjsZsdwwtcj
);
list
.
add
(
sjGfjsZsdwwtcj
);
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjGfjsZsdwkhpjZbServiceImpl.java
0 → 100644
View file @
c3ab09d3
package
com
.
qianhe
.
service
.
impl
;
import
com.qianhe.common.annotation.DataScope
;
import
com.qianhe.common.utils.DateUtils
;
import
com.qianhe.domain.SjZdbfZsdwkhpjZb
;
import
com.qianhe.mapper.SjZdbfZsdwkhpjZbMapper
;
import
com.qianhe.service.ISjZdbfZsdwkhpjZbService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* 指导帮扶-直属单位考核评价主Service业务层处理
*
* @author qianhe
* @date 2024-07-24
*/
@Service
public
class
SjGfjsZsdwkhpjZbServiceImpl
implements
ISjZdbfZsdwkhpjZbService
{
@Autowired
private
SjZdbfZsdwkhpjZbMapper
sjZdbfZsdwkhpjZbMapper
;
/**
* 查询指导帮扶-直属单位考核评价主
*
* @param id 指导帮扶-直属单位考核评价主主键
* @return 指导帮扶-直属单位考核评价主
*/
@Override
public
SjZdbfZsdwkhpjZb
selectSjZdbfZsdwkhpjZbById
(
Long
id
)
{
return
sjZdbfZsdwkhpjZbMapper
.
selectSjZdbfZsdwkhpjZbById
(
id
);
}
/**
* 查询指导帮扶-直属单位考核评价主列表
*
* @param sjZdbfZsdwkhpjZb 指导帮扶-直属单位考核评价主
* @return 指导帮扶-直属单位考核评价主
*/
@Override
@DataScope
(
deptAlias
=
"d"
)
public
List
<
SjZdbfZsdwkhpjZb
>
selectSjZdbfZsdwkhpjZbList
(
SjZdbfZsdwkhpjZb
sjZdbfZsdwkhpjZb
)
{
return
sjZdbfZsdwkhpjZbMapper
.
selectSjZdbfZsdwkhpjZbList
(
sjZdbfZsdwkhpjZb
);
}
/**
* 新增指导帮扶-直属单位考核评价主
*
* @param sjZdbfZsdwkhpjZb 指导帮扶-直属单位考核评价主
* @return 结果
*/
@Override
public
int
insertSjZdbfZsdwkhpjZb
(
SjZdbfZsdwkhpjZb
sjZdbfZsdwkhpjZb
)
{
sjZdbfZsdwkhpjZb
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
sjZdbfZsdwkhpjZbMapper
.
insertSjZdbfZsdwkhpjZb
(
sjZdbfZsdwkhpjZb
);
}
/**
* 修改指导帮扶-直属单位考核评价主
*
* @param sjZdbfZsdwkhpjZb 指导帮扶-直属单位考核评价主
* @return 结果
*/
@Override
public
int
updateSjZdbfZsdwkhpjZb
(
SjZdbfZsdwkhpjZb
sjZdbfZsdwkhpjZb
)
{
sjZdbfZsdwkhpjZb
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
sjZdbfZsdwkhpjZbMapper
.
updateSjZdbfZsdwkhpjZb
(
sjZdbfZsdwkhpjZb
);
}
/**
* 批量删除指导帮扶-直属单位考核评价主
*
* @param ids 需要删除的指导帮扶-直属单位考核评价主主键
* @return 结果
*/
@Override
public
int
deleteSjZdbfZsdwkhpjZbByIds
(
Long
[]
ids
)
{
return
sjZdbfZsdwkhpjZbMapper
.
deleteSjZdbfZsdwkhpjZbByIds
(
ids
);
}
/**
* 删除指导帮扶-直属单位考核评价主信息
*
* @param id 指导帮扶-直属单位考核评价主主键
* @return 结果
*/
@Override
public
int
deleteSjZdbfZsdwkhpjZbById
(
Long
id
)
{
return
sjZdbfZsdwkhpjZbMapper
.
deleteSjZdbfZsdwkhpjZbById
(
id
);
}
@Override
public
SjZdbfZsdwkhpjZb
selectSjZdbfZsdwkhpjZb
(
SjZdbfZsdwkhpjZb
sjZdbfZsdwkhpjZb
)
{
return
sjZdbfZsdwkhpjZbMapper
.
selectSjZdbfZsdwkhpjZb
(
sjZdbfZsdwkhpjZb
);
}
}
qianhe-ydsj/src/main/resources/mapper/SjGfjsJcdwkhpjMapper.xml
0 → 100644
View file @
c3ab09d3
<?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=
"com.qianhe.mapper.SjGfjsJcdwkhpjMapper"
>
<resultMap
type=
"SjGfjsZsdwkhpj"
id=
"SjGfjsZsdwkhpjResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"zbId"
column=
"zb_id"
/>
<result
property=
"deptId"
column=
"dept_id"
/>
<result
property=
"nd"
column=
"nd"
/>
<result
property=
"zqfw"
column=
"zqfw"
/>
<result
property=
"zqlx"
column=
"zqlx"
/>
<result
property=
"jb"
column=
"jb"
/>
<result
property=
"khnr"
column=
"khnr"
/>
<result
property=
"khxd"
column=
"khxd"
/>
<result
property=
"pjbzid"
column=
"pjbzid"
/>
<result
property=
"pjbzmc"
column=
"pjbzmc"
/>
<result
property=
"sj"
column=
"sj"
/>
<result
property=
"wtms"
column=
"wtms"
/>
<result
property=
"khfz"
column=
"khfz"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"yl1"
column=
"yl1"
/>
<result
property=
"yl2"
column=
"yl2"
/>
<result
property=
"yl3"
column=
"yl3"
/>
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"deptName"
column=
"dept_name"
/>
</resultMap>
<sql
id=
"selectSjGfjsZsdwkhpjVo"
>
select id,
zb_id,
a.dept_id,
nd,
zqfw,
zqlx,
jb,
khnr,
khxd,
pjbzid,
pjbzmc,
sj,
wtms,
khfz,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
remark,
yl1,
yl2,
yl3,
yl4,
yl5,d.dept_name
from sj_gfjs_zsdwkhpj a
left join sys_dept d on a.dept_id=d.dept_id
</sql>
<select
id=
"selectSjGfjsZsdwkhpjList"
parameterType=
"SjGfjsZsdwkhpj"
resultMap=
"SjGfjsZsdwkhpjResult"
>
<include
refid=
"selectSjGfjsZsdwkhpjVo"
/>
<where>
<if
test=
"zbId != null "
>
and zb_id = #{zbId}
</if>
<if
test=
"deptId != null "
>
and a.dept_id = #{deptId}
</if>
<if
test=
"nd != null and nd != ''"
>
and nd = #{nd}
</if>
<if
test=
"zqfw != null and zqfw != ''"
>
and zqfw = #{zqfw}
</if>
<if
test=
"zqlx != null and zqlx != ''"
>
and zqlx = #{zqlx}
</if>
<if
test=
"jb != null and jb != ''"
>
and jb = #{jb}
</if>
<if
test=
"khnr != null and khnr != ''"
>
and khnr = #{khnr}
</if>
<if
test=
"khxd != null and khxd != ''"
>
and khxd = #{khxd}
</if>
<if
test=
"pjbzid != null and pjbzid != ''"
>
and pjbzid = #{pjbzid}
</if>
<if
test=
"pjbzmc != null and pjbzmc != ''"
>
and pjbzmc = #{pjbzmc}
</if>
<if
test=
"sj != null and sj != ''"
>
and sj = #{sj}
</if>
<if
test=
"wtms != null and wtms != ''"
>
and wtms = #{wtms}
</if>
<if
test=
"khfz != null and khfz != ''"
>
and khfz = #{khfz}
</if>
<if
test=
"yl1 != null and yl1 != ''"
>
and yl1 = #{yl1}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and yl2 = #{yl2}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and yl5 = #{yl5}
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
</where>
order by yl1
</select>
<select
id=
"selectSjGfjsZsdwkhpjById"
parameterType=
"Long"
resultMap=
"SjGfjsZsdwkhpjResult"
>
<include
refid=
"selectSjGfjsZsdwkhpjVo"
/>
where id = #{id}
</select>
<insert
id=
"insertSjGfjsZsdwkhpj"
parameterType=
"SjGfjsZsdwkhpj"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_gfjs_zsdwkhpj
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"zbId != null"
>
zb_id,
</if>
<if
test=
"deptId != null"
>
dept_id,
</if>
<if
test=
"nd != null"
>
nd,
</if>
<if
test=
"zqfw != null"
>
zqfw,
</if>
<if
test=
"zqlx != null"
>
zqlx,
</if>
<if
test=
"jb != null"
>
jb,
</if>
<if
test=
"khnr != null"
>
khnr,
</if>
<if
test=
"khxd != null"
>
khxd,
</if>
<if
test=
"pjbzid != null"
>
pjbzid,
</if>
<if
test=
"pjbzmc != null"
>
pjbzmc,
</if>
<if
test=
"sj != null"
>
sj,
</if>
<if
test=
"wtms != null"
>
wtms,
</if>
<if
test=
"khfz != null"
>
khfz,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"yl1 != null"
>
yl1,
</if>
<if
test=
"yl2 != null"
>
yl2,
</if>
<if
test=
"yl3 != null"
>
yl3,
</if>
<if
test=
"yl4 != null"
>
yl4,
</if>
<if
test=
"yl5 != null"
>
yl5,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"zbId != null"
>
#{zbId},
</if>
<if
test=
"deptId != null"
>
#{deptId},
</if>
<if
test=
"nd != null"
>
#{nd},
</if>
<if
test=
"zqfw != null"
>
#{zqfw},
</if>
<if
test=
"zqlx != null"
>
#{zqlx},
</if>
<if
test=
"jb != null"
>
#{jb},
</if>
<if
test=
"khnr != null"
>
#{khnr},
</if>
<if
test=
"khxd != null"
>
#{khxd},
</if>
<if
test=
"pjbzid != null"
>
#{pjbzid},
</if>
<if
test=
"pjbzmc != null"
>
#{pjbzmc},
</if>
<if
test=
"sj != null"
>
#{sj},
</if>
<if
test=
"wtms != null"
>
#{wtms},
</if>
<if
test=
"khfz != null"
>
#{khfz},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"yl1 != null"
>
#{yl1},
</if>
<if
test=
"yl2 != null"
>
#{yl2},
</if>
<if
test=
"yl3 != null"
>
#{yl3},
</if>
<if
test=
"yl4 != null"
>
#{yl4},
</if>
<if
test=
"yl5 != null"
>
#{yl5},
</if>
</trim>
</insert>
<insert
id=
"batchSave"
>
insert into sj_gfjs_zsdwkhpj( id, zb_id, dept_id, nd, zqfw, zqlx, jb, khnr, khxd, pjbzid, pjbzmc, sj, wtms, khfz, remark, yl1, yl2, yl3, yl4, yl5) values
<foreach
item=
"item"
index=
"index"
collection=
"list"
separator=
","
>
( #{item.id}, #{item.zbId}, #{item.deptId}, #{item.nd}, #{item.zqfw}, #{item.zqlx}, #{item.jb}, #{item.khnr}, #{item.khxd}, #{item.pjbzid}, #{item.pjbzmc}, #{item.sj}, #{item.wtms}, #{item.khfz}, #{item.remark}, #{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5})
</foreach>
</insert>
<update
id=
"updateSjGfjsZsdwkhpj"
parameterType=
"SjGfjsZsdwkhpj"
>
update sj_gfjs_zsdwkhpj
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"zbId != null"
>
zb_id = #{zbId},
</if>
<if
test=
"deptId != null"
>
dept_id = #{deptId},
</if>
<if
test=
"nd != null"
>
nd = #{nd},
</if>
<if
test=
"zqfw != null"
>
zqfw = #{zqfw},
</if>
<if
test=
"zqlx != null"
>
zqlx = #{zqlx},
</if>
<if
test=
"jb != null"
>
jb = #{jb},
</if>
<if
test=
"khnr != null"
>
khnr = #{khnr},
</if>
<if
test=
"khxd != null"
>
khxd = #{khxd},
</if>
<if
test=
"pjbzid != null"
>
pjbzid = #{pjbzid},
</if>
<if
test=
"pjbzmc != null"
>
pjbzmc = #{pjbzmc},
</if>
<if
test=
"sj != null"
>
sj = #{sj},
</if>
<if
test=
"wtms != null"
>
wtms = #{wtms},
</if>
<if
test=
"khfz != null"
>
khfz = #{khfz},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"yl1 != null"
>
yl1 = #{yl1},
</if>
<if
test=
"yl2 != null"
>
yl2 = #{yl2},
</if>
<if
test=
"yl3 != null"
>
yl3 = #{yl3},
</if>
<if
test=
"yl4 != null"
>
yl4 = #{yl4},
</if>
<if
test=
"yl5 != null"
>
yl5 = #{yl5},
</if>
</trim>
where id = #{id}
</update>
<update
id=
"pledit"
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
open=
""
close=
""
separator=
";"
>
update sj_gfjs_zsdwkhpj
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"item.sj != null"
>
sj = #{item.sj},
</if>
<if
test=
"item.wtms != null"
>
wtms = #{item.wtms},
</if>
<if
test=
"item.khfz != null"
>
khfz = #{item.khfz},
</if>
</trim>
where id = #{item.id}
</foreach>
</update>
<delete
id=
"deleteSjGfjsZsdwkhpjById"
parameterType=
"Long"
>
delete from sj_gfjs_zsdwkhpj where id = #{id}
</delete>
<delete
id=
"deleteSjGfjsZsdwkhpjByIds"
parameterType=
"String"
>
delete from sj_gfjs_zsdwkhpj where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
qianhe-ydsj/src/main/resources/mapper/SjGfjsJcdwkhpjZbMapper.xml
0 → 100644
View file @
c3ab09d3
<?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=
"com.qianhe.mapper.SjGfjsJcdwkhpjZbMapper"
>
<resultMap
type=
"SjGfjsZsdwkhpjZb"
id=
"SjGfjsZsdwkhpjZbResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"deptId"
column=
"dept_id"
/>
<result
property=
"parentDeptId"
column=
"parent_dept_id"
/>
<result
property=
"nd"
column=
"nd"
/>
<result
property=
"zqfw"
column=
"zqfw"
/>
<result
property=
"zqlx"
column=
"zqlx"
/>
<result
property=
"jb"
column=
"jb"
/>
<result
property=
"deptDfl"
column=
"dept_dfl"
/>
<result
property=
"deptLx"
column=
"dept_lx"
/>
<result
property=
"deptYwfl"
column=
"dept_ywfl"
/>
<result
property=
"djyjzfs"
column=
"djyjzfs"
/>
<result
property=
"djyjkfs"
column=
"djyjkfs"
/>
<result
property=
"djyjkfbl"
column=
"djyjkfbl"
/>
<result
property=
"djyjdf"
column=
"djyjdf"
/>
<result
property=
"sztszfs"
column=
"sztszfs"
/>
<result
property=
"sztskfs"
column=
"sztskfs"
/>
<result
property=
"sztsfbl"
column=
"sztsfbl"
/>
<result
property=
"sztsdf"
column=
"sztsdf"
/>
<result
property=
"glgfzfs"
column=
"glgfzfs"
/>
<result
property=
"glgfkfs"
column=
"glgfkfs"
/>
<result
property=
"glgfbl"
column=
"glgfbl"
/>
<result
property=
"glgfdf"
column=
"glgfdf"
/>
<result
property=
"ywcxzfs"
column=
"ywcxzfs"
/>
<result
property=
"ywcxkfs"
column=
"ywcxkfs"
/>
<result
property=
"ywcxbl"
column=
"ywcxbl"
/>
<result
property=
"ywcxdf"
column=
"ywcxdf"
/>
<result
property=
"sffjxs"
column=
"sffjxs"
/>
<result
property=
"zkf"
column=
"zkf"
/>
<result
property=
"zkfbl"
column=
"zkfbl"
/>
<result
property=
"zdf"
column=
"zdf"
/>
<result
property=
"zhdf"
column=
"zhdf"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"yl1"
column=
"yl1"
/>
<result
property=
"yl2"
column=
"yl2"
/>
<result
property=
"yl3"
column=
"yl3"
/>
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"deptName"
column=
"dept_name"
/>
<result
property=
"parentName"
column=
"parent_name"
/>
</resultMap>
<sql
id=
"selectSjGfjsZsdwkhpjZbVo"
>
select id,
a.dept_id,
parent_dept_id,
nd,
zqfw,
zqlx,
jb,
d.dept_dfl,
d.dept_lx,
d.dept_ywfl,
djyjzfs,
djyjkfs,
djyjkfbl,
djyjdf,
sztszfs,
sztskfs,
sztsfbl,
sztsdf,
glgfzfs,
glgfkfs,
glgfbl,
glgfdf,
ywcxzfs,
ywcxkfs,
ywcxbl,
ywcxdf,
sffjxs,
zkf,
zkfbl,
zdf,
zhdf,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
remark,
yl1,
yl2,
yl3,
yl4,
yl5,d.dept_name,p.dept_name parent_name
from sj_gfjs_zsdwkhpj_zb a
left join sys_dept d on a.dept_id=d.dept_id
left join sys_dept p on a.parent_dept_id=p.dept_id
</sql>
<select
id=
"selectSjGfjsZsdwkhpjZbList"
parameterType=
"SjGfjsZsdwkhpjZb"
resultMap=
"SjGfjsZsdwkhpjZbResult"
>
<include
refid=
"selectSjGfjsZsdwkhpjZbVo"
/>
<where>
<if
test=
"deptId != null "
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},d.ancestors))
</if>
<if
test=
"parentDeptId != null "
>
and parent_dept_id = #{parentDeptId}
</if>
<if
test=
"nd != null and nd != ''"
>
and nd = #{nd}
</if>
<if
test=
"zqfw != null and zqfw != ''"
>
and zqfw = #{zqfw}
</if>
<if
test=
"zqlx != null and zqlx != ''"
>
and zqlx = #{zqlx}
</if>
<if
test=
"jb != null and jb != ''"
>
and jb = #{jb}
</if>
<if
test=
"deptDfl != null and deptDfl != ''"
>
and a.dept_dfl = #{deptDfl}
</if>
<if
test=
"deptLx != null and deptLx != ''"
>
and dept_lx = #{deptLx}
</if>
<if
test=
"deptYwfl != null and deptYwfl != ''"
>
and a.dept_ywfl = #{deptYwfl}
</if>
<if
test=
"djyjzfs != null "
>
and djyjzfs = #{djyjzfs}
</if>
<if
test=
"djyjkfs != null "
>
and djyjkfs = #{djyjkfs}
</if>
<if
test=
"djyjkfbl != null "
>
and djyjkfbl = #{djyjkfbl}
</if>
<if
test=
"djyjdf != null "
>
and djyjdf = #{djyjdf}
</if>
<if
test=
"sztszfs != null "
>
and sztszfs = #{sztszfs}
</if>
<if
test=
"sztskfs != null "
>
and sztskfs = #{sztskfs}
</if>
<if
test=
"sztsfbl != null "
>
and sztsfbl = #{sztsfbl}
</if>
<if
test=
"sztsdf != null "
>
and sztsdf = #{sztsdf}
</if>
<if
test=
"glgfzfs != null "
>
and glgfzfs = #{glgfzfs}
</if>
<if
test=
"glgfkfs != null "
>
and glgfkfs = #{glgfkfs}
</if>
<if
test=
"glgfbl != null "
>
and glgfbl = #{glgfbl}
</if>
<if
test=
"glgfdf != null "
>
and glgfdf = #{glgfdf}
</if>
<if
test=
"ywcxzfs != null "
>
and ywcxzfs = #{ywcxzfs}
</if>
<if
test=
"ywcxkfs != null "
>
and ywcxkfs = #{ywcxkfs}
</if>
<if
test=
"ywcxbl != null "
>
and ywcxbl = #{ywcxbl}
</if>
<if
test=
"ywcxdf != null "
>
and ywcxdf = #{ywcxdf}
</if>
<if
test=
"sffjxs != null "
>
and sffjxs = #{sffjxs}
</if>
<if
test=
"zkf != null "
>
and zkf = #{zkf}
</if>
<if
test=
"zkfbl != null "
>
and zkfbl = #{zkfbl}
</if>
<if
test=
"zdf != null "
>
and zdf = #{zdf}
</if>
<if
test=
"zhdf != null "
>
and zhdf = #{zhdf}
</if>
<if
test=
"yl1 != null and yl1 != ''"
>
and yl1 = #{yl1}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and yl2 = #{yl2}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and yl5 = #{yl5}
</if>
<if
test=
"df != null "
>
and zdf
<
= #{df}
</if>
<if
test=
"kfbl != null "
>
and zkfbl >= #{kfbl}
</if>
<if
test=
"fjx != null and fjx.toString()=='1'.toString() "
>
and sffjxs >= #{fjx}
</if>
<if
test=
"fjx != null and fjx.toString()=='0'.toString() "
>
and sffjxs = #{fjx}
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
</where>
order by zhdf desc
</select>
<select
id=
"selectSjGfjsZsdwkhpjZbById"
parameterType=
"Long"
resultMap=
"SjGfjsZsdwkhpjZbResult"
>
<include
refid=
"selectSjGfjsZsdwkhpjZbVo"
/>
where id = #{id}
</select>
<select
id=
"selectSjGfjsZsdwkhpjZb"
resultType=
"com.qianhe.domain.SjGfjsZsdwkhpjZb"
>
select *from sj_gfjs_zsdwkhpj_zb where nd=#{nd} and dept_id=#{deptId} and zqfw=#{zqfw}
</select>
<insert
id=
"insertSjGfjsZsdwkhpjZb"
parameterType=
"SjGfjsZsdwkhpjZb"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_gfjs_zsdwkhpj_zb
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"deptId != null"
>
dept_id,
</if>
<if
test=
"parentDeptId != null"
>
parent_dept_id,
</if>
<if
test=
"nd != null"
>
nd,
</if>
<if
test=
"zqfw != null"
>
zqfw,
</if>
<if
test=
"zqlx != null"
>
zqlx,
</if>
<if
test=
"jb != null"
>
jb,
</if>
<if
test=
"deptDfl != null"
>
dept_dfl,
</if>
<if
test=
"deptLx != null"
>
dept_lx,
</if>
<if
test=
"deptYwfl != null"
>
dept_ywfl,
</if>
<if
test=
"djyjzfs != null"
>
djyjzfs,
</if>
<if
test=
"djyjkfs != null"
>
djyjkfs,
</if>
<if
test=
"djyjkfbl != null"
>
djyjkfbl,
</if>
<if
test=
"djyjdf != null"
>
djyjdf,
</if>
<if
test=
"sztszfs != null"
>
sztszfs,
</if>
<if
test=
"sztskfs != null"
>
sztskfs,
</if>
<if
test=
"sztsfbl != null"
>
sztsfbl,
</if>
<if
test=
"sztsdf != null"
>
sztsdf,
</if>
<if
test=
"glgfzfs != null"
>
glgfzfs,
</if>
<if
test=
"glgfkfs != null"
>
glgfkfs,
</if>
<if
test=
"glgfbl != null"
>
glgfbl,
</if>
<if
test=
"glgfdf != null"
>
glgfdf,
</if>
<if
test=
"ywcxzfs != null"
>
ywcxzfs,
</if>
<if
test=
"ywcxkfs != null"
>
ywcxkfs,
</if>
<if
test=
"ywcxbl != null"
>
ywcxbl,
</if>
<if
test=
"ywcxdf != null"
>
ywcxdf,
</if>
<if
test=
"sffjxs != null"
>
sffjxs,
</if>
<if
test=
"zkf != null"
>
zkf,
</if>
<if
test=
"zkfbl != null"
>
zkfbl,
</if>
<if
test=
"zdf != null"
>
zdf,
</if>
<if
test=
"zhdf != null"
>
zhdf,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"yl1 != null"
>
yl1,
</if>
<if
test=
"yl2 != null"
>
yl2,
</if>
<if
test=
"yl3 != null"
>
yl3,
</if>
<if
test=
"yl4 != null"
>
yl4,
</if>
<if
test=
"yl5 != null"
>
yl5,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"deptId != null"
>
#{deptId},
</if>
<if
test=
"parentDeptId != null"
>
#{parentDeptId},
</if>
<if
test=
"nd != null"
>
#{nd},
</if>
<if
test=
"zqfw != null"
>
#{zqfw},
</if>
<if
test=
"zqlx != null"
>
#{zqlx},
</if>
<if
test=
"jb != null"
>
#{jb},
</if>
<if
test=
"deptDfl != null"
>
#{deptDfl},
</if>
<if
test=
"deptLx != null"
>
#{deptLx},
</if>
<if
test=
"deptYwfl != null"
>
#{deptYwfl},
</if>
<if
test=
"djyjzfs != null"
>
#{djyjzfs},
</if>
<if
test=
"djyjkfs != null"
>
#{djyjkfs},
</if>
<if
test=
"djyjkfbl != null"
>
#{djyjkfbl},
</if>
<if
test=
"djyjdf != null"
>
#{djyjdf},
</if>
<if
test=
"sztszfs != null"
>
#{sztszfs},
</if>
<if
test=
"sztskfs != null"
>
#{sztskfs},
</if>
<if
test=
"sztsfbl != null"
>
#{sztsfbl},
</if>
<if
test=
"sztsdf != null"
>
#{sztsdf},
</if>
<if
test=
"glgfzfs != null"
>
#{glgfzfs},
</if>
<if
test=
"glgfkfs != null"
>
#{glgfkfs},
</if>
<if
test=
"glgfbl != null"
>
#{glgfbl},
</if>
<if
test=
"glgfdf != null"
>
#{glgfdf},
</if>
<if
test=
"ywcxzfs != null"
>
#{ywcxzfs},
</if>
<if
test=
"ywcxkfs != null"
>
#{ywcxkfs},
</if>
<if
test=
"ywcxbl != null"
>
#{ywcxbl},
</if>
<if
test=
"ywcxdf != null"
>
#{ywcxdf},
</if>
<if
test=
"sffjxs != null"
>
#{sffjxs},
</if>
<if
test=
"zkf != null"
>
#{zkf},
</if>
<if
test=
"zkfbl != null"
>
#{zkfbl},
</if>
<if
test=
"zdf != null"
>
#{zdf},
</if>
<if
test=
"zhdf != null"
>
#{zhdf},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"yl1 != null"
>
#{yl1},
</if>
<if
test=
"yl2 != null"
>
#{yl2},
</if>
<if
test=
"yl3 != null"
>
#{yl3},
</if>
<if
test=
"yl4 != null"
>
#{yl4},
</if>
<if
test=
"yl5 != null"
>
#{yl5},
</if>
</trim>
</insert>
<update
id=
"updateSjGfjsZsdwkhpjZb"
parameterType=
"SjGfjsZsdwkhpjZb"
>
update sj_gfjs_zsdwkhpj_zb
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"deptId != null"
>
dept_id = #{deptId},
</if>
<if
test=
"parentDeptId != null"
>
parent_dept_id = #{parentDeptId},
</if>
<if
test=
"nd != null"
>
nd = #{nd},
</if>
<if
test=
"zqfw != null"
>
zqfw = #{zqfw},
</if>
<if
test=
"zqlx != null"
>
zqlx = #{zqlx},
</if>
<if
test=
"jb != null"
>
jb = #{jb},
</if>
<if
test=
"deptDfl != null"
>
dept_dfl = #{deptDfl},
</if>
<if
test=
"deptLx != null"
>
dept_lx = #{deptLx},
</if>
<if
test=
"deptYwfl != null"
>
dept_ywfl = #{deptYwfl},
</if>
<if
test=
"djyjzfs != null"
>
djyjzfs = #{djyjzfs},
</if>
<if
test=
"djyjkfs != null"
>
djyjkfs = #{djyjkfs},
</if>
<if
test=
"djyjkfbl != null"
>
djyjkfbl = #{djyjkfbl},
</if>
<if
test=
"djyjdf != null"
>
djyjdf = #{djyjdf},
</if>
<if
test=
"sztszfs != null"
>
sztszfs = #{sztszfs},
</if>
<if
test=
"sztskfs != null"
>
sztskfs = #{sztskfs},
</if>
<if
test=
"sztsfbl != null"
>
sztsfbl = #{sztsfbl},
</if>
<if
test=
"sztsdf != null"
>
sztsdf = #{sztsdf},
</if>
<if
test=
"glgfzfs != null"
>
glgfzfs = #{glgfzfs},
</if>
<if
test=
"glgfkfs != null"
>
glgfkfs = #{glgfkfs},
</if>
<if
test=
"glgfbl != null"
>
glgfbl = #{glgfbl},
</if>
<if
test=
"glgfdf != null"
>
glgfdf = #{glgfdf},
</if>
<if
test=
"ywcxzfs != null"
>
ywcxzfs = #{ywcxzfs},
</if>
<if
test=
"ywcxkfs != null"
>
ywcxkfs = #{ywcxkfs},
</if>
<if
test=
"ywcxbl != null"
>
ywcxbl = #{ywcxbl},
</if>
<if
test=
"ywcxdf != null"
>
ywcxdf = #{ywcxdf},
</if>
<if
test=
"sffjxs != null"
>
sffjxs = #{sffjxs},
</if>
<if
test=
"zkf != null"
>
zkf = #{zkf},
</if>
<if
test=
"zkfbl != null"
>
zkfbl = #{zkfbl},
</if>
<if
test=
"zdf != null"
>
zdf = #{zdf},
</if>
<if
test=
"zhdf != null"
>
zhdf = #{zhdf},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"yl1 != null"
>
yl1 = #{yl1},
</if>
<if
test=
"yl2 != null"
>
yl2 = #{yl2},
</if>
<if
test=
"yl3 != null"
>
yl3 = #{yl3},
</if>
<if
test=
"yl4 != null"
>
yl4 = #{yl4},
</if>
<if
test=
"yl5 != null"
>
yl5 = #{yl5},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteSjGfjsZsdwkhpjZbById"
parameterType=
"Long"
>
delete from sj_gfjs_zsdwkhpj_zb where id = #{id}
</delete>
<delete
id=
"deleteSjGfjsZsdwkhpjZbByIds"
parameterType=
"String"
>
delete from sj_gfjs_zsdwkhpj_zb where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
qianhe-ydsj/src/main/resources/mapper/SjGfjsYdjcjlMapper.xml
View file @
c3ab09d3
...
@@ -205,4 +205,59 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -205,4 +205,59 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
( #{item.deptId}, #{item.rq}, #{item.jcjb}, #{item.wtmc}, #{item.khnr}, #{item.khxd}, #{item.pjbzid}, #{item.pjbzmc}, #{item.zgzrr}, #{item.zgcs}, #{item.zgqx}, #{item.zgzt}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark}, #{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5}, #{item.pid})
( #{item.deptId}, #{item.rq}, #{item.jcjb}, #{item.wtmc}, #{item.khnr}, #{item.khxd}, #{item.pjbzid}, #{item.pjbzmc}, #{item.zgzrr}, #{item.zgcs}, #{item.zgqx}, #{item.zgzt}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark}, #{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5}, #{item.pid})
</foreach>
</foreach>
</insert>
</insert>
<select
id=
"selectSjGfjsZsdwwtcjList"
parameterType=
"SjGfjsZsdwwtcj"
resultMap=
"SjGfjsZsdwwtcjResult"
>
select id,
a.dept_id,
rq,
jcjb,
wtmc,
khnr,
khxd,
pjbzid,
pjbzmc,
zgzrr,
zgcs,
zgqx,
zgzt,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
remark,
yl1,
yl2,
yl3,
yl4,
yl5, d.dept_name,d.dept_lx
from sj_zdbf_zsdwwtcj a
left join sys_dept d on a.dept_id=d.dept_id
<where>
<if
test=
"deptId != null "
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},d.ancestors))
</if>
<if
test=
"rq != null and rq != ''"
>
and rq = #{rq}
</if>
<if
test=
"jcjb != null and jcjb != ''"
>
and jcjb = #{jcjb}
</if>
<if
test=
"wtmc != null and wtmc != ''"
>
and wtmc = #{wtmc}
</if>
<if
test=
"khnr != null and khnr != ''"
>
and khnr = #{khnr}
</if>
<if
test=
"khxd != null and khxd != ''"
>
and khxd = #{khxd}
</if>
<if
test=
"pjbzid != null and pjbzid != ''"
>
and pjbzid = #{pjbzid}
</if>
<if
test=
"pjbzmc != null and pjbzmc != ''"
>
and pjbzmc = #{pjbzmc}
</if>
<if
test=
"zgzrr != null and zgzrr != ''"
>
and zgzrr = #{zgzrr}
</if>
<if
test=
"zgcs != null and zgcs != ''"
>
and zgcs = #{zgcs}
</if>
<if
test=
"zgqx != null and zgqx != ''"
>
and zgqx = #{zgqx}
</if>
<if
test=
"zgzt != null and zgzt != ''"
>
and zgzt = #{zgzt}
</if>
<if
test=
"yl1 != null and yl1 != ''"
>
and yl1 = #{yl1}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and yl2 = #{yl2}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and yl5 = #{yl5}
</if>
<if
test=
"startRq != null and startRq != ''"
>
and rq >= #{startRq}
</if>
<if
test=
"endRq != null and endRq != ''"
>
and rq
<
= #{endRq}
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
</where>
order by a.rq desc
</select>
</mapper>
</mapper>
qianhe-ydsj/src/main/resources/mapper/SjGfjsZsdwkhpjMapper.xml
0 → 100644
View file @
c3ab09d3
<?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=
"com.qianhe.mapper.SjGfjsZsdwkhpjMapper"
>
<resultMap
type=
"SjGfjsZsdwkhpj"
id=
"SjGfjsZsdwkhpjResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"zbId"
column=
"zb_id"
/>
<result
property=
"deptId"
column=
"dept_id"
/>
<result
property=
"nd"
column=
"nd"
/>
<result
property=
"zqfw"
column=
"zqfw"
/>
<result
property=
"zqlx"
column=
"zqlx"
/>
<result
property=
"jb"
column=
"jb"
/>
<result
property=
"khnr"
column=
"khnr"
/>
<result
property=
"khxd"
column=
"khxd"
/>
<result
property=
"pjbzid"
column=
"pjbzid"
/>
<result
property=
"pjbzmc"
column=
"pjbzmc"
/>
<result
property=
"sj"
column=
"sj"
/>
<result
property=
"wtms"
column=
"wtms"
/>
<result
property=
"khfz"
column=
"khfz"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"yl1"
column=
"yl1"
/>
<result
property=
"yl2"
column=
"yl2"
/>
<result
property=
"yl3"
column=
"yl3"
/>
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"deptName"
column=
"dept_name"
/>
</resultMap>
<sql
id=
"selectSjGfjsZsdwkhpjVo"
>
select id,
zb_id,
a.dept_id,
nd,
zqfw,
zqlx,
jb,
khnr,
khxd,
pjbzid,
pjbzmc,
sj,
wtms,
khfz,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
remark,
yl1,
yl2,
yl3,
yl4,
yl5,d.dept_name
from sj_gfjs_zsdwkhpj a
left join sys_dept d on a.dept_id=d.dept_id
</sql>
<select
id=
"selectSjGfjsZsdwkhpjList"
parameterType=
"SjGfjsZsdwkhpj"
resultMap=
"SjGfjsZsdwkhpjResult"
>
<include
refid=
"selectSjGfjsZsdwkhpjVo"
/>
<where>
<if
test=
"zbId != null "
>
and zb_id = #{zbId}
</if>
<if
test=
"deptId != null "
>
and a.dept_id = #{deptId}
</if>
<if
test=
"nd != null and nd != ''"
>
and nd = #{nd}
</if>
<if
test=
"zqfw != null and zqfw != ''"
>
and zqfw = #{zqfw}
</if>
<if
test=
"zqlx != null and zqlx != ''"
>
and zqlx = #{zqlx}
</if>
<if
test=
"jb != null and jb != ''"
>
and jb = #{jb}
</if>
<if
test=
"khnr != null and khnr != ''"
>
and khnr = #{khnr}
</if>
<if
test=
"khxd != null and khxd != ''"
>
and khxd = #{khxd}
</if>
<if
test=
"pjbzid != null and pjbzid != ''"
>
and pjbzid = #{pjbzid}
</if>
<if
test=
"pjbzmc != null and pjbzmc != ''"
>
and pjbzmc = #{pjbzmc}
</if>
<if
test=
"sj != null and sj != ''"
>
and sj = #{sj}
</if>
<if
test=
"wtms != null and wtms != ''"
>
and wtms = #{wtms}
</if>
<if
test=
"khfz != null and khfz != ''"
>
and khfz = #{khfz}
</if>
<if
test=
"yl1 != null and yl1 != ''"
>
and yl1 = #{yl1}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and yl2 = #{yl2}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and yl5 = #{yl5}
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
</where>
order by yl1
</select>
<select
id=
"selectSjGfjsZsdwkhpjById"
parameterType=
"Long"
resultMap=
"SjGfjsZsdwkhpjResult"
>
<include
refid=
"selectSjGfjsZsdwkhpjVo"
/>
where id = #{id}
</select>
<insert
id=
"insertSjGfjsZsdwkhpj"
parameterType=
"SjGfjsZsdwkhpj"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_gfjs_zsdwkhpj
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"zbId != null"
>
zb_id,
</if>
<if
test=
"deptId != null"
>
dept_id,
</if>
<if
test=
"nd != null"
>
nd,
</if>
<if
test=
"zqfw != null"
>
zqfw,
</if>
<if
test=
"zqlx != null"
>
zqlx,
</if>
<if
test=
"jb != null"
>
jb,
</if>
<if
test=
"khnr != null"
>
khnr,
</if>
<if
test=
"khxd != null"
>
khxd,
</if>
<if
test=
"pjbzid != null"
>
pjbzid,
</if>
<if
test=
"pjbzmc != null"
>
pjbzmc,
</if>
<if
test=
"sj != null"
>
sj,
</if>
<if
test=
"wtms != null"
>
wtms,
</if>
<if
test=
"khfz != null"
>
khfz,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"yl1 != null"
>
yl1,
</if>
<if
test=
"yl2 != null"
>
yl2,
</if>
<if
test=
"yl3 != null"
>
yl3,
</if>
<if
test=
"yl4 != null"
>
yl4,
</if>
<if
test=
"yl5 != null"
>
yl5,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"zbId != null"
>
#{zbId},
</if>
<if
test=
"deptId != null"
>
#{deptId},
</if>
<if
test=
"nd != null"
>
#{nd},
</if>
<if
test=
"zqfw != null"
>
#{zqfw},
</if>
<if
test=
"zqlx != null"
>
#{zqlx},
</if>
<if
test=
"jb != null"
>
#{jb},
</if>
<if
test=
"khnr != null"
>
#{khnr},
</if>
<if
test=
"khxd != null"
>
#{khxd},
</if>
<if
test=
"pjbzid != null"
>
#{pjbzid},
</if>
<if
test=
"pjbzmc != null"
>
#{pjbzmc},
</if>
<if
test=
"sj != null"
>
#{sj},
</if>
<if
test=
"wtms != null"
>
#{wtms},
</if>
<if
test=
"khfz != null"
>
#{khfz},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"yl1 != null"
>
#{yl1},
</if>
<if
test=
"yl2 != null"
>
#{yl2},
</if>
<if
test=
"yl3 != null"
>
#{yl3},
</if>
<if
test=
"yl4 != null"
>
#{yl4},
</if>
<if
test=
"yl5 != null"
>
#{yl5},
</if>
</trim>
</insert>
<insert
id=
"batchSave"
>
insert into sj_gfjs_zsdwkhpj( id, zb_id, dept_id, nd, zqfw, zqlx, jb, khnr, khxd, pjbzid, pjbzmc, sj, wtms, khfz, remark, yl1, yl2, yl3, yl4, yl5) values
<foreach
item=
"item"
index=
"index"
collection=
"list"
separator=
","
>
( #{item.id}, #{item.zbId}, #{item.deptId}, #{item.nd}, #{item.zqfw}, #{item.zqlx}, #{item.jb}, #{item.khnr}, #{item.khxd}, #{item.pjbzid}, #{item.pjbzmc}, #{item.sj}, #{item.wtms}, #{item.khfz}, #{item.remark}, #{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5})
</foreach>
</insert>
<update
id=
"updateSjGfjsZsdwkhpj"
parameterType=
"SjGfjsZsdwkhpj"
>
update sj_gfjs_zsdwkhpj
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"zbId != null"
>
zb_id = #{zbId},
</if>
<if
test=
"deptId != null"
>
dept_id = #{deptId},
</if>
<if
test=
"nd != null"
>
nd = #{nd},
</if>
<if
test=
"zqfw != null"
>
zqfw = #{zqfw},
</if>
<if
test=
"zqlx != null"
>
zqlx = #{zqlx},
</if>
<if
test=
"jb != null"
>
jb = #{jb},
</if>
<if
test=
"khnr != null"
>
khnr = #{khnr},
</if>
<if
test=
"khxd != null"
>
khxd = #{khxd},
</if>
<if
test=
"pjbzid != null"
>
pjbzid = #{pjbzid},
</if>
<if
test=
"pjbzmc != null"
>
pjbzmc = #{pjbzmc},
</if>
<if
test=
"sj != null"
>
sj = #{sj},
</if>
<if
test=
"wtms != null"
>
wtms = #{wtms},
</if>
<if
test=
"khfz != null"
>
khfz = #{khfz},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"yl1 != null"
>
yl1 = #{yl1},
</if>
<if
test=
"yl2 != null"
>
yl2 = #{yl2},
</if>
<if
test=
"yl3 != null"
>
yl3 = #{yl3},
</if>
<if
test=
"yl4 != null"
>
yl4 = #{yl4},
</if>
<if
test=
"yl5 != null"
>
yl5 = #{yl5},
</if>
</trim>
where id = #{id}
</update>
<update
id=
"pledit"
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
open=
""
close=
""
separator=
";"
>
update sj_gfjs_zsdwkhpj
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"item.sj != null"
>
sj = #{item.sj},
</if>
<if
test=
"item.wtms != null"
>
wtms = #{item.wtms},
</if>
<if
test=
"item.khfz != null"
>
khfz = #{item.khfz},
</if>
</trim>
where id = #{item.id}
</foreach>
</update>
<delete
id=
"deleteSjGfjsZsdwkhpjById"
parameterType=
"Long"
>
delete from sj_gfjs_zsdwkhpj where id = #{id}
</delete>
<delete
id=
"deleteSjGfjsZsdwkhpjByIds"
parameterType=
"String"
>
delete from sj_gfjs_zsdwkhpj where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
qianhe-ydsj/src/main/resources/mapper/SjGfjsZsdwkhpjZbMapper.xml
0 → 100644
View file @
c3ab09d3
<?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=
"com.qianhe.mapper.SjGfjsZsdwkhpjZbMapper"
>
<resultMap
type=
"SjGfjsZsdwkhpjZb"
id=
"SjGfjsZsdwkhpjZbResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"deptId"
column=
"dept_id"
/>
<result
property=
"parentDeptId"
column=
"parent_dept_id"
/>
<result
property=
"nd"
column=
"nd"
/>
<result
property=
"zqfw"
column=
"zqfw"
/>
<result
property=
"zqlx"
column=
"zqlx"
/>
<result
property=
"jb"
column=
"jb"
/>
<result
property=
"deptDfl"
column=
"dept_dfl"
/>
<result
property=
"deptLx"
column=
"dept_lx"
/>
<result
property=
"deptYwfl"
column=
"dept_ywfl"
/>
<result
property=
"djyjzfs"
column=
"djyjzfs"
/>
<result
property=
"djyjkfs"
column=
"djyjkfs"
/>
<result
property=
"djyjkfbl"
column=
"djyjkfbl"
/>
<result
property=
"djyjdf"
column=
"djyjdf"
/>
<result
property=
"sztszfs"
column=
"sztszfs"
/>
<result
property=
"sztskfs"
column=
"sztskfs"
/>
<result
property=
"sztsfbl"
column=
"sztsfbl"
/>
<result
property=
"sztsdf"
column=
"sztsdf"
/>
<result
property=
"glgfzfs"
column=
"glgfzfs"
/>
<result
property=
"glgfkfs"
column=
"glgfkfs"
/>
<result
property=
"glgfbl"
column=
"glgfbl"
/>
<result
property=
"glgfdf"
column=
"glgfdf"
/>
<result
property=
"ywcxzfs"
column=
"ywcxzfs"
/>
<result
property=
"ywcxkfs"
column=
"ywcxkfs"
/>
<result
property=
"ywcxbl"
column=
"ywcxbl"
/>
<result
property=
"ywcxdf"
column=
"ywcxdf"
/>
<result
property=
"sffjxs"
column=
"sffjxs"
/>
<result
property=
"zkf"
column=
"zkf"
/>
<result
property=
"zkfbl"
column=
"zkfbl"
/>
<result
property=
"zdf"
column=
"zdf"
/>
<result
property=
"zhdf"
column=
"zhdf"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"yl1"
column=
"yl1"
/>
<result
property=
"yl2"
column=
"yl2"
/>
<result
property=
"yl3"
column=
"yl3"
/>
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"deptName"
column=
"dept_name"
/>
<result
property=
"parentName"
column=
"parent_name"
/>
<result
property=
"pm"
column=
"pm"
/>
</resultMap>
<sql
id=
"selectSjGfjsZsdwkhpjZbVo"
>
select id,
a.dept_id,
parent_dept_id,
nd,
zqfw,
zqlx,
jb,
d.dept_dfl,
d.dept_lx,
d.dept_ywfl,
djyjzfs,
djyjkfs,
djyjkfbl,
djyjdf,
sztszfs,
sztskfs,
sztsfbl,
sztsdf,
glgfzfs,
glgfkfs,
glgfbl,
glgfdf,
ywcxzfs,
ywcxkfs,
ywcxbl,
ywcxdf,
sffjxs,
zkf,
zkfbl,
zdf,
zhdf,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
remark,
yl1,
yl2,
yl3,
yl4,
yl5,d.dept_name,p.dept_name parent_name, a.pm
from sj_gfjs_zsdwkhpj_zb a
left join sys_dept d on a.dept_id=d.dept_id
left join sys_dept p on a.parent_dept_id=p.dept_id
</sql>
<select
id=
"selectSjGfjsZsdwkhpjZbList"
parameterType=
"SjGfjsZsdwkhpjZb"
resultMap=
"SjGfjsZsdwkhpjZbResult"
>
<include
refid=
"selectSjGfjsZsdwkhpjZbVo"
/>
<where>
<if
test=
"deptId != null "
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},d.ancestors))
</if>
<if
test=
"parentDeptId != null "
>
and parent_dept_id = #{parentDeptId}
</if>
<if
test=
"nd != null and nd != ''"
>
and nd = #{nd}
</if>
<if
test=
"zqfw != null and zqfw != ''"
>
and zqfw = #{zqfw}
</if>
<if
test=
"zqlx != null and zqlx != ''"
>
and zqlx = #{zqlx}
</if>
<if
test=
"jb != null and jb != ''"
>
and jb = #{jb}
</if>
<if
test=
"deptDfl != null and deptDfl != ''"
>
and a.dept_dfl = #{deptDfl}
</if>
<if
test=
"deptLx != null and deptLx != ''"
>
and dept_lx = #{deptLx}
</if>
<if
test=
"deptYwfl != null and deptYwfl != ''"
>
and a.dept_ywfl = #{deptYwfl}
</if>
<if
test=
"djyjzfs != null "
>
and djyjzfs = #{djyjzfs}
</if>
<if
test=
"djyjkfs != null "
>
and djyjkfs = #{djyjkfs}
</if>
<if
test=
"djyjkfbl != null "
>
and djyjkfbl = #{djyjkfbl}
</if>
<if
test=
"djyjdf != null "
>
and djyjdf = #{djyjdf}
</if>
<if
test=
"sztszfs != null "
>
and sztszfs = #{sztszfs}
</if>
<if
test=
"sztskfs != null "
>
and sztskfs = #{sztskfs}
</if>
<if
test=
"sztsfbl != null "
>
and sztsfbl = #{sztsfbl}
</if>
<if
test=
"sztsdf != null "
>
and sztsdf = #{sztsdf}
</if>
<if
test=
"glgfzfs != null "
>
and glgfzfs = #{glgfzfs}
</if>
<if
test=
"glgfkfs != null "
>
and glgfkfs = #{glgfkfs}
</if>
<if
test=
"glgfbl != null "
>
and glgfbl = #{glgfbl}
</if>
<if
test=
"glgfdf != null "
>
and glgfdf = #{glgfdf}
</if>
<if
test=
"ywcxzfs != null "
>
and ywcxzfs = #{ywcxzfs}
</if>
<if
test=
"ywcxkfs != null "
>
and ywcxkfs = #{ywcxkfs}
</if>
<if
test=
"ywcxbl != null "
>
and ywcxbl = #{ywcxbl}
</if>
<if
test=
"ywcxdf != null "
>
and ywcxdf = #{ywcxdf}
</if>
<if
test=
"sffjxs != null "
>
and sffjxs = #{sffjxs}
</if>
<if
test=
"zkf != null "
>
and zkf = #{zkf}
</if>
<if
test=
"zkfbl != null "
>
and zkfbl = #{zkfbl}
</if>
<if
test=
"zdf != null "
>
and zdf = #{zdf}
</if>
<if
test=
"zhdf != null "
>
and zhdf = #{zhdf}
</if>
<if
test=
"yl1 != null and yl1 != ''"
>
and yl1 = #{yl1}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and yl2 = #{yl2}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and yl5 = #{yl5}
</if>
<if
test=
"pm != null and pm != ''"
>
and pm = #{pm}
</if>
<if
test=
"df != null "
>
and zdf
<
= #{df}
</if>
<if
test=
"kfbl != null "
>
and zkfbl >= #{kfbl}
</if>
<if
test=
"fjx != null and fjx.toString()=='1'.toString() "
>
and sffjxs >= #{fjx}
</if>
<if
test=
"fjx != null and fjx.toString()=='0'.toString() "
>
and sffjxs = #{fjx}
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
</where>
order by zhdf desc
</select>
<select
id=
"selectSjGfjsZsdwkhpjZbById"
parameterType=
"Long"
resultMap=
"SjGfjsZsdwkhpjZbResult"
>
<include
refid=
"selectSjGfjsZsdwkhpjZbVo"
/>
where id = #{id}
</select>
<select
id=
"selectSjGfjsZsdwkhpjZb"
resultType=
"com.qianhe.domain.SjGfjsZsdwkhpjZb"
>
select *from sj_gfjs_zsdwkhpj_zb where nd=#{nd} and dept_id=#{deptId} and zqfw=#{zqfw}
</select>
<insert
id=
"insertSjGfjsZsdwkhpjZb"
parameterType=
"SjGfjsZsdwkhpjZb"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_gfjs_zsdwkhpj_zb
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"deptId != null"
>
dept_id,
</if>
<if
test=
"parentDeptId != null"
>
parent_dept_id,
</if>
<if
test=
"nd != null"
>
nd,
</if>
<if
test=
"zqfw != null"
>
zqfw,
</if>
<if
test=
"zqlx != null"
>
zqlx,
</if>
<if
test=
"jb != null"
>
jb,
</if>
<if
test=
"deptDfl != null"
>
dept_dfl,
</if>
<if
test=
"deptLx != null"
>
dept_lx,
</if>
<if
test=
"deptYwfl != null"
>
dept_ywfl,
</if>
<if
test=
"djyjzfs != null"
>
djyjzfs,
</if>
<if
test=
"djyjkfs != null"
>
djyjkfs,
</if>
<if
test=
"djyjkfbl != null"
>
djyjkfbl,
</if>
<if
test=
"djyjdf != null"
>
djyjdf,
</if>
<if
test=
"sztszfs != null"
>
sztszfs,
</if>
<if
test=
"sztskfs != null"
>
sztskfs,
</if>
<if
test=
"sztsfbl != null"
>
sztsfbl,
</if>
<if
test=
"sztsdf != null"
>
sztsdf,
</if>
<if
test=
"glgfzfs != null"
>
glgfzfs,
</if>
<if
test=
"glgfkfs != null"
>
glgfkfs,
</if>
<if
test=
"glgfbl != null"
>
glgfbl,
</if>
<if
test=
"glgfdf != null"
>
glgfdf,
</if>
<if
test=
"ywcxzfs != null"
>
ywcxzfs,
</if>
<if
test=
"ywcxkfs != null"
>
ywcxkfs,
</if>
<if
test=
"ywcxbl != null"
>
ywcxbl,
</if>
<if
test=
"ywcxdf != null"
>
ywcxdf,
</if>
<if
test=
"sffjxs != null"
>
sffjxs,
</if>
<if
test=
"zkf != null"
>
zkf,
</if>
<if
test=
"zkfbl != null"
>
zkfbl,
</if>
<if
test=
"zdf != null"
>
zdf,
</if>
<if
test=
"zhdf != null"
>
zhdf,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"yl1 != null"
>
yl1,
</if>
<if
test=
"yl2 != null"
>
yl2,
</if>
<if
test=
"yl3 != null"
>
yl3,
</if>
<if
test=
"yl4 != null"
>
yl4,
</if>
<if
test=
"yl5 != null"
>
yl5,
</if>
<if
test=
"pm != null"
>
pm,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"deptId != null"
>
#{deptId},
</if>
<if
test=
"parentDeptId != null"
>
#{parentDeptId},
</if>
<if
test=
"nd != null"
>
#{nd},
</if>
<if
test=
"zqfw != null"
>
#{zqfw},
</if>
<if
test=
"zqlx != null"
>
#{zqlx},
</if>
<if
test=
"jb != null"
>
#{jb},
</if>
<if
test=
"deptDfl != null"
>
#{deptDfl},
</if>
<if
test=
"deptLx != null"
>
#{deptLx},
</if>
<if
test=
"deptYwfl != null"
>
#{deptYwfl},
</if>
<if
test=
"djyjzfs != null"
>
#{djyjzfs},
</if>
<if
test=
"djyjkfs != null"
>
#{djyjkfs},
</if>
<if
test=
"djyjkfbl != null"
>
#{djyjkfbl},
</if>
<if
test=
"djyjdf != null"
>
#{djyjdf},
</if>
<if
test=
"sztszfs != null"
>
#{sztszfs},
</if>
<if
test=
"sztskfs != null"
>
#{sztskfs},
</if>
<if
test=
"sztsfbl != null"
>
#{sztsfbl},
</if>
<if
test=
"sztsdf != null"
>
#{sztsdf},
</if>
<if
test=
"glgfzfs != null"
>
#{glgfzfs},
</if>
<if
test=
"glgfkfs != null"
>
#{glgfkfs},
</if>
<if
test=
"glgfbl != null"
>
#{glgfbl},
</if>
<if
test=
"glgfdf != null"
>
#{glgfdf},
</if>
<if
test=
"ywcxzfs != null"
>
#{ywcxzfs},
</if>
<if
test=
"ywcxkfs != null"
>
#{ywcxkfs},
</if>
<if
test=
"ywcxbl != null"
>
#{ywcxbl},
</if>
<if
test=
"ywcxdf != null"
>
#{ywcxdf},
</if>
<if
test=
"sffjxs != null"
>
#{sffjxs},
</if>
<if
test=
"zkf != null"
>
#{zkf},
</if>
<if
test=
"zkfbl != null"
>
#{zkfbl},
</if>
<if
test=
"zdf != null"
>
#{zdf},
</if>
<if
test=
"zhdf != null"
>
#{zhdf},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"yl1 != null"
>
#{yl1},
</if>
<if
test=
"yl2 != null"
>
#{yl2},
</if>
<if
test=
"yl3 != null"
>
#{yl3},
</if>
<if
test=
"yl4 != null"
>
#{yl4},
</if>
<if
test=
"yl5 != null"
>
#{yl5},
</if>
<if
test=
"pm != null"
>
#{pm},
</if>
</trim>
</insert>
<update
id=
"updateSjGfjsZsdwkhpjZb"
parameterType=
"SjGfjsZsdwkhpjZb"
>
update sj_gfjs_zsdwkhpj_zb
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"deptId != null"
>
dept_id = #{deptId},
</if>
<if
test=
"parentDeptId != null"
>
parent_dept_id = #{parentDeptId},
</if>
<if
test=
"nd != null"
>
nd = #{nd},
</if>
<if
test=
"zqfw != null"
>
zqfw = #{zqfw},
</if>
<if
test=
"zqlx != null"
>
zqlx = #{zqlx},
</if>
<if
test=
"jb != null"
>
jb = #{jb},
</if>
<if
test=
"deptDfl != null"
>
dept_dfl = #{deptDfl},
</if>
<if
test=
"deptLx != null"
>
dept_lx = #{deptLx},
</if>
<if
test=
"deptYwfl != null"
>
dept_ywfl = #{deptYwfl},
</if>
<if
test=
"djyjzfs != null"
>
djyjzfs = #{djyjzfs},
</if>
<if
test=
"djyjkfs != null"
>
djyjkfs = #{djyjkfs},
</if>
<if
test=
"djyjkfbl != null"
>
djyjkfbl = #{djyjkfbl},
</if>
<if
test=
"djyjdf != null"
>
djyjdf = #{djyjdf},
</if>
<if
test=
"sztszfs != null"
>
sztszfs = #{sztszfs},
</if>
<if
test=
"sztskfs != null"
>
sztskfs = #{sztskfs},
</if>
<if
test=
"sztsfbl != null"
>
sztsfbl = #{sztsfbl},
</if>
<if
test=
"sztsdf != null"
>
sztsdf = #{sztsdf},
</if>
<if
test=
"glgfzfs != null"
>
glgfzfs = #{glgfzfs},
</if>
<if
test=
"glgfkfs != null"
>
glgfkfs = #{glgfkfs},
</if>
<if
test=
"glgfbl != null"
>
glgfbl = #{glgfbl},
</if>
<if
test=
"glgfdf != null"
>
glgfdf = #{glgfdf},
</if>
<if
test=
"ywcxzfs != null"
>
ywcxzfs = #{ywcxzfs},
</if>
<if
test=
"ywcxkfs != null"
>
ywcxkfs = #{ywcxkfs},
</if>
<if
test=
"ywcxbl != null"
>
ywcxbl = #{ywcxbl},
</if>
<if
test=
"ywcxdf != null"
>
ywcxdf = #{ywcxdf},
</if>
<if
test=
"sffjxs != null"
>
sffjxs = #{sffjxs},
</if>
<if
test=
"zkf != null"
>
zkf = #{zkf},
</if>
<if
test=
"zkfbl != null"
>
zkfbl = #{zkfbl},
</if>
<if
test=
"zdf != null"
>
zdf = #{zdf},
</if>
<if
test=
"zhdf != null"
>
zhdf = #{zhdf},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"yl1 != null"
>
yl1 = #{yl1},
</if>
<if
test=
"yl2 != null"
>
yl2 = #{yl2},
</if>
<if
test=
"yl3 != null"
>
yl3 = #{yl3},
</if>
<if
test=
"yl4 != null"
>
yl4 = #{yl4},
</if>
<if
test=
"yl5 != null"
>
yl5 = #{yl5},
</if>
<if
test=
"pm != null"
>
pm = #{pm},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteSjGfjsZsdwkhpjZbById"
parameterType=
"Long"
>
delete from sj_gfjs_zsdwkhpj_zb where id = #{id}
</delete>
<delete
id=
"deleteSjGfjsZsdwkhpjZbByIds"
parameterType=
"String"
>
delete from sj_gfjs_zsdwkhpj_zb where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
qianhe-ydsj/src/main/resources/static/gfjs_zsdwkhpj.xlsx
0 → 100644
View file @
c3ab09d3
File added
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