Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
b61b5848
Commit
b61b5848
authored
Sep 01, 2022
by
查济
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-zhaji' into 'develop'
Feature zhaji See merge request fangxinjiang/yifu!222
parents
ba24de0a
0e66071d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
81 additions
and
61 deletions
+81
-61
InsurancesConstants.java
...lus/v1/yifu/insurances/constants/InsurancesConstants.java
+4
-4
InsuranceDetailVO.java
...u/cloud/plus/v1/yifu/insurances/vo/InsuranceDetailVO.java
+6
-0
InsuredOrderListVo.java
.../cloud/plus/v1/yifu/insurances/vo/InsuredOrderListVo.java
+6
-0
InsuredOrderParam.java
...u/cloud/plus/v1/yifu/insurances/vo/InsuredOrderParam.java
+3
-2
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+22
-17
TInsuranceDetailMapper.xml
...in/resources/mapper/insurances/TInsuranceDetailMapper.xml
+40
-38
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/constants/InsurancesConstants.java
View file @
b61b5848
...
@@ -995,14 +995,14 @@ public class InsurancesConstants {
...
@@ -995,14 +995,14 @@ public class InsurancesConstants {
public
static
final
String
SETTLE_ZERO
=
"未结算"
;
public
static
final
String
SETTLE_ZERO
=
"未结算"
;
/**
/**
*
已结算
*
结算中
*/
*/
public
static
final
String
SETTLE_ONE
=
"
已结算
"
;
public
static
final
String
SETTLE_ONE
=
"
结算中
"
;
/**
/**
*
结算中
*
已结算
*/
*/
public
static
final
String
SETTLE_TWO
=
"
结算中
"
;
public
static
final
String
SETTLE_TWO
=
"
已结算
"
;
/**
/**
* 无需结算
* 无需结算
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsuranceDetailVO.java
View file @
b61b5848
...
@@ -325,6 +325,12 @@ public class InsuranceDetailVO implements Serializable {
...
@@ -325,6 +325,12 @@ public class InsuranceDetailVO implements Serializable {
@Schema
(
description
=
"被替换人项目名称(替换类型专用字段)"
)
@Schema
(
description
=
"被替换人项目名称(替换类型专用字段)"
)
private
String
coverProjectName
;
private
String
coverProjectName
;
/**
* 被替换人封面抬头
*/
@Schema
(
description
=
"被替换人封面抬头"
)
private
String
coveInvoiceTitle
;
/**
/**
* 退保金额 todo 数据库暂时没有
* 退保金额 todo 数据库暂时没有
*/
*/
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsuredOrderListVo.java
View file @
b61b5848
...
@@ -78,6 +78,12 @@ public class InsuredOrderListVo implements Serializable {
...
@@ -78,6 +78,12 @@ public class InsuredOrderListVo implements Serializable {
@Schema
(
description
=
"创建人(派单人)"
)
@Schema
(
description
=
"创建人(派单人)"
)
private
String
createName
;
private
String
createName
;
/**
* 创建人id
*/
@Schema
(
description
=
"创建人id(派单人id)"
)
private
String
createBy
;
/**
/**
* 创建人部门名称
* 创建人部门名称
*/
*/
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsuredOrderParam.java
View file @
b61b5848
...
@@ -6,6 +6,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
...
@@ -6,6 +6,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.time.LocalDate
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -37,13 +38,13 @@ public class InsuredOrderParam implements Serializable {
...
@@ -37,13 +38,13 @@ public class InsuredOrderParam implements Serializable {
* 开始日期
* 开始日期
*/
*/
@Schema
(
description
=
"开始日期"
)
@Schema
(
description
=
"开始日期"
)
private
String
startDate
;
private
LocalDate
startDate
;
/**
/**
* 结束日期
* 结束日期
*/
*/
@Schema
(
description
=
"结束日期"
)
@Schema
(
description
=
"结束日期"
)
private
String
endDate
;
private
LocalDate
endDate
;
/**
/**
* 项目编码列表
* 项目编码列表
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
b61b5848
...
@@ -1030,7 +1030,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -1030,7 +1030,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
}
}
}
if
(
CollectionUtils
.
isNotEmpty
(
successList
)){
if
(
CollectionUtils
.
isNotEmpty
(
successList
)){
//todo 判断是否推送过保费到ekp,如果推送过就新增一条负的,将结算表中的数据求和放到明细表中
for
(
TInsuranceDetail
detail
:
successList
)
{
for
(
TInsuranceDetail
detail
:
successList
)
{
if
(
StringUtils
.
isNotBlank
(
detail
.
getDefaultSettleId
())){
if
(
StringUtils
.
isNotBlank
(
detail
.
getDefaultSettleId
())){
TInsuranceSettle
settle
=
tInsuranceSettleService
.
getById
(
detail
.
getDefaultSettleId
());
TInsuranceSettle
settle
=
tInsuranceSettleService
.
getById
(
detail
.
getDefaultSettleId
());
...
@@ -1051,12 +1050,16 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -1051,12 +1050,16 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
detail
.
setEstimatePremium
(
new
BigDecimal
(
"0.00"
));
detail
.
setEstimatePremium
(
new
BigDecimal
(
"0.00"
));
}
}
tInsuranceSettleService
.
save
(
burden
);
tInsuranceSettleService
.
save
(
burden
);
//推送负的给ekp
SettleVo
settleVo
=
getInsuranceDetailSettleStatus
(
detail
.
getId
(),
detail
.
getDefaultSettleId
());
String
s
=
pushEstimate
(
detail
,
CommonConstants
.
THREE_INT
);
if
(!
Common
.
isEmpty
(
settleVo
)
&&
InsurancesConstants
.
SETTLE_ONE
.
equals
(
settleVo
.
getEstimateStatus
())
&&
InsurancesConstants
.
SETTLE_ONE
.
equals
(
settleVo
.
getActualStatus
())){
//这里退回的时候,必须置为null,防止是实缴的时候,登记保费出错
//推送负的给ekp
if
(
StringUtils
.
isNotBlank
(
s
)){
String
s
=
pushEstimate
(
detail
,
CommonConstants
.
THREE_INT
);
detail
.
setDefaultSettleId
(
null
);
//这里退回的时候,必须置为null,防止是实缴的时候,登记保费出错
if
(
StringUtils
.
isNotBlank
(
s
)){
detail
.
setDefaultSettleId
(
null
);
}
}
}
}
}
}
}
//获取成功数据的remark
//获取成功数据的remark
...
@@ -3169,13 +3172,14 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -3169,13 +3172,14 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
null
!=
jsonObject
){
if
(
null
!=
jsonObject
){
record
.
setProjectName
(
Optional
.
ofNullable
(
jsonObject
.
getDepartName
()).
orElse
(
""
));
record
.
setProjectName
(
Optional
.
ofNullable
(
jsonObject
.
getDepartName
()).
orElse
(
""
));
}
}
TInsuranceDetail
detail
=
new
TInsuranceDetail
(
);
TInsuranceDetail
detail
=
getById
(
record
.
getId
()
);
TInsuranceRefund
refund
=
new
TInsuranceRefund
();
TInsuranceRefund
refund
=
new
TInsuranceRefund
();
detail
.
setId
(
record
.
getId
());
detail
.
setId
(
record
.
getId
());
//update状态由「待减员」置为「减员中」
//update状态由「待减员」置为「减员中」
detail
.
setUpdateBy
(
user
.
getId
());
detail
.
setUpdateBy
(
user
.
getId
());
detail
.
setUpdateTime
(
LocalDateTime
.
now
());
detail
.
setUpdateTime
(
LocalDateTime
.
now
());
detail
.
setReduceHandleStatus
(
CommonConstants
.
TWO_INT
);
detail
.
setReduceHandleStatus
(
CommonConstants
.
TWO_INT
);
detailList
.
add
(
detail
);
detailList
.
add
(
detail
);
refund
.
setId
(
detail
.
getRefundId
());
refund
.
setId
(
detail
.
getRefundId
());
refund
.
setReduceHandleStatus
(
CommonConstants
.
TWO_INT
);
refund
.
setReduceHandleStatus
(
CommonConstants
.
TWO_INT
);
...
@@ -4496,13 +4500,13 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -4496,13 +4500,13 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
Optional
.
ofNullable
(
settle
).
isPresent
()){
if
(
Optional
.
ofNullable
(
settle
).
isPresent
()){
SettleVo
settleVo
=
getInsuranceDetailSettleStatus
(
insuranceDetail
.
getId
(),
defaultSettleId
);
SettleVo
settleVo
=
getInsuranceDetailSettleStatus
(
insuranceDetail
.
getId
(),
defaultSettleId
);
if
(!
Common
.
isEmpty
(
settleVo
)){
if
(!
Common
.
isEmpty
(
settleVo
)){
if
(
InsurancesConstants
.
SETTLE_ONE
.
equals
(
settleVo
.
getActualStatus
())){
if
(
InsurancesConstants
.
SETTLE_ONE
.
equals
(
settleVo
.
get
EstimateStatus
())
||
InsurancesConstants
.
SETTLE_ONE
.
equals
(
settleVo
.
get
ActualStatus
())){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_
HANDLE_TWO_NOT_REGISTERED
);
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_
MONTH_CHANGE_SETTLE_STATUS_TWO_ERROR
);
errorList
.
add
(
param
);
errorList
.
add
(
param
);
continue
;
continue
;
}
}
if
(
InsurancesConstants
.
SETTLE_TWO
.
equals
(
settleVo
.
getActualStatus
())){
if
(
InsurancesConstants
.
SETTLE_TWO
.
equals
(
settleVo
.
get
EstimateStatus
())
||
InsurancesConstants
.
SETTLE_TWO
.
equals
(
settleVo
.
get
ActualStatus
())){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_
HANDLE_THREE_NOT_REGISTERED
);
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_
MONTH_CHANGE_SETTLE_STATUS_THREE_ERROR
);
errorList
.
add
(
param
);
errorList
.
add
(
param
);
continue
;
continue
;
}
}
...
@@ -5003,13 +5007,13 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -5003,13 +5007,13 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
Optional
.
ofNullable
(
settle
).
isPresent
()){
if
(
Optional
.
ofNullable
(
settle
).
isPresent
()){
SettleVo
settleVo
=
getInsuranceDetailSettleStatus
(
insuranceDetail
.
getId
(),
defaultSettleId
);
SettleVo
settleVo
=
getInsuranceDetailSettleStatus
(
insuranceDetail
.
getId
(),
defaultSettleId
);
if
(!
Common
.
isEmpty
(
settleVo
)){
if
(!
Common
.
isEmpty
(
settleVo
)){
if
(
InsurancesConstants
.
SETTLE_ONE
.
equals
(
settleVo
.
getActualStatus
())){
if
(
InsurancesConstants
.
SETTLE_ONE
.
equals
(
settleVo
.
get
EstimateStatus
())
||
InsurancesConstants
.
SETTLE_ONE
.
equals
(
settleVo
.
get
ActualStatus
())){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_HANDLE_TWO_NOT_REGISTERED
);
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_SETTLE_STATUS_TWO_ERROR
);
errorList
.
add
(
param
);
errorList
.
add
(
param
);
continue
;
continue
;
}
}
if
(
InsurancesConstants
.
SETTLE_TWO
.
equals
(
settleVo
.
getActualStatus
())){
if
(
InsurancesConstants
.
SETTLE_TWO
.
equals
(
settleVo
.
get
EstimateStatus
())
||
InsurancesConstants
.
SETTLE_TWO
.
equals
(
settleVo
.
get
ActualStatus
())){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_HANDLE_THREE_NOT_REGISTERED
);
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_SETTLE_STATUS_THREE_ERROR
);
errorList
.
add
(
param
);
errorList
.
add
(
param
);
continue
;
continue
;
}
}
...
@@ -5387,11 +5391,12 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -5387,11 +5391,12 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
param
.
setSettleType
(
InsurancesConstants
.
ACTUAL_SETTLE_BILL
);
param
.
setSettleType
(
InsurancesConstants
.
ACTUAL_SETTLE_BILL
);
pushType
=
CommonConstants
.
SEVEN_INT
;
pushType
=
CommonConstants
.
SEVEN_INT
;
}
}
if
(
StringUtils
.
isBlank
(
eKPInsuranceUtil
.
sendToEkp
(
param
))){
String
s
=
eKPInsuranceUtil
.
sendToEkp
(
param
);
if
(
StringUtils
.
isBlank
(
s
)){
saveInsuranceEkp
(
param
,
pushType
);
saveInsuranceEkp
(
param
,
pushType
);
return
null
;
return
null
;
}
else
{
}
else
{
return
eKPInsuranceUtil
.
sendToEkp
(
param
)
;
return
s
;
}
}
}
}
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/insurances/TInsuranceDetailMapper.xml
View file @
b61b5848
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
and detail.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%')
and detail.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.startDate != null and param.startDate.trim() != '' and param.endDate != null and param.endDate.trim() != ''"
>
<if
test=
"param.startDate != null and param.startDate.trim() != '' and param.endDate != null and param.endDate.trim() != ''"
>
and detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '
00:00:00') and detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '
23:59:59')
and detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '
00:00:00') and detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '
23:59:59')
</if>
</if>
ORDER BY detail.BUY_HANDLE_STATUS,detail.CREATE_TIME DESC
ORDER BY detail.BUY_HANDLE_STATUS,detail.CREATE_TIME DESC
</select>
</select>
...
@@ -194,7 +194,7 @@
...
@@ -194,7 +194,7 @@
and detail.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%')
and detail.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.startDate != null and param.startDate.trim() != '' and param.endDate != null and param.endDate.trim() != ''"
>
<if
test=
"param.startDate != null and param.startDate.trim() != '' and param.endDate != null and param.endDate.trim() != ''"
>
and detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '
00:00:00') and detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '
23:59:59')
and detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '
00:00:00') and detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '
23:59:59')
</if>
</if>
ORDER BY detail.BUY_HANDLE_STATUS,detail.CREATE_TIME DESC
ORDER BY detail.BUY_HANDLE_STATUS,detail.CREATE_TIME DESC
</select>
</select>
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
and detail.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%')
and detail.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.startDate != null and param.startDate.trim() != '' and param.endDate != null and param.endDate.trim() != ''"
>
<if
test=
"param.startDate != null and param.startDate.trim() != '' and param.endDate != null and param.endDate.trim() != ''"
>
and detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '
00:00:00') and detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '
23:59:59')
and detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '
00:00:00') and detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '
23:59:59')
</if>
</if>
ORDER BY detail.BUY_HANDLE_STATUS,detail.CREATE_TIME DESC
ORDER BY detail.BUY_HANDLE_STATUS,detail.CREATE_TIME DESC
</select>
</select>
...
@@ -386,7 +386,7 @@
...
@@ -386,7 +386,7 @@
and detail.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%')
and detail.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.startDate != null and param.startDate.trim() != '' and param.endDate != null and param.endDate.trim() != ''"
>
<if
test=
"param.startDate != null and param.startDate.trim() != '' and param.endDate != null and param.endDate.trim() != ''"
>
and detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '
00:00:00') and detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '
23:59:59')
and detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '
00:00:00') and detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '
23:59:59')
</if>
</if>
ORDER BY detail.CREATE_TIME DESC
ORDER BY detail.CREATE_TIME DESC
</select>
</select>
...
@@ -452,16 +452,16 @@
...
@@ -452,16 +452,16 @@
and detail.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
and detail.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd == null and param.policyEnd.trim() == ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd == null and param.policyEnd.trim() == ''"
>
AND detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '00:00:00')
AND detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00')
</if>
</if>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and param.policyStart == null and param.policyStart.trim() == ''"
>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and param.policyStart == null and param.policyStart.trim() == ''"
>
AND detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '23:59:59')
AND detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
and (
and (
(detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_START
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_START
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59'))
(detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59'))
)
)
</if>
</if>
<if
test=
"param.invoiceNo != null and param.invoiceNo.trim() != ''"
>
<if
test=
"param.invoiceNo != null and param.invoiceNo.trim() != ''"
>
...
@@ -474,10 +474,10 @@
...
@@ -474,10 +474,10 @@
and detail.IS_OVERDUE = #{param.isOverdue}
and detail.IS_OVERDUE = #{param.isOverdue}
</if>
</if>
<if
test=
"param.createStartTime != null and param.createStartTime.trim() != ''"
>
<if
test=
"param.createStartTime != null and param.createStartTime.trim() != ''"
>
AND detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.createStartTime}, '00:00:00')
AND detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.createStartTime}, '
00:00:00')
</if>
</if>
<if
test=
"param.createEndTime != null and param.createEndTime.trim() != ''"
>
<if
test=
"param.createEndTime != null and param.createEndTime.trim() != ''"
>
AND detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.createEndTime}, '23:59:59')
AND detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.createEndTime}, '
23:59:59')
</if>
</if>
ORDER BY detail.CREATE_TIME DESC ,detail.ID ASC
ORDER BY detail.CREATE_TIME DESC ,detail.ID ASC
</select>
</select>
...
@@ -539,16 +539,16 @@
...
@@ -539,16 +539,16 @@
and detail.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
and detail.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd == null and param.policyEnd.trim() == ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd == null and param.policyEnd.trim() == ''"
>
AND detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '00:00:00')
AND detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00')
</if>
</if>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and param.policyStart == null and param.policyStart.trim() == ''"
>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and param.policyStart == null and param.policyStart.trim() == ''"
>
AND detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '23:59:59')
AND detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
and (
and (
(detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_START
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_START
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59'))
(detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59'))
)
)
</if>
</if>
<if
test=
"param.invoiceNo != null and param.invoiceNo.trim() != ''"
>
<if
test=
"param.invoiceNo != null and param.invoiceNo.trim() != ''"
>
...
@@ -561,10 +561,10 @@
...
@@ -561,10 +561,10 @@
and detail.IS_OVERDUE = #{param.isOverdue}
and detail.IS_OVERDUE = #{param.isOverdue}
</if>
</if>
<if
test=
"param.createStartTime != null and param.createStartTime.trim() != ''"
>
<if
test=
"param.createStartTime != null and param.createStartTime.trim() != ''"
>
AND detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.createStartTime}, '00:00:00')
AND detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.createStartTime}, '
00:00:00')
</if>
</if>
<if
test=
"param.createEndTime != null and param.createEndTime.trim() != ''"
>
<if
test=
"param.createEndTime != null and param.createEndTime.trim() != ''"
>
AND detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.createEndTime}, '23:59:59')
AND detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.createEndTime}, '
23:59:59')
</if>
</if>
ORDER BY detail.CREATE_TIME DESC
ORDER BY detail.CREATE_TIME DESC
</select>
</select>
...
@@ -613,16 +613,16 @@
...
@@ -613,16 +613,16 @@
and detail.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
and detail.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd == null and param.policyEnd.trim() == ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd == null and param.policyEnd.trim() == ''"
>
AND detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '00:00:00')
AND detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00')
</if>
</if>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and param.policyStart == null and param.policyStart.trim() == ''"
>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and param.policyStart == null and param.policyStart.trim() == ''"
>
AND detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '23:59:59')
AND detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
and (
and (
(detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_START
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_START
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59'))
(detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59'))
)
)
</if>
</if>
ORDER BY refund.CREATE_TIME DESC,detail.ID ASC
ORDER BY refund.CREATE_TIME DESC,detail.ID ASC
...
@@ -679,16 +679,16 @@
...
@@ -679,16 +679,16 @@
and detail.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
and detail.POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd == null and param.policyEnd.trim() == ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd == null and param.policyEnd.trim() == ''"
>
AND detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '00:00:00')
AND detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00')
</if>
</if>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and param.policyStart == null and param.policyStart.trim() == ''"
>
<if
test=
"param.policyEnd != null and param.policyEnd.trim() != '' and param.policyStart == null and param.policyStart.trim() == ''"
>
AND detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '23:59:59')
AND detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59')
</if>
</if>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
<if
test=
"param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd != null and param.policyEnd.trim() != ''"
>
and (
and (
(detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_START
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_START
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_START
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59')) OR
(detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59'))
(detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, '
00:00:00') and detail.POLICY_END
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, '
23:59:59'))
)
)
</if>
</if>
ORDER BY refund.CREATE_TIME DESC
ORDER BY refund.CREATE_TIME DESC
...
@@ -749,10 +749,10 @@
...
@@ -749,10 +749,10 @@
and refund.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%')
and refund.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.startDate != null and param.startDate.trim() != ''"
>
<if
test=
"param.startDate != null and param.startDate.trim() != ''"
>
AND refund.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '00:00:00')
AND refund.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '
00:00:00')
</if>
</if>
<if
test=
"param.endDate != null and param.endDate.trim() != ''"
>
<if
test=
"param.endDate != null and param.endDate.trim() != ''"
>
AND refund.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '23:59:59')
AND refund.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '
23:59:59')
</if>
</if>
ORDER BY refund.CREATE_TIME DESC,detail.ID ASC
ORDER BY refund.CREATE_TIME DESC,detail.ID ASC
</select>
</select>
...
@@ -944,6 +944,7 @@
...
@@ -944,6 +944,7 @@
select
select
detail.id as id,
detail.id as id,
detail.BUY_TYPE as buyType,
detail.BUY_TYPE as buyType,
detail.CREATE_BY as createBy,
detail.EMP_NAME as empName,
detail.EMP_NAME as empName,
detail.EMP_IDCARD_NO as empIdcardNo,
detail.EMP_IDCARD_NO as empIdcardNo,
detail.INSURANCE_COMPANY_NAME as insuranceCompanyName,
detail.INSURANCE_COMPANY_NAME as insuranceCompanyName,
...
@@ -968,11 +969,11 @@
...
@@ -968,11 +969,11 @@
<if
test=
"param.empIdcardNo != null and param.empIdcardNo.trim() != ''"
>
<if
test=
"param.empIdcardNo != null and param.empIdcardNo.trim() != ''"
>
and detail.EMP_IDCARD_NO like concat('%',replace(replace(#{param.empIdcardNo},'_','\_'),'%','\%'),'%')
and detail.EMP_IDCARD_NO like concat('%',replace(replace(#{param.empIdcardNo},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.startDate != null
and param.startDate.trim() != ''
"
>
<if
test=
"param.startDate != null "
>
AND detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '00:00:00')
AND detail.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '
00:00:00')
</if>
</if>
<if
test=
"param.endDate != null
and param.endDate.trim() != ''
"
>
<if
test=
"param.endDate != null "
>
AND detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '23:59:59')
AND detail.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '
23:59:59')
</if>
</if>
<if
test=
"param.deptNoList != null"
>
<if
test=
"param.deptNoList != null"
>
and detail.DEPT_NO in
and detail.DEPT_NO in
...
@@ -984,6 +985,7 @@
...
@@ -984,6 +985,7 @@
select
select
detail.id as id,
detail.id as id,
refund.BUY_TYPE as buyType,
refund.BUY_TYPE as buyType,
refund.CREATE_BY as createBy,
detail.EMP_NAME as empName,
detail.EMP_NAME as empName,
detail.EMP_IDCARD_NO as empIdcardNo,
detail.EMP_IDCARD_NO as empIdcardNo,
detail.INSURANCE_COMPANY_NAME as insuranceCompanyName,
detail.INSURANCE_COMPANY_NAME as insuranceCompanyName,
...
@@ -1011,11 +1013,11 @@
...
@@ -1011,11 +1013,11 @@
<if
test=
"param.empIdcardNo != null and param.empIdcardNo.trim() != ''"
>
<if
test=
"param.empIdcardNo != null and param.empIdcardNo.trim() != ''"
>
and detail.EMP_IDCARD_NO like concat('%',replace(replace(#{param.empIdcardNo},'_','\_'),'%','\%'),'%')
and detail.EMP_IDCARD_NO like concat('%',replace(replace(#{param.empIdcardNo},'_','\_'),'%','\%'),'%')
</if>
</if>
<if
test=
"param.startDate != null
and param.startDate.trim() != ''
"
>
<if
test=
"param.startDate != null"
>
AND refund.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '00:00:00')
AND refund.CREATE_TIME
<![CDATA[ >= ]]>
concat(#{param.startDate}, '
00:00:00')
</if>
</if>
<if
test=
"param.endDate != null
and param.endDate.trim() != ''
"
>
<if
test=
"param.endDate != null "
>
AND refund.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '23:59:59')
AND refund.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endDate}, '
23:59:59')
</if>
</if>
<if
test=
"param.deptNoList != null"
>
<if
test=
"param.deptNoList != null"
>
and detail.DEPT_NO in
and detail.DEPT_NO in
...
...
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