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
b418d657
Commit
b418d657
authored
Sep 22, 2025
by
wangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2025-09-22 wj 整体修改3
parent
8b0a4fb0
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
289 additions
and
136 deletions
+289
-136
qianhe-ydsj/src/main/java/com/qianhe/controller/SjFybpController.java
+9
-9
qianhe-ydsj/src/main/java/com/qianhe/controller/SjFybpWhController.java
+0
-6
qianhe-ydsj/src/main/java/com/qianhe/domain/SjFybpWh.java
+9
-99
qianhe-ydsj/src/main/java/com/qianhe/domain/SjFybpZb.java
+5
-4
qianhe-ydsj/src/main/java/com/qianhe/domain/Vo/SjfybpVo.java
+29
-2
qianhe-ydsj/src/main/java/com/qianhe/service/ISjFybpService.java
+1
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjFybpServiceImpl.java
+219
-4
qianhe-ydsj/src/main/resources/mapper/SjFybpMapper.xml
+2
-2
qianhe-ydsj/src/main/resources/mapper/SjFybpWhMapper.xml
+15
-10
No files found.
qianhe-ydsj/src/main/java/com/qianhe/controller/SjFybpController.java
View file @
b418d657
...
@@ -42,7 +42,6 @@ public class SjFybpController extends BaseController
...
@@ -42,7 +42,6 @@ public class SjFybpController extends BaseController
/**
/**
* 查询三基-费用报批列表
* 查询三基-费用报批列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFybp:list')"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SjFybp
sjFybp
)
public
TableDataInfo
list
(
SjFybp
sjFybp
)
{
{
...
@@ -54,7 +53,6 @@ public class SjFybpController extends BaseController
...
@@ -54,7 +53,6 @@ public class SjFybpController extends BaseController
/**
/**
* 导出三基-费用报批列表
* 导出三基-费用报批列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFybp:export')"
)
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SjFybp
sjFybp
)
public
void
export
(
HttpServletResponse
response
,
SjFybp
sjFybp
)
...
@@ -67,7 +65,6 @@ public class SjFybpController extends BaseController
...
@@ -67,7 +65,6 @@ public class SjFybpController extends BaseController
/**
/**
* 获取三基-费用报批详细信息
* 获取三基-费用报批详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFybp:query')"
)
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
{
...
@@ -77,7 +74,6 @@ public class SjFybpController extends BaseController
...
@@ -77,7 +74,6 @@ public class SjFybpController extends BaseController
/**
/**
* 新增三基-费用报批
* 新增三基-费用报批
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFybp:add')"
)
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
SjFybp
sjFybp
)
public
AjaxResult
add
(
@RequestBody
SjFybp
sjFybp
)
...
@@ -88,7 +84,6 @@ public class SjFybpController extends BaseController
...
@@ -88,7 +84,6 @@ public class SjFybpController extends BaseController
/**
/**
* 修改三基-费用报批
* 修改三基-费用报批
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFybp:edit')"
)
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
SjFybp
sjFybp
)
public
AjaxResult
edit
(
@RequestBody
SjFybp
sjFybp
)
...
@@ -99,7 +94,6 @@ public class SjFybpController extends BaseController
...
@@ -99,7 +94,6 @@ public class SjFybpController extends BaseController
/**
/**
* 删除三基-费用报批
* 删除三基-费用报批
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFybp:remove')"
)
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
...
@@ -111,7 +105,6 @@ public class SjFybpController extends BaseController
...
@@ -111,7 +105,6 @@ public class SjFybpController extends BaseController
/**
/**
* 提交
* 提交
*/
*/
// @PreAuthorize("@ss.hasPermi('system:sjFybp:tj')")
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
UPDATE
)
@PostMapping
(
"/tj"
)
@PostMapping
(
"/tj"
)
public
AjaxResult
tj
(
@RequestBody
SjFybp
sjFybp
)
public
AjaxResult
tj
(
@RequestBody
SjFybp
sjFybp
)
...
@@ -169,7 +162,6 @@ public class SjFybpController extends BaseController
...
@@ -169,7 +162,6 @@ public class SjFybpController extends BaseController
/**
/**
* 费用维护
* 费用维护
*/
*/
// @PreAuthorize("@ss.hasPermi('system:sjFybp:fywh')")
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
UPDATE
)
@PostMapping
(
"fywh"
)
@PostMapping
(
"fywh"
)
public
AjaxResult
fywh
(
@RequestBody
SjFybp
sjFybp
)
public
AjaxResult
fywh
(
@RequestBody
SjFybp
sjFybp
)
...
@@ -216,7 +208,6 @@ public class SjFybpController extends BaseController
...
@@ -216,7 +208,6 @@ public class SjFybpController extends BaseController
/**
/**
* 导出三基-费用报批列表
* 导出三基-费用报批列表
*/
*/
// @PreAuthorize("@ss.hasPermi('system:sjFybp:export')")
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"三基-费用报批"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/exportTj"
)
@PostMapping
(
"/exportTj"
)
public
void
exportTj
(
HttpServletResponse
response
,
SjFybp
sjFybp
)
public
void
exportTj
(
HttpServletResponse
response
,
SjFybp
sjFybp
)
...
@@ -231,4 +222,13 @@ public class SjFybpController extends BaseController
...
@@ -231,4 +222,13 @@ public class SjFybpController extends BaseController
// ExcelUtil<SjfybpVo> util = new ExcelUtil<SjfybpVo>(SjfybpVo.class);
// ExcelUtil<SjfybpVo> util = new ExcelUtil<SjfybpVo>(SjfybpVo.class);
// util.exportExcel(response, voList, "统计");
// util.exportExcel(response, voList, "统计");
}
}
/** 直属单位三基建设费用统计表 */
@GetMapping
(
"/zsdwNdfytj"
)
public
List
<
SjfybpVo
>
zsdwNdfytj
(
SjFybp
sjFybp
)
{
List
<
SjfybpVo
>
list
=
sjFybpService
.
zsdwNdfytj
(
sjFybp
);
return
list
;
}
}
}
qianhe-ydsj/src/main/java/com/qianhe/controller/SjFybpWhController.java
View file @
b418d657
...
@@ -37,7 +37,6 @@ public class SjFybpWhController extends BaseController
...
@@ -37,7 +37,6 @@ public class SjFybpWhController extends BaseController
/**
/**
* 查询三基-费用维护列表
* 查询三基-费用维护列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFybpWh:list')"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SjFybpWh
sjFybpWh
)
public
TableDataInfo
list
(
SjFybpWh
sjFybpWh
)
{
{
...
@@ -49,7 +48,6 @@ public class SjFybpWhController extends BaseController
...
@@ -49,7 +48,6 @@ public class SjFybpWhController extends BaseController
/**
/**
* 导出三基-费用维护列表
* 导出三基-费用维护列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFybpWh:export')"
)
@Log
(
title
=
"三基-费用维护"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"三基-费用维护"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SjFybpWh
sjFybpWh
)
public
void
export
(
HttpServletResponse
response
,
SjFybpWh
sjFybpWh
)
...
@@ -62,7 +60,6 @@ public class SjFybpWhController extends BaseController
...
@@ -62,7 +60,6 @@ public class SjFybpWhController extends BaseController
/**
/**
* 获取三基-费用维护详细信息
* 获取三基-费用维护详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFybpWh:query')"
)
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
{
...
@@ -72,7 +69,6 @@ public class SjFybpWhController extends BaseController
...
@@ -72,7 +69,6 @@ public class SjFybpWhController extends BaseController
/**
/**
* 新增三基-费用维护
* 新增三基-费用维护
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFybpWh:add')"
)
@Log
(
title
=
"三基-费用维护"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"三基-费用维护"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
SjFybpWh
sjFybpWh
)
public
AjaxResult
add
(
@RequestBody
SjFybpWh
sjFybpWh
)
...
@@ -83,7 +79,6 @@ public class SjFybpWhController extends BaseController
...
@@ -83,7 +79,6 @@ public class SjFybpWhController extends BaseController
/**
/**
* 修改三基-费用维护
* 修改三基-费用维护
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFybpWh:edit')"
)
@Log
(
title
=
"三基-费用维护"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"三基-费用维护"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
SjFybpWh
sjFybpWh
)
public
AjaxResult
edit
(
@RequestBody
SjFybpWh
sjFybpWh
)
...
@@ -94,7 +89,6 @@ public class SjFybpWhController extends BaseController
...
@@ -94,7 +89,6 @@ public class SjFybpWhController extends BaseController
/**
/**
* 删除三基-费用维护
* 删除三基-费用维护
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFybpWh:remove')"
)
@Log
(
title
=
"三基-费用维护"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"三基-费用维护"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
...
...
qianhe-ydsj/src/main/java/com/qianhe/domain/SjFybpWh.java
View file @
b418d657
package
com
.
qianhe
.
domain
;
package
com
.
qianhe
.
domain
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.qianhe.common.annotation.Excel
;
import
com.qianhe.common.annotation.Excel
;
...
@@ -12,6 +14,7 @@ import com.qianhe.common.core.domain.BaseEntity;
...
@@ -12,6 +14,7 @@ import com.qianhe.common.core.domain.BaseEntity;
* @author qianhe
* @author qianhe
* @date 2024-07-05
* @date 2024-07-05
*/
*/
@Data
public
class
SjFybpWh
extends
BaseEntity
public
class
SjFybpWh
extends
BaseEntity
{
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -23,16 +26,16 @@ public class SjFybpWh extends BaseEntity
...
@@ -23,16 +26,16 @@ public class SjFybpWh extends BaseEntity
@Excel
(
name
=
"费用报批id"
)
@Excel
(
name
=
"费用报批id"
)
private
Long
fybpId
;
private
Long
fybpId
;
/** 使用日期 */
/** 使用日期
年份
*/
@Excel
(
name
=
"使用日期"
)
@Excel
(
name
=
"使用日期
年份
"
)
private
String
syrq
;
private
String
syrq
;
/** 费用金额 */
/** 费用金额 */
@Excel
(
name
=
"费用金额"
)
@Excel
(
name
=
"费用金额"
)
private
BigDecimal
syje
;
private
BigDecimal
syje
;
/** 预留1 */
/** 预留1
季度
*/
@Excel
(
name
=
"预留1"
)
@Excel
(
name
=
"预留1
季度
"
)
private
String
yl1
;
private
String
yl1
;
/** 预留2 */
/** 预留2 */
...
@@ -51,101 +54,8 @@ public class SjFybpWh extends BaseEntity
...
@@ -51,101 +54,8 @@ public class SjFybpWh extends BaseEntity
@Excel
(
name
=
"预留5"
)
@Excel
(
name
=
"预留5"
)
private
String
yl5
;
private
String
yl5
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setFybpId
(
Long
fybpId
)
{
this
.
fybpId
=
fybpId
;
}
public
Long
getFybpId
()
{
return
fybpId
;
}
public
void
setSyrq
(
String
syrq
)
{
this
.
syrq
=
syrq
;
}
public
String
getSyrq
()
{
return
syrq
;
}
public
void
setSyje
(
BigDecimal
syje
)
{
this
.
syje
=
syje
;
}
public
BigDecimal
getSyje
()
{
return
syje
;
}
public
void
setYl1
(
String
yl1
)
{
this
.
yl1
=
yl1
;
}
public
String
getYl1
()
{
return
yl1
;
}
public
void
setYl2
(
String
yl2
)
{
this
.
yl2
=
yl2
;
}
public
String
getYl2
()
{
return
yl2
;
}
public
void
setYl3
(
String
yl3
)
{
this
.
yl3
=
yl3
;
}
public
String
getYl3
()
{
return
yl3
;
}
public
void
setYl4
(
String
yl4
)
{
this
.
yl4
=
yl4
;
}
public
String
getYl4
()
{
return
yl4
;
}
public
void
setYl5
(
String
yl5
)
{
this
.
yl5
=
yl5
;
}
public
String
getYl5
()
private
String
zbId
;
//主表id
{
private
String
fylx
;
//类型
return
yl5
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"fybpId"
,
getFybpId
())
.
append
(
"syrq"
,
getSyrq
())
.
append
(
"syje"
,
getSyje
())
.
append
(
"remark"
,
getRemark
())
.
append
(
"yl1"
,
getYl1
())
.
append
(
"yl2"
,
getYl2
())
.
append
(
"yl3"
,
getYl3
())
.
append
(
"yl4"
,
getYl4
())
.
append
(
"yl5"
,
getYl5
())
.
toString
();
}
}
}
qianhe-ydsj/src/main/java/com/qianhe/domain/SjFybpZb.java
View file @
b418d657
...
@@ -95,10 +95,11 @@ public class SjFybpZb extends BaseEntity
...
@@ -95,10 +95,11 @@ public class SjFybpZb extends BaseEntity
private
String
spcx
;
private
String
spcx
;
private
String
tqbz
;
private
String
tqbz
;
//参考标准 提取标准 文字
private
String
jsbz
;
private
String
jsbz
;
//参考标准 计算标准 计算结果 文字
private
String
jl
;
private
String
jl
;
//参考标准 结论 文字
private
Boolean
jlflag
;
private
Boolean
jlflag
;
//参考标准 结论 是否符合标准
private
String
jsbzSum
;
//参考标准 计算标准 计算结果
}
}
qianhe-ydsj/src/main/java/com/qianhe/domain/Vo/SjfybpVo.java
View file @
b418d657
...
@@ -9,7 +9,7 @@ import java.math.BigDecimal;
...
@@ -9,7 +9,7 @@ import java.math.BigDecimal;
public
class
SjfybpVo
{
public
class
SjfybpVo
{
@Excel
(
name
=
"单位"
)
@Excel
(
name
=
"单位"
)
private
String
deptName
;
private
String
deptName
;
//单位名称
private
String
deptId
;
private
String
deptId
;
...
@@ -26,6 +26,33 @@ public class SjfybpVo {
...
@@ -26,6 +26,33 @@ public class SjfybpVo {
private
BigDecimal
xmje
;
private
BigDecimal
xmje
;
//已使用金额总和
//已使用金额总和
@Excel
(
name
=
"已用费用"
)
@Excel
(
name
=
"已用费用"
)
private
BigDecimal
ysyje
;
private
BigDecimal
ysyje
;
//实际提取额度(万元)
private
String
id
;
//主表id
private
String
fyrq
;
//费用日期 年
private
String
abztqzded
;
//按标准提取最低额度(万元)
private
String
jd
;
//季度
//三基标杆打造
private
String
xmzc1
;
//分项1 支出费用(万元)
private
String
xmzcmx1
;
//分项1 支出明细 文字描述
//三个最强全员练兵
private
String
xmzc2
;
//分项2 支出费用(万元)
private
String
xmzcmx2
;
//分项2 支出明细 文字描述
//三标建设5S管理
private
String
xmzc3
;
//分项3 支出费用(万元)
private
String
xmzcmx3
;
//分项3 支出明细 文字描述
//基层班站建设
private
String
xmzc4
;
//分项4 支出费用(万元)
private
String
xmzcmx4
;
//分项4 支出明细 文字描述
//其他
private
String
xmzc5
;
//分项5 支出费用(万元)
private
String
xmzcmx5
;
//分项5 支出明细 文字描述
}
}
qianhe-ydsj/src/main/java/com/qianhe/service/ISjFybpService.java
View file @
b418d657
...
@@ -75,6 +75,7 @@ public interface ISjFybpService
...
@@ -75,6 +75,7 @@ public interface ISjFybpService
SjFybp
getFygzById
(
Long
id
);
SjFybp
getFygzById
(
Long
id
);
List
<
SjFybp
>
selectSjFybpCtList
(
SjFybp
sjFybp
);
List
<
SjFybp
>
selectSjFybpCtList
(
SjFybp
sjFybp
);
List
<
SjfybpVo
>
zsdwNdfytj
(
SjFybp
sjFybp
);
}
}
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjFybpServiceImpl.java
View file @
b418d657
package
com
.
qianhe
.
service
.
impl
;
package
com
.
qianhe
.
service
.
impl
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.util.List
;
import
java.util.List
;
import
com.qianhe.common.annotation.DataScope
;
import
com.qianhe.common.annotation.DataScope
;
...
@@ -8,22 +9,23 @@ import com.qianhe.common.core.domain.AjaxResult;
...
@@ -8,22 +9,23 @@ import com.qianhe.common.core.domain.AjaxResult;
import
com.qianhe.common.core.domain.entity.SysDept
;
import
com.qianhe.common.core.domain.entity.SysDept
;
import
com.qianhe.common.utils.DateUtils
;
import
com.qianhe.common.utils.DateUtils
;
import
com.qianhe.common.utils.SecurityUtils
;
import
com.qianhe.common.utils.SecurityUtils
;
import
com.qianhe.domain.*
;
import
com.qianhe.domain.Vo.SjfybpVo
;
import
com.qianhe.domain.Vo.SjfybpVo
;
import
com.qianhe.domain.WdLxwh
;
import
com.qianhe.domain.WdWdxx
;
import
com.qianhe.mapper.SjFybpWhMapper
;
import
com.qianhe.mapper.SjFybpWhMapper
;
import
com.qianhe.mapper.WdWdxxMapper
;
import
com.qianhe.mapper.WdWdxxMapper
;
import
com.qianhe.system.domain.SysDeptCb
;
import
com.qianhe.system.mapper.SysDeptCbMapper
;
import
lombok.Data
;
import
lombok.Data
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
com.qianhe.common.utils.StringUtils
;
import
com.qianhe.common.utils.StringUtils
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
com.qianhe.domain.SjFybpWh
;
import
com.qianhe.mapper.SjFybpMapper
;
import
com.qianhe.mapper.SjFybpMapper
;
import
com.qianhe.domain.SjFybp
;
import
com.qianhe.service.ISjFybpService
;
import
com.qianhe.service.ISjFybpService
;
/**
/**
...
@@ -43,6 +45,9 @@ public class SjFybpServiceImpl implements ISjFybpService
...
@@ -43,6 +45,9 @@ public class SjFybpServiceImpl implements ISjFybpService
@Autowired
@Autowired
private
WdWdxxMapper
wdWdxxMapper
;
private
WdWdxxMapper
wdWdxxMapper
;
@Autowired
private
SysDeptCbMapper
sysDeptCbMapper
;
/**
/**
* 查询三基-费用报批
* 查询三基-费用报批
*
*
...
@@ -263,4 +268,214 @@ public class SjFybpServiceImpl implements ISjFybpService
...
@@ -263,4 +268,214 @@ public class SjFybpServiceImpl implements ISjFybpService
}
}
}
}
}
}
/** 直属单位三基建设费用统计表 */
@Override
@DataScope
(
deptAlias
=
"d"
)
public
List
<
SjfybpVo
>
zsdwNdfytj
(
SjFybp
sjFybp
)
{
List
<
SjfybpVo
>
vs
=
sjFybpMapper
.
tjtbByDept
(
sjFybp
);
List
<
SjFybpWh
>
whs
=
sjFybpWhMapper
.
selectSjFybpWhList
(
new
SjFybpWh
());
//查询所有费用维护表数据
//return sjFybpMapper.selectSjFybpCtList(sjFybp);
//季度
String
[]
jddms
=
{
"一"
,
"二"
,
"三"
,
"四"
,
"合计"
};
String
[]
jdmcs
=
{
"一季度"
,
"二季度"
,
"三季度"
,
"四季度"
,
"合计"
};
List
<
SjfybpVo
>
rtnList
=
new
ArrayList
<>();
for
(
SjfybpVo
v:
vs
){
String
zbid
=
v
.
getId
();
//主表id
String
fyrq
=
v
.
getFyrq
();
//日期 年
//根据单位 年度 查询参考标准 (可选参数 fyje
SjFybpZb
ckbz_qry
=
new
SjFybpZb
();
ckbz_qry
.
setFyrq
(
v
.
getFyrq
());
ckbz_qry
.
setDeptId
(
v
.
getDeptId
());
SjFybpZb
ckbz
=
getDeptCkbz
(
ckbz_qry
);
for
(
int
i
=
0
;
i
<
jddms
.
length
;
i
++){
String
jddm
=
jddms
[
i
];
String
jdmc
=
jdmcs
[
i
];
SjfybpVo
r
=
new
SjfybpVo
();
BeanUtils
.
copyProperties
(
v
,
r
);
r
.
setJd
(
jdmc
);
r
.
setAbztqzded
(
ckbz
.
getJsbzSum
());
//三基标杆打造
List
<
SjFybpWh
>
whs1
=
whs
.
stream
().
filter
(
e
->
zbid
.
equals
(
e
.
getZbId
())
&&
fyrq
.
equals
(
e
.
getSyrq
())
&&
jddm
.
equals
(
e
.
getYl1
())
&&
"三基标杆打造"
.
equals
(
e
.
getFylx
())).
collect
(
Collectors
.
toList
());
String
sum1
=
whs1
.
stream
().
map
(
SjFybpWh:
:
getSyje
).
filter
(
Objects:
:
nonNull
)
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
).
setScale
(
2
,
RoundingMode
.
HALF_UP
).
toString
();
List
<
String
>
zcmx1
=
whs1
.
stream
().
map
(
SjFybpWh:
:
getRemark
).
collect
(
Collectors
.
toList
());
r
.
setXmzc1
(
sum1
);
r
.
setXmzcmx1
(
String
.
join
(
";"
,
zcmx1
));
if
(
"合计"
.
equals
(
jdmc
)){
r
.
setXmzcmx1
(
null
);
}
//三个最强全员练兵
List
<
SjFybpWh
>
whs2
=
whs
.
stream
().
filter
(
e
->
zbid
.
equals
(
e
.
getZbId
())
&&
fyrq
.
equals
(
e
.
getSyrq
())
&&
jddm
.
equals
(
e
.
getYl1
())
&&
"三个最强全员练兵"
.
equals
(
e
.
getFylx
())).
collect
(
Collectors
.
toList
());
String
sum2
=
whs2
.
stream
().
map
(
SjFybpWh:
:
getSyje
).
filter
(
Objects:
:
nonNull
)
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
).
setScale
(
2
,
RoundingMode
.
HALF_UP
).
toString
();
List
<
String
>
zcmx2
=
whs2
.
stream
().
map
(
SjFybpWh:
:
getRemark
).
collect
(
Collectors
.
toList
());
r
.
setXmzc2
(
sum2
);
r
.
setXmzcmx2
(
String
.
join
(
";"
,
zcmx2
));
if
(
"合计"
.
equals
(
jdmc
)){
r
.
setXmzcmx2
(
null
);
}
//三标建设5S管理
List
<
SjFybpWh
>
whs3
=
whs
.
stream
().
filter
(
e
->
zbid
.
equals
(
e
.
getZbId
())
&&
fyrq
.
equals
(
e
.
getSyrq
())
&&
jddm
.
equals
(
e
.
getYl1
())
&&
"三标建设5S管理"
.
equals
(
e
.
getFylx
())).
collect
(
Collectors
.
toList
());
String
sum3
=
whs3
.
stream
().
map
(
SjFybpWh:
:
getSyje
).
filter
(
Objects:
:
nonNull
)
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
).
setScale
(
2
,
RoundingMode
.
HALF_UP
).
toString
();
List
<
String
>
zcmx3
=
whs3
.
stream
().
map
(
SjFybpWh:
:
getRemark
).
collect
(
Collectors
.
toList
());
r
.
setXmzc3
(
sum3
);
r
.
setXmzcmx3
(
String
.
join
(
";"
,
zcmx3
));
if
(
"合计"
.
equals
(
jdmc
)){
r
.
setXmzcmx3
(
null
);
}
//基层班站建设
List
<
SjFybpWh
>
whs4
=
whs
.
stream
().
filter
(
e
->
zbid
.
equals
(
e
.
getZbId
())
&&
fyrq
.
equals
(
e
.
getSyrq
())
&&
jddm
.
equals
(
e
.
getYl1
())
&&
"基层班站建设"
.
equals
(
e
.
getFylx
())).
collect
(
Collectors
.
toList
());
String
sum4
=
whs4
.
stream
().
map
(
SjFybpWh:
:
getSyje
).
filter
(
Objects:
:
nonNull
)
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
).
setScale
(
2
,
RoundingMode
.
HALF_UP
).
toString
();
List
<
String
>
zcmx4
=
whs4
.
stream
().
map
(
SjFybpWh:
:
getRemark
).
collect
(
Collectors
.
toList
());
r
.
setXmzc4
(
sum4
);
r
.
setXmzcmx4
(
String
.
join
(
";"
,
zcmx4
));
if
(
"合计"
.
equals
(
jdmc
)){
r
.
setXmzcmx4
(
null
);
}
//其他
List
<
SjFybpWh
>
whs5
=
whs
.
stream
().
filter
(
e
->
zbid
.
equals
(
e
.
getZbId
())
&&
fyrq
.
equals
(
e
.
getSyrq
())
&&
jddm
.
equals
(
e
.
getYl1
())
&&
"其他"
.
equals
(
e
.
getFylx
())).
collect
(
Collectors
.
toList
());
String
sum5
=
whs5
.
stream
().
map
(
SjFybpWh:
:
getSyje
).
filter
(
Objects:
:
nonNull
)
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
).
setScale
(
2
,
RoundingMode
.
HALF_UP
).
toString
();
List
<
String
>
zcmx5
=
whs5
.
stream
().
map
(
SjFybpWh:
:
getRemark
).
collect
(
Collectors
.
toList
());
r
.
setXmzc5
(
sum5
);
r
.
setXmzcmx5
(
String
.
join
(
";"
,
zcmx5
));
if
(
"合计"
.
equals
(
jdmc
)){
r
.
setXmzcmx5
(
null
);
}
rtnList
.
add
(
r
);
}
}
return
rtnList
;
}
//根据单位 年度 查询参考标准 (可选参数 fyje
public
SjFybpZb
getDeptCkbz
(
SjFybpZb
sjFybpZb
){
SysDeptCb
sysDeptCb
=
new
SysDeptCb
();
sysDeptCb
.
setNd
(
sjFybpZb
.
getFyrq
());
sysDeptCb
.
setDeptId
(
sjFybpZb
.
getDeptId
());
SysDeptCb
deptCb
=
sysDeptCbMapper
.
getInfoBydeptId
(
sysDeptCb
);
if
(
deptCb
==
null
){
sjFybpZb
.
setJl
(
"该单位基础信息未维护,请到部门管理中进行设置!"
);
}
else
{
if
(
StringUtils
.
isNotEmpty
(
deptCb
.
getDwlx
()
)){
String
dwlx
=
deptCb
.
getDwlx
();
BigDecimal
jyqlhjysr
=
deptCb
.
getJyqlhjysr
();
//万吨 换算成吨
BigDecimal
jcrysl
=
BigDecimal
.
valueOf
(
deptCb
.
getJcrysl
());
BigDecimal
jcdwsl
=
BigDecimal
.
valueOf
(
deptCb
.
getJcdwsl
());
BigDecimal
yxbzsl
=
BigDecimal
.
valueOf
(
deptCb
.
getYxbzsl
());
BigDecimal
fyje
=
sjFybpZb
.
getFyje
()!=
null
?
sjFybpZb
.
getFyje
():
new
BigDecimal
(
0
);
fyje
=
fyje
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
if
(
"油气生产单位"
.
equals
(
dwlx
)){
//计算标准
jyqlhjysr
=
deptCb
.
getJyqlhjysr
().
multiply
(
new
BigDecimal
(
10000
));
//万吨 换算成吨
BigDecimal
jys
=
jyqlhjysr
.
multiply
(
new
BigDecimal
(
2
)).
multiply
(
new
BigDecimal
(
0.3
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
rys
=
jcrysl
.
multiply
(
new
BigDecimal
(
1000
)).
multiply
(
new
BigDecimal
(
0.3
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
dws
=
jcdwsl
.
multiply
(
new
BigDecimal
(
150000
)).
multiply
(
new
BigDecimal
(
0.2
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
bzs
=
yxbzsl
.
multiply
(
new
BigDecimal
(
20000
)).
multiply
(
new
BigDecimal
(
0.2
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
sum
=
jys
.
add
(
rys
).
add
(
dws
).
add
(
bzs
);
sum
=
sum
.
divide
(
new
BigDecimal
(
10000
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
if
(
fyje
.
compareTo
(
sum
)>-
1
){
sjFybpZb
.
setJl
(
"费用总额"
+
fyje
+
"万元不低于"
+
sum
+
"万元。"
);
sjFybpZb
.
setJlflag
(
true
);
}
else
{
sjFybpZb
.
setJl
(
"费用总额"
+
fyje
+
"万元低于"
+
sum
+
"万元。"
);
sjFybpZb
.
setJlflag
(
false
);
}
sjFybpZb
.
setJsbzSum
(
sum
.
toString
());
sjFybpZb
.
setJsbz
(
"计算标准为:"
+
deptCb
.
getJyqlhjysr
().
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
)+
"万吨*2元/吨*30%+"
+
jcrysl
+
"*1000元/人*30%+"
+
jcdwsl
+
"*15万元/单位*20%+"
+
yxbzsl
+
"*2万元/班站*20%="
+
sum
);
sjFybpZb
.
setTqbz
(
"交油气量(万吨)×2 元/吨×30%+基层人员数量×1000 元/人×30%+\n"
+
"基层单位数量×15 万元/单位×20%+一线班站数量×2 万元/班站×20%"
);
}
else
if
(
"专业化单位"
.
equals
(
dwlx
))
{
//计算标准
if
(
yxbzsl
.
equals
(
new
BigDecimal
(
0
))){
BigDecimal
jys
=
jyqlhjysr
.
multiply
(
new
BigDecimal
(
0.0001
)).
multiply
(
new
BigDecimal
(
0.3
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
rys
=
jcrysl
.
multiply
(
new
BigDecimal
(
1000
)).
multiply
(
new
BigDecimal
(
0.4
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
dws
=
jcdwsl
.
multiply
(
new
BigDecimal
(
150000
)).
multiply
(
new
BigDecimal
(
0.3
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
sum
=
jys
.
add
(
rys
).
add
(
dws
);
sum
=
sum
.
divide
(
new
BigDecimal
(
10000
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
if
(
fyje
.
compareTo
(
sum
)>-
1
){
sjFybpZb
.
setJl
(
"费用总额"
+
fyje
+
"万元不低于"
+
sum
+
"万元。"
);
sjFybpZb
.
setJlflag
(
true
);
}
else
{
sjFybpZb
.
setJl
(
"费用总额"
+
fyje
+
"万元低于"
+
sum
+
"万元。"
);
sjFybpZb
.
setJlflag
(
false
);
}
sjFybpZb
.
setJsbzSum
(
sum
.
toString
());
sjFybpZb
.
setJsbz
(
"计算标准为:"
+
deptCb
.
getJyqlhjysr
().
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
)+
"万吨*2元/吨*30%+"
+
jcrysl
+
"*1000元/人*40%+"
+
jcdwsl
+
"*15万元/单位*30%="
+
sum
);
sjFybpZb
.
setTqbz
(
"经营收入(万元)×1‰×30%+基层人员数量×1000 元/人×40%+基层\n"
+
"单位数量×15 万元/单位×30%"
);
}
else
{
BigDecimal
jys
=
jyqlhjysr
.
multiply
(
new
BigDecimal
(
0.0001
)).
multiply
(
new
BigDecimal
(
0.3
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
rys
=
jcrysl
.
multiply
(
new
BigDecimal
(
1000
)).
multiply
(
new
BigDecimal
(
0.3
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
dws
=
jcdwsl
.
multiply
(
new
BigDecimal
(
150000
)).
multiply
(
new
BigDecimal
(
0.2
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
bzs
=
yxbzsl
.
multiply
(
new
BigDecimal
(
20000
)).
multiply
(
new
BigDecimal
(
0.2
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
sum
=
jys
.
add
(
rys
).
add
(
dws
).
add
(
bzs
);
sum
=
sum
.
divide
(
new
BigDecimal
(
10000
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
if
(
fyje
.
compareTo
(
sum
)>-
1
){
sjFybpZb
.
setJl
(
"费用总额"
+
fyje
+
"万元不低于"
+
sum
+
"万元。"
);
sjFybpZb
.
setJlflag
(
true
);
}
else
{
sjFybpZb
.
setJl
(
"费用总额"
+
fyje
+
"万元低于"
+
sum
+
"万元。"
);
sjFybpZb
.
setJlflag
(
false
);
}
sjFybpZb
.
setJsbzSum
(
sum
.
toString
());
sjFybpZb
.
setJsbz
(
"计算标准为:"
+
deptCb
.
getJyqlhjysr
().
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
)+
"万吨*2元/吨*30%+"
+
jcrysl
+
"*1000元/人*30%+"
+
jcdwsl
+
"*15万元/单位*20%+"
+
yxbzsl
+
"*2万元/班站*20%="
+
sum
);
sjFybpZb
.
setTqbz
(
"经营收入(万元)×1‰×30%+基层人员数量×1000 元/人×30%+基层\n"
+
"单位数量×15 万元/单位×20%+一线班站数量×2 万元/班站×20%"
);
}
}
else
if
(
"科研监督单位"
.
equals
(
dwlx
))
{
BigDecimal
jys
=
jyqlhjysr
.
multiply
(
new
BigDecimal
(
0.0001
)).
multiply
(
new
BigDecimal
(
0.3
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
rys
=
jcrysl
.
multiply
(
new
BigDecimal
(
1000
)).
multiply
(
new
BigDecimal
(
0.4
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
dws
=
jcdwsl
.
multiply
(
new
BigDecimal
(
50000
)).
multiply
(
new
BigDecimal
(
0.3
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
sum
=
jys
.
add
(
rys
).
add
(
dws
);
sum
=
sum
.
divide
(
new
BigDecimal
(
10000
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
if
(
fyje
.
compareTo
(
sum
)>-
1
){
sjFybpZb
.
setJl
(
"费用总额"
+
fyje
+
"万元不低于"
+
sum
+
"万元。"
);
sjFybpZb
.
setJlflag
(
true
);
}
else
{
sjFybpZb
.
setJl
(
"费用总额"
+
fyje
+
"万元低于"
+
sum
+
"万元。"
);
sjFybpZb
.
setJlflag
(
false
);
}
sjFybpZb
.
setJsbzSum
(
sum
.
toString
());
sjFybpZb
.
setJsbz
(
"计算标准为:"
+
deptCb
.
getJyqlhjysr
().
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
)+
"万吨*2元/吨*30%+"
+
jcrysl
+
"*1000元/人*40%+"
+
jcdwsl
+
"*5万元/单位*30%="
+
sum
);
sjFybpZb
.
setTqbz
(
"经营收入(万元)×1‰×30%+基层人员数量×1000 元/人×40%+基层\n"
+
"单位数量×5 万元/单位×30%"
);
}
}
}
return
sjFybpZb
;
}
}
}
qianhe-ydsj/src/main/resources/mapper/SjFybpMapper.xml
View file @
b418d657
...
@@ -195,7 +195,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -195,7 +195,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
</select>
<select
id=
"tjtbByDept"
resultType=
"com.qianhe.domain.Vo.SjfybpVo"
>
<select
id=
"tjtbByDept"
resultType=
"com.qianhe.domain.Vo.SjfybpVo"
>
select
select
a.dept_id,d.dept_name,IFNULL(count(b.id),0) zsl,IFNULL(sum(b.fyje),0) xmje, IFNULL(sum(b.ysyje ), 0) ysyje
a.dept_id,d.dept_name,
a.id,a.fyrq,
IFNULL(count(b.id),0) zsl,IFNULL(sum(b.fyje),0) xmje, IFNULL(sum(b.ysyje ), 0) ysyje
from sj_fybp_zb a
from sj_fybp_zb a
left join sj_fybp b on a.id = b.zb_id
left join sj_fybp b on a.id = b.zb_id
...
@@ -207,7 +207,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -207,7 +207,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fylx != null and fylx != ''"
>
and b.fylx = #{fylx}
</if>
<if
test=
"fylx != null and fylx != ''"
>
and b.fylx = #{fylx}
</if>
<!-- 数据范围过滤 -->
<!-- 数据范围过滤 -->
${params.dataScope}
${params.dataScope}
group by a.dept_id,d.dept_name
group by a.dept_id,d.dept_name
,a.id,a.fyrq
</select>
</select>
<select
id=
"selectSjFybpCtList"
resultMap=
"SjFybpResult"
>
<select
id=
"selectSjFybpCtList"
resultMap=
"SjFybpResult"
>
select
select
...
...
qianhe-ydsj/src/main/resources/mapper/SjFybpWhMapper.xml
View file @
b418d657
...
@@ -15,29 +15,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -15,29 +15,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"yl3"
column=
"yl3"
/>
<result
property=
"yl3"
column=
"yl3"
/>
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"zbId"
column=
"zb_id"
/>
<result
property=
"fylx"
column=
"fylx"
/>
</resultMap>
</resultMap>
<sql
id=
"selectSjFybpWhVo"
>
<sql
id=
"selectSjFybpWhVo"
>
select id, fybp_id, syrq, syje, remark, yl1, yl2, yl3, yl4, yl5 from sj_fybp_wh
select w.id, w.fybp_id, w.syrq, w.syje, w.remark, w.yl1, w.yl2, w.yl3, w.yl4, w.yl5,
f.zb_id, f.fylx
from sj_fybp_wh w
left join sj_fybp f on w.fybp_id = f.id
</sql>
</sql>
<select
id=
"selectSjFybpWhList"
parameterType=
"SjFybpWh"
resultMap=
"SjFybpWhResult"
>
<select
id=
"selectSjFybpWhList"
parameterType=
"SjFybpWh"
resultMap=
"SjFybpWhResult"
>
<include
refid=
"selectSjFybpWhVo"
/>
<include
refid=
"selectSjFybpWhVo"
/>
<where>
<where>
<if
test=
"fybpId != null "
>
and fybp_id = #{fybpId}
</if>
<if
test=
"fybpId != null "
>
and
w.
fybp_id = #{fybpId}
</if>
<if
test=
"syrq != null and syrq != ''"
>
and syrq = #{syrq}
</if>
<if
test=
"syrq != null and syrq != ''"
>
and
w.
syrq = #{syrq}
</if>
<if
test=
"syje != null "
>
and syje = #{syje}
</if>
<if
test=
"syje != null "
>
and
w.
syje = #{syje}
</if>
<if
test=
"yl1 != null and yl1 != ''"
>
and yl1 = #{yl1}
</if>
<if
test=
"yl1 != null and yl1 != ''"
>
and
w.
yl1 = #{yl1}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and yl2 = #{yl2}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and
w.
yl2 = #{yl2}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and yl3 = #{yl3}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and
w.
yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and yl4 = #{yl4}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and
w.
yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and yl5 = #{yl5}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and
w.
yl5 = #{yl5}
</if>
</where>
</where>
</select>
</select>
<select
id=
"selectSjFybpWhById"
parameterType=
"Long"
resultMap=
"SjFybpWhResult"
>
<select
id=
"selectSjFybpWhById"
parameterType=
"Long"
resultMap=
"SjFybpWhResult"
>
<include
refid=
"selectSjFybpWhVo"
/>
<include
refid=
"selectSjFybpWhVo"
/>
where id = #{id}
where
w.
id = #{id}
</select>
</select>
<insert
id=
"insertSjFybpWh"
parameterType=
"SjFybpWh"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
<insert
id=
"insertSjFybpWh"
parameterType=
"SjFybpWh"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment