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
877579f6
Commit
877579f6
authored
Jul 16, 2024
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
383f5927
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
167 additions
and
51 deletions
+167
-51
qianhe-ydsj/src/main/java/com/qianhe/controller/SjFybpController.java
+11
-11
qianhe-ydsj/src/main/java/com/qianhe/controller/SjLhscController.java
+23
-0
qianhe-ydsj/src/main/java/com/qianhe/domain/Vo/SjfybpVo.java
+11
-5
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjFybpMapper.java
+5
-2
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjLhscMapper.java
+2
-0
qianhe-ydsj/src/main/java/com/qianhe/service/ISjFybpService.java
+6
-2
qianhe-ydsj/src/main/java/com/qianhe/service/ISjLhscService.java
+4
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjFybpServiceImpl.java
+25
-4
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjLhscServiceImpl.java
+5
-0
qianhe-ydsj/src/main/resources/mapper/SjFybpMapper.xml
+47
-27
qianhe-ydsj/src/main/resources/mapper/SjFybpZbMapper.xml
+1
-0
qianhe-ydsj/src/main/resources/mapper/SjLhscMapper.xml
+27
-0
No files found.
qianhe-ydsj/src/main/java/com/qianhe/controller/SjFybpController.java
View file @
877579f6
...
@@ -197,7 +197,7 @@ public class SjFybpController extends BaseController
...
@@ -197,7 +197,7 @@ public class SjFybpController extends BaseController
*/
*/
@GetMapping
(
"/tjtbByfylx"
)
@GetMapping
(
"/tjtbByfylx"
)
public
AjaxResult
tjtbByfylx
(
SjFybp
sjFybp
){
public
AjaxResult
tjtbByfylx
(
SjFybp
sjFybp
){
return
sjFybpService
.
tjtbByfylx
(
sjFybp
);
return
AjaxResult
.
success
(
sjFybpService
.
tjtbByfylx
(
sjFybp
)
);
}
}
/**
/**
...
@@ -209,7 +209,7 @@ public class SjFybpController extends BaseController
...
@@ -209,7 +209,7 @@ public class SjFybpController extends BaseController
public
TableDataInfo
tjtbct
(
SjFybp
sjFybp
)
public
TableDataInfo
tjtbct
(
SjFybp
sjFybp
)
{
{
startPage
();
startPage
();
List
<
SjFybp
>
list
=
sjFybpService
.
selectSjFybpList
(
sjFybp
);
List
<
SjFybp
>
list
=
sjFybpService
.
selectSjFybp
Ct
List
(
sjFybp
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
...
@@ -221,14 +221,14 @@ public class SjFybpController extends BaseController
...
@@ -221,14 +221,14 @@ public class SjFybpController extends BaseController
@PostMapping
(
"/exportTj"
)
@PostMapping
(
"/exportTj"
)
public
void
exportTj
(
HttpServletResponse
response
,
SjFybp
sjFybp
)
public
void
exportTj
(
HttpServletResponse
response
,
SjFybp
sjFybp
)
{
{
List
<
SjFybp
>
sjFybps
=
sjFybpService
.
tjtbByDept
(
sjFybp
);
//
List<SjFybp> sjFybps = sjFybpService.tjtbByDept(sjFybp);
List
<
SjfybpVo
>
voList
=
new
ArrayList
<>();
//
List<SjfybpVo> voList=new ArrayList<>();
sjFybps
.
forEach
(
item
->{
//
sjFybps.forEach(item->{
SjfybpVo
vo
=
new
SjfybpVo
();
//
SjfybpVo vo=new SjfybpVo();
BeanUtils
.
copyProperties
(
item
,
vo
);
//
BeanUtils.copyProperties(item,vo);
voList
.
add
(
vo
);
//
voList.add(vo);
});
//
});
ExcelUtil
<
SjfybpVo
>
util
=
new
ExcelUtil
<
SjfybpVo
>(
SjfybpVo
.
class
);
//
ExcelUtil<SjfybpVo> util = new ExcelUtil<SjfybpVo>(SjfybpVo.class);
util
.
exportExcel
(
response
,
voList
,
"统计"
);
//
util.exportExcel(response, voList, "统计");
}
}
}
}
qianhe-ydsj/src/main/java/com/qianhe/controller/SjLhscController.java
View file @
877579f6
...
@@ -289,4 +289,27 @@ public class SjLhscController extends BaseController
...
@@ -289,4 +289,27 @@ public class SjLhscController extends BaseController
List
<
SjLhscVo
>
list
=
sjLhscService
.
tjByEjJjwtSl
(
vo
);
List
<
SjLhscVo
>
list
=
sjLhscService
.
tjByEjJjwtSl
(
vo
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
/**
* 例会共享
*/
@GetMapping
(
"/listYtjLhgx"
)
public
TableDataInfo
listYtjLhgx
(
SjLhsc
sjLhsc
)
{
startPage
();
sjLhsc
.
setZt
(
"已提交"
);
List
<
SjLhsc
>
list
=
sjLhscService
.
selectSjLhscLhgxList
(
sjLhsc
);
return
getDataTable
(
list
);
}
/**
* 例会共享
*/
@GetMapping
(
"/getInfoLhgx/{id}"
)
public
AjaxResult
getInfoLhgx
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
sjLhscService
.
selectSjLhscById
(
id
));
}
}
}
qianhe-ydsj/src/main/java/com/qianhe/domain/Vo/SjfybpVo.java
View file @
877579f6
...
@@ -11,15 +11,21 @@ public class SjfybpVo {
...
@@ -11,15 +11,21 @@ public class SjfybpVo {
@Excel
(
name
=
"单位"
)
@Excel
(
name
=
"单位"
)
private
String
deptName
;
private
String
deptName
;
private
String
deptId
;
private
String
fylx
;
private
String
fylxmc
;
//数量
//数量
@Excel
(
name
=
"数量"
)
@Excel
(
name
=
"数量"
)
private
Integer
sl
;
private
Integer
z
sl
;
//批复金额总和
//批复金额总和
@Excel
(
name
=
"
批复费用
"
)
@Excel
(
name
=
"
项目金额
"
)
private
BigDecimal
pfjezh
;
private
BigDecimal
xmje
;
//已使用金额总和
//已使用金额总和
@Excel
(
name
=
"
使
用费用"
)
@Excel
(
name
=
"
已
用费用"
)
private
BigDecimal
ysyje
zh
;
private
BigDecimal
ysyje
;
}
}
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjFybpMapper.java
View file @
877579f6
...
@@ -3,6 +3,7 @@ package com.qianhe.mapper;
...
@@ -3,6 +3,7 @@ package com.qianhe.mapper;
import
java.util.List
;
import
java.util.List
;
import
com.qianhe.domain.SjFybp
;
import
com.qianhe.domain.SjFybp
;
import
com.qianhe.domain.SjFybpWh
;
import
com.qianhe.domain.SjFybpWh
;
import
com.qianhe.domain.Vo.SjfybpVo
;
/**
/**
* 三基-费用报批Mapper接口
* 三基-费用报批Mapper接口
...
@@ -85,9 +86,9 @@ public interface SjFybpMapper
...
@@ -85,9 +86,9 @@ public interface SjFybpMapper
*/
*/
public
int
deleteSjFybpWhByFybpId
(
Long
id
);
public
int
deleteSjFybpWhByFybpId
(
Long
id
);
List
<
Sj
Fybp
>
tjtbByDept
(
SjFybp
sjFybp
);
List
<
Sj
fybpVo
>
tjtbByDept
(
SjFybp
sjFybp
);
List
<
Sj
Fybp
>
tjtbByfylx
(
SjFybp
sjFybp
);
List
<
Sj
fybpVo
>
tjtbByfylx
(
SjFybp
sjFybp
);
List
<
SjFybp
>
selectSjFybpByZbId
(
Long
zbid
);
List
<
SjFybp
>
selectSjFybpByZbId
(
Long
zbid
);
...
@@ -97,4 +98,6 @@ public interface SjFybpMapper
...
@@ -97,4 +98,6 @@ public interface SjFybpMapper
SjFybp
getFygzById
(
Long
id
);
SjFybp
getFygzById
(
Long
id
);
List
<
SjFybp
>
selectSjFybpCtList
(
SjFybp
sjFybp
);
}
}
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjLhscMapper.java
View file @
877579f6
...
@@ -95,4 +95,6 @@ public interface SjLhscMapper
...
@@ -95,4 +95,6 @@ public interface SjLhscMapper
List
<
SjLhscVo
>
tjByEjJjwtSl
(
SjLhscVo
vo
);
List
<
SjLhscVo
>
tjByEjJjwtSl
(
SjLhscVo
vo
);
List
<
SjLhsc
>
selectSjLhscLhgxList
(
SjLhsc
sjLhsc
);
}
}
qianhe-ydsj/src/main/java/com/qianhe/service/ISjFybpService.java
View file @
877579f6
...
@@ -4,6 +4,7 @@ import java.util.List;
...
@@ -4,6 +4,7 @@ import java.util.List;
import
com.qianhe.common.core.domain.AjaxResult
;
import
com.qianhe.common.core.domain.AjaxResult
;
import
com.qianhe.domain.SjFybp
;
import
com.qianhe.domain.SjFybp
;
import
com.qianhe.domain.Vo.SjfybpVo
;
/**
/**
* 三基-费用报批Service接口
* 三基-费用报批Service接口
...
@@ -65,12 +66,15 @@ public interface ISjFybpService
...
@@ -65,12 +66,15 @@ public interface ISjFybpService
int
fywh
(
SjFybp
sjFybp
);
int
fywh
(
SjFybp
sjFybp
);
List
<
Sj
Fybp
>
tjtbByDept
(
SjFybp
sjFybp
);
List
<
Sj
fybpVo
>
tjtbByDept
(
SjFybp
sjFybp
);
AjaxResult
tjtbByfylx
(
SjFybp
sjFybp
);
List
<
SjfybpVo
>
tjtbByfylx
(
SjFybp
sjFybp
);
List
<
SjFybp
>
getFygz
(
SjFybp
sjFybp
);
List
<
SjFybp
>
getFygz
(
SjFybp
sjFybp
);
SjFybp
getFygzById
(
Long
id
);
SjFybp
getFygzById
(
Long
id
);
List
<
SjFybp
>
selectSjFybpCtList
(
SjFybp
sjFybp
);
}
}
qianhe-ydsj/src/main/java/com/qianhe/service/ISjLhscService.java
View file @
877579f6
...
@@ -65,4 +65,8 @@ public interface ISjLhscService
...
@@ -65,4 +65,8 @@ public interface ISjLhscService
List
<
SjLhscVo
>
tjBysfsc
(
SjLhscVo
vo
);
List
<
SjLhscVo
>
tjBysfsc
(
SjLhscVo
vo
);
List
<
SjLhscVo
>
tjByEjJjwtSl
(
SjLhscVo
vo
);
List
<
SjLhscVo
>
tjByEjJjwtSl
(
SjLhscVo
vo
);
List
<
SjLhsc
>
selectSjLhscLhgxList
(
SjLhsc
sjLhsc
);
}
}
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjFybpServiceImpl.java
View file @
877579f6
...
@@ -8,10 +8,12 @@ import com.qianhe.common.core.domain.AjaxResult;
...
@@ -8,10 +8,12 @@ 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.Vo.SjfybpVo
;
import
com.qianhe.domain.WdLxwh
;
import
com.qianhe.domain.WdLxwh
;
import
com.qianhe.domain.WdWdxx
;
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
lombok.Data
;
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
;
...
@@ -192,14 +194,27 @@ public class SjFybpServiceImpl implements ISjFybpService
...
@@ -192,14 +194,27 @@ public class SjFybpServiceImpl implements ISjFybpService
}
}
@Override
@Override
@DataScope
(
deptAlias
=
"
b
"
)
@DataScope
(
deptAlias
=
"
d
"
)
public
List
<
Sj
Fybp
>
tjtbByDept
(
SjFybp
sjFybp
)
{
public
List
<
Sj
fybpVo
>
tjtbByDept
(
SjFybp
sjFybp
)
{
return
sjFybpMapper
.
tjtbByDept
(
sjFybp
);
return
sjFybpMapper
.
tjtbByDept
(
sjFybp
);
}
}
@Override
@Override
public
AjaxResult
tjtbByfylx
(
SjFybp
sjFybp
)
{
@DataScope
(
deptAlias
=
"d"
)
return
AjaxResult
.
success
(
sjFybpMapper
.
tjtbByfylx
(
sjFybp
));
public
List
<
SjfybpVo
>
tjtbByfylx
(
SjFybp
sjFybp
)
{
List
<
SjfybpVo
>
voList
=
sjFybpMapper
.
tjtbByfylx
(
sjFybp
);
//计算总数
SjfybpVo
vo
=
new
SjfybpVo
();
vo
.
setFylxmc
(
"总"
);
vo
.
setFylx
(
"总"
);
int
sum
=
voList
.
stream
().
mapToInt
(
SjfybpVo:
:
getZsl
).
sum
();
vo
.
setZsl
(
sum
);
BigDecimal
xmje
=
voList
.
stream
().
map
(
SjfybpVo:
:
getXmje
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
vo
.
setXmje
(
xmje
);
BigDecimal
yjyje
=
voList
.
stream
().
map
(
SjfybpVo:
:
getYsyje
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
vo
.
setYsyje
(
yjyje
);
voList
.
add
(
0
,
vo
);
return
voList
;
}
}
@Override
@Override
...
@@ -219,6 +234,12 @@ public class SjFybpServiceImpl implements ISjFybpService
...
@@ -219,6 +234,12 @@ public class SjFybpServiceImpl implements ISjFybpService
return
sjFybp
;
return
sjFybp
;
}
}
@Override
@DataScope
(
deptAlias
=
"d"
)
public
List
<
SjFybp
>
selectSjFybpCtList
(
SjFybp
sjFybp
)
{
return
sjFybpMapper
.
selectSjFybpCtList
(
sjFybp
);
}
/**
/**
* 新增三基-费用维护信息
* 新增三基-费用维护信息
*
*
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjLhscServiceImpl.java
View file @
877579f6
...
@@ -190,6 +190,11 @@ public class SjLhscServiceImpl implements ISjLhscService
...
@@ -190,6 +190,11 @@ public class SjLhscServiceImpl implements ISjLhscService
return
sjLhscMapper
.
tjByEjJjwtSl
(
vo
);
return
sjLhscMapper
.
tjByEjJjwtSl
(
vo
);
}
}
@Override
public
List
<
SjLhsc
>
selectSjLhscLhgxList
(
SjLhsc
sjLhsc
)
{
return
sjLhscMapper
.
selectSjLhscLhgxList
(
sjLhsc
);
}
/**
/**
* 新增三基-例会上传-存在问题信息
* 新增三基-例会上传-存在问题信息
*
*
...
...
qianhe-ydsj/src/main/resources/mapper/SjFybpMapper.xml
View file @
877579f6
...
@@ -139,32 +139,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -139,32 +139,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join sys_dept d on a.dept_id=d.dept_id
left join sys_dept d on a.dept_id=d.dept_id
where a.id = #{id}
where a.id = #{id}
</select>
</select>
<select
id=
"tjtbByDept"
resultMap=
"SjFybpResult"
>
select a.id,a.dept_id,b.dept_name,a.fylx,count(a.id) sl ,IFNULL(sum(a.pfje),0) pfjezh,IFNULL(SUM(a.ysyje),0) ysyjezh
from sj_fybp a
left join sys_dept b on a.dept_id=b.dept_id
where 1=1 and a.zt='已批复'
<if
test=
"deptId != null and deptId != ''"
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},b.ancestors))
</if>
<if
test=
"startTime != null and startTime != ''"
>
and a.fyrq >=#{startTime}
</if>
<if
test=
"endTime != null and endTime != ''"
>
and a.fyrq
<
= #{endTime}
</if>
<if
test=
"fylx != null and fylx != ''"
>
and a.fylx = #{fylx}
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
group by a.dept_id
</select>
<select
id=
"tjtbByfylx"
resultMap=
"SjFybpResult"
>
select a.id,a.fylx,count(a.id) sl ,IFNULL(sum(a.pfje),0) pfjezh,IFNULL(SUM(a.ysyje),0) ysyjezh
from sj_fybp a
left join sys_dept b on a.dept_id=b.dept_id
where 1=1 and a.zt='已批复'
<if
test=
"deptId != null and deptId != ''"
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},b.ancestors))
</if>
<if
test=
"startTime != null and startTime != ''"
>
and a.fyrq >=#{startTime}
</if>
<if
test=
"endTime != null and endTime != ''"
>
and a.fyrq
<
= #{endTime}
</if>
<if
test=
"fylx != null and fylx != ''"
>
and a.fylx = #{fylx}
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
group by a.fylx
</select>
<select
id=
"selectSjFybpByZbId"
resultMap=
"SjFybpResult"
>
<select
id=
"selectSjFybpByZbId"
resultMap=
"SjFybpResult"
>
select a.id, a.fymc, a.fyrq, a.dept_id,
select a.id, a.fymc, a.fyrq, a.dept_id,
a.fylx, a.fyms, a.fyje, a.fjid, a.zt,
a.fylx, a.fyms, a.fyje, a.fjid, a.zt,
...
@@ -187,7 +163,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -187,7 +163,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fymc != null and fymc != ''"
>
and b.fymc like concat('%', #{fymc}, '%')
</if>
<if
test=
"fymc != null and fymc != ''"
>
and b.fymc like concat('%', #{fymc}, '%')
</if>
<if
test=
"fyrq != null and fyrq != ''"
>
and a.fyrq = #{fyrq}
</if>
<if
test=
"fyrq != null and fyrq != ''"
>
and a.fyrq = #{fyrq}
</if>
group by b.id
group by b.id
order by a.sprq desc
</select>
</select>
<select
id=
"getFygzById"
resultMap=
"SjFybpResult"
>
<select
id=
"getFygzById"
resultMap=
"SjFybpResult"
>
select a.id zb_id,a.dept_id,d.dept_name,a.fyrq,a.fyje fyzje,b.id,b.fymc,b.fylx,b.fyje,b.fyms,IFNULL(sum(c.syje),0) ysyje from sj_fybp_zb a
select a.id zb_id,a.dept_id,d.dept_name,a.fyrq,a.fyje fyzje,b.id,b.fymc,b.fylx,b.fyje,b.fyms,IFNULL(sum(c.syje),0) ysyje from sj_fybp_zb a
...
@@ -198,6 +174,50 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -198,6 +174,50 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and b.id=#{id}
and b.id=#{id}
group by b.id
group by b.id
</select>
</select>
<select
id=
"tjtbByfylx"
resultType=
"com.qianhe.domain.Vo.SjfybpVo"
>
select
b.fylx,IFNULL(count(b.id),0) zsl,IFNULL(sum(b.fyje),0) xmje,IFNULL(sum(c.syje),0) ysyje,e.dict_label fylxmc
from sj_fybp_zb a
left join sj_fybp b on a.id = b.zb_id
left join sj_fybp_wh c on b.id = c.fybp_id
left join sys_dept d on a.dept_id=d.dept_id
left join sys_dict_data e on b.fylx=e.dict_value and e.dict_type='fy_lx'
where 1=1
<if
test=
"deptId != null and deptId != ''"
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},d.ancestors))
</if>
<if
test=
"fyrq != null and fyrq != ''"
>
and a.fyrq =#{fyrq}
</if>
<if
test=
"fylx != null and fylx != ''"
>
and b.fylx = #{fylx}
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
group by b.fylx
</select>
<select
id=
"tjtbByDept"
resultType=
"com.qianhe.domain.Vo.SjfybpVo"
>
select
a.dept_id,d.dept_name,IFNULL(count(b.id),0) zsl,IFNULL(sum(b.fyje),0) xmje,IFNULL(sum(c.syje),0) ysyje
from sj_fybp_zb a
left join sj_fybp b on a.id = b.zb_id
left join sj_fybp_wh c on b.id = c.fybp_id
left join sys_dept d on a.dept_id=d.dept_id
where 1=1
<if
test=
"deptId != null and deptId != ''"
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},d.ancestors))
</if>
<if
test=
"fyrq != null and fyrq != ''"
>
and a.fyrq =#{fyrq}
</if>
<if
test=
"fylx != null and fylx != ''"
>
and b.fylx = #{fylx}
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
group by a.dept_id
</select>
<select
id=
"selectSjFybpCtList"
resultMap=
"SjFybpResult"
>
select
a.dept_id,b.id,b.zb_id,b.fymc,b.fylx,b.fyrq,b.fyje,b.fyms,d.dept_name,b.ysyje
from sj_fybp_zb a left join
sj_fybp b on a.id=b.zb_id
left join sys_dept d on a.dept_id=d.dept_id
where 1=1
<if
test=
"deptId != null and deptId != ''"
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},d.ancestors))
</if>
<if
test=
"fyrq != null and fyrq != ''"
>
and a.fyrq =#{fyrq}
</if>
<if
test=
"fylx != null and fylx != ''"
>
and b.fylx = #{fylx}
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
</select>
<insert
id=
"insertSjFybp"
parameterType=
"SjFybp"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
<insert
id=
"insertSjFybp"
parameterType=
"SjFybp"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_fybp
insert into sj_fybp
...
...
qianhe-ydsj/src/main/resources/mapper/SjFybpZbMapper.xml
View file @
877579f6
...
@@ -117,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -117,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!-- 数据范围过滤 -->
<!-- 数据范围过滤 -->
${params.dataScope}
${params.dataScope}
</where>
</where>
order by a.create_time desc
</select>
</select>
<select
id=
"selectSjFybpZbById"
parameterType=
"Long"
resultMap=
"SjFybpZbResult"
>
<select
id=
"selectSjFybpZbById"
parameterType=
"Long"
resultMap=
"SjFybpZbResult"
>
...
...
qianhe-ydsj/src/main/resources/mapper/SjLhscMapper.xml
View file @
877579f6
...
@@ -86,6 +86,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -86,6 +86,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
${params.dataScope}
${params.dataScope}
</where>
</where>
</select>
</select>
<select
id=
"selectSjLhscLhgxList"
parameterType=
"SjLhsc"
resultMap=
"SjLhscResult"
>
<include
refid=
"selectSjLhscVo"
/>
<where>
<if
test=
"hymc != null and hymc != ''"
>
and hymc like concat('%', #{hymc}, '%')
</if>
<if
test=
"hyrq != null and hyrq != ''"
>
and hyrq = #{hyrq}
</if>
<if
test=
"deptId != null and deptId != ''"
>
and a.dept_id = #{deptId}
</if>
<if
test=
"hydd != null and hydd != ''"
>
and hydd = #{hydd}
</if>
<if
test=
"chry != null and chry != ''"
>
and chry = #{chry}
</if>
<if
test=
"yxqk != null and yxqk != ''"
>
and yxqk = #{yxqk}
</if>
<if
test=
"jjwt != null and jjwt != ''"
>
and jjwt = #{jjwt}
</if>
<if
test=
"czwt != null and czwt != ''"
>
and czwt = #{czwt}
</if>
<if
test=
"tgjy != null and tgjy != ''"
>
and tgjy = #{tgjy}
</if>
<if
test=
"ldyq != null and ldyq != ''"
>
and ldyq = #{ldyq}
</if>
<if
test=
"zt != null and zt != ''"
>
and zt = #{zt}
</if>
<if
test=
"dwjb != null and dwjb != ''"
>
and a.dwjb = #{dwjb}
</if>
<if
test=
"tjr != null and tjr != ''"
>
and tjr = #{tjr}
</if>
<if
test=
"tjrq != null and tjrq != ''"
>
and tjrq = #{tjrq}
</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=
"nd != null and nd != ''"
>
and DATE_FORMAT(hyrq,'%Y')=#{nd}
</if>
</where>
</select>
<select
id=
"selectSjLhscById"
parameterType=
"Long"
resultMap=
"SjLhscResult"
>
<select
id=
"selectSjLhscById"
parameterType=
"Long"
resultMap=
"SjLhscResult"
>
select a.id, a.hymc, a.hyrq, a.dept_id, a.hydd, a.chry, a.yxqk, a.jjwt, a.czwt, a.tgjy, a.ldyq, a.zt, a.dwjb, a.tjr, a.tjrq, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.yl1, a.yl2, a.yl3, a.yl4, a.yl5
select a.id, a.hymc, a.hyrq, a.dept_id, a.hydd, a.chry, a.yxqk, a.jjwt, a.czwt, a.tgjy, a.ldyq, a.zt, a.dwjb, a.tjr, a.tjrq, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.yl1, a.yl2, a.yl3, a.yl4, a.yl5
...
@@ -124,6 +150,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -124,6 +150,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
</select>
<insert
id=
"insertSjLhsc"
parameterType=
"SjLhsc"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
<insert
id=
"insertSjLhsc"
parameterType=
"SjLhsc"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_lhsc
insert into sj_lhsc
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
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