Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
AutogeneralShanghai
yd-backend
Commits
ed4012c9
Commit
ed4012c9
authored
Jul 06, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
续年佣金计算-来佣比对优化4
parent
db6212a3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
17 deletions
+18
-17
yd-api/src/main/java/com/yd/api/commission/service/impl/LifeCommissionServiceImpl.java
+5
-5
yd-api/src/main/java/com/yd/dal/mapper/commission/AgPoOrderCommissionMapper.java
+2
-1
yd-api/src/main/resources/mapper/commission/AgPoOrderCommissionMapper.xml
+11
-11
No files found.
yd-api/src/main/java/com/yd/api/commission/service/impl/LifeCommissionServiceImpl.java
View file @
ed4012c9
...
...
@@ -310,7 +310,7 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
private
void
createCSV
(
List
<
ComeCommissionVO
>
dataList
,
HttpServletResponse
response
)
{
String
charset
=
"UTF-8"
;
// 读取字符编码
String
[]
columnName
=
new
String
[]{
"序号"
,
"来佣编号"
,
"预计来佣年月"
,
"实际来佣年月"
,
"检核年月"
,
"保险公司"
,
"保单号"
,
"保费"
,
"来佣率"
,
"来佣金额"
,
"来佣状态 "
,
"经纪人"
,
"经纪人类型"
,
"下单时间"
,
"购买方案"
,
"产品险种"
,
"保险种类"
,
"缴费年限"
,
"保障期间"
};
String
[]
columnName
=
new
String
[]{
"序号"
,
"来佣编号"
,
"预计来佣年月"
,
"实际来佣年月"
,
"检核年月"
,
"保险公司"
,
"保单号"
,
"保费"
,
"来佣率"
,
"来佣金额"
,
"来佣状态 "
,
"经纪人"
,
"经纪人类型"
,
"下单时间"
,
"购买方案"
,
"产品险种"
,
"保险种类"
,
"缴费年限"
,
"保障期间"
};
String
tableName
=
"YD_Export_ComeCommission"
;
String
CSV_COLUMN_SEPARATOR
=
","
;
//CSV文件列分隔符
String
CSV_ROW_SEPARATOR
=
"\r\n"
;
//CSV文件行分隔符
...
...
@@ -327,8 +327,8 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
ComeCommissionVO
info
=
dataList
.
get
(
i
);
//遍历每个对象
buf
.
append
(
i
+
1
).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getCommissionNo
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getCommissionYear
()
).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getCommissionTime
()
).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
"\t"
).
append
(
info
.
getCommissionYear
()).
append
(
"\t"
).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
"\t"
).
append
(
info
.
getCommissionTime
()
==
null
?
""
:
info
.
getCommissionTime
()).
append
(
"\t"
).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
"\t"
).
append
(
info
.
getCheckDate
()
==
null
?
""
:
info
.
getCheckDate
()).
append
(
"\t"
).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getInsurerName
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
"\t"
).
append
(
info
.
getPolicyNo
()).
append
(
"\t"
).
append
(
CSV_COLUMN_SEPARATOR
);
...
...
@@ -370,8 +370,8 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
os
.
flush
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
finally
{
if
(
os
!=
null
)
{
}
finally
{
if
(
os
!=
null
)
{
try
{
os
.
close
();
}
catch
(
IOException
e
)
{
...
...
yd-api/src/main/java/com/yd/dal/mapper/commission/AgPoOrderCommissionMapper.java
View file @
ed4012c9
...
...
@@ -18,5 +18,5 @@ public interface AgPoOrderCommissionMapper {
int
updateByPrimaryKey
(
AgPoOrderCommission
record
);
void
updateBatchBycommissionNo
(
@Param
(
"list"
)
List
<
String
>
commissionNos
,
AgPoOrderCommission
orderCommission
);
void
updateBatchBycommissionNo
(
@Param
(
"list"
)
List
<
String
>
commissionNos
,
@Param
(
"orderCommission"
)
AgPoOrderCommission
orderCommission
);
}
\ No newline at end of file
yd-api/src/main/resources/
src/main/resources
/commission/AgPoOrderCommissionMapper.xml
→
yd-api/src/main/resources/
mapper
/commission/AgPoOrderCommissionMapper.xml
View file @
ed4012c9
...
...
@@ -322,23 +322,23 @@
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateBatchBycommissionNo"
>
<update
id=
"updateBatchBycommissionNo"
>
update ag_po_order_commission
<set>
<if
test=
"
commissionStatus != null"
>
commission_status = #{commissionStatus,jdbcType=BIGINT},
<if
test=
"
orderCommission.
commissionStatus != null"
>
commission_status = #{
orderCommission.
commissionStatus,jdbcType=BIGINT},
</if>
<if
test=
"commissionTime != null"
>
commission_time = #{commissionTime,jdbcType=VARCHAR},
<if
test=
"
orderCommission.
commissionTime != null"
>
commission_time = #{
orderCommission.
commissionTime,jdbcType=VARCHAR},
</if>
<if
test=
"commissionCheckId != null"
>
commission_check_id = #{commissionCheckId,jdbcType=VARCHAR},
<if
test=
"
orderCommission.
commissionCheckId != null"
>
commission_check_id = #{
orderCommission.
commissionCheckId,jdbcType=VARCHAR},
</if>
<if
test=
"updatedBy != null"
>
updated_by = #{updatedBy,jdbcType=TIMESTAMP},
<if
test=
"
orderCommission.
updatedBy != null"
>
updated_by = #{
orderCommission.
updatedBy,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedAt != null"
>
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
<if
test=
"
orderCommission.
updatedAt != null"
>
updated_at = #{
orderCommission.
updatedAt,jdbcType=TIMESTAMP},
</if>
</set>
where commission_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