|
@@ -523,6 +523,8 @@ public class WmScorePackageSettleNoteServiceImpl extends ServiceImpl<WmScorePack
|
|
|
|
|
|
switch (gigTypeEnum) {
|
|
|
case REN_LI_JIA:
|
|
|
+ case JIN_YUAN:
|
|
|
+ case XIN_TAI_ZI:
|
|
|
case OLADING:
|
|
|
if (!Objects.equals(userSub.getCertStatus(), DingEnum.CER_STATUS_1.getType())) {
|
|
|
return R.failed(sysUser.getRealname() + "未认证,不能发起结算");
|
|
@@ -553,7 +555,10 @@ public class WmScorePackageSettleNoteServiceImpl extends ServiceImpl<WmScorePack
|
|
|
|
|
|
}
|
|
|
// 自由职家
|
|
|
- else if (SubjectTypeEnum.TYPE_OLADING.getCode().equals(note.getSubType())) {
|
|
|
+ else if (SubjectTypeEnum.TYPE_OLADING.getCode().equals(note.getSubType())
|
|
|
+ || SubjectTypeEnum.TYPE_JIN_YUAN.getCode().equals(note.getSubType())
|
|
|
+ || SubjectTypeEnum.TYPE_XIN_TAI_ZI.getCode().equals(note.getSubType())
|
|
|
+ ) {
|
|
|
String taxCode = sysDept.getTaxCode();
|
|
|
return settleByOlading(note, wmScorePackage, sysUser, taxCode);
|
|
|
}
|
|
@@ -636,6 +641,8 @@ public class WmScorePackageSettleNoteServiceImpl extends ServiceImpl<WmScorePack
|
|
|
|
|
|
switch (gigTypeEnum) {
|
|
|
case REN_LI_JIA:
|
|
|
+ case XIN_TAI_ZI:
|
|
|
+ case JIN_YUAN:
|
|
|
case OLADING:
|
|
|
if (!Objects.equals(userSub.getCertStatus(), DingEnum.CER_STATUS_1.getType())) {
|
|
|
return R.failed(sysUser.getRealname() + "未认证,不能发起结算");
|
|
@@ -666,7 +673,8 @@ public class WmScorePackageSettleNoteServiceImpl extends ServiceImpl<WmScorePack
|
|
|
|
|
|
}
|
|
|
// 自由职家
|
|
|
- else if (SubjectTypeEnum.TYPE_OLADING.getCode().equals(note.getSubType())) {
|
|
|
+ else if (SubjectTypeEnum.TYPE_OLADING.getCode().equals(note.getSubType()) || SubjectTypeEnum.TYPE_JIN_YUAN.getCode().equals(note.getSubType())
|
|
|
+ || SubjectTypeEnum.TYPE_XIN_TAI_ZI.getCode().equals(note.getSubType())) {
|
|
|
oladingNoteList.add(note);
|
|
|
}
|
|
|
// 税邦云
|
|
@@ -790,10 +798,23 @@ public class WmScorePackageSettleNoteServiceImpl extends ServiceImpl<WmScorePack
|
|
|
params.put("endType", "CSO");
|
|
|
params.put("enterpriseCode", taxCode);
|
|
|
params.put("subjectType", "OLADING");
|
|
|
- params.put("channel", "DEFAULT");
|
|
|
params.put("taskDescription", "根据要求,执行、并完成学术推广活动,并以在线平台工具采集、记录活动内容");
|
|
|
params.put("acceptanceStandard", "完成不同任务获得不同任务积分,根据不同任务给与0~30000积分,每个积分兑换0.8~1.2元,按次数结算");
|
|
|
|
|
|
+ GigTypeEnum gigTypeEnum = GigTypeEnum.resolve(Integer.parseInt(note.getSubType()));
|
|
|
+
|
|
|
+ if (GigTypeEnum.JIN_YUAN.equals(gigTypeEnum)) {
|
|
|
+ params.put("channel", "JIN_YUAN");
|
|
|
+ params.put("taxMode", "GENERAL");
|
|
|
+ params.put("transactionModel", "SUPERVISE");
|
|
|
+ }
|
|
|
+ // 海南飞亿 和 河南薪泰梓
|
|
|
+ else {
|
|
|
+ params.put("channel", GigTypeEnum.OLADING.equals(gigTypeEnum) ? "DEFAULT" : "XIN_TAI_ZI");
|
|
|
+ params.put("taxMode", "SPECIAL");
|
|
|
+ params.put("transactionModel", "CHANNEL");
|
|
|
+ }
|
|
|
+
|
|
|
Set<Integer> noteIds = new HashSet<>();
|
|
|
noteIds.add(note.getId());
|
|
|
params.put("noteIds", noteIds);
|
|
@@ -1045,11 +1066,25 @@ public class WmScorePackageSettleNoteServiceImpl extends ServiceImpl<WmScorePack
|
|
|
params.put("endType", "CSO");
|
|
|
params.put("enterpriseCode", taxCode);
|
|
|
params.put("subjectType", "OLADING");
|
|
|
- params.put("channel", "DEFAULT");
|
|
|
params.put("taskDescription", "根据要求,执行、并完成学术推广活动,并以在线平台工具采集、记录活动内容");
|
|
|
params.put("acceptanceStandard", "完成不同任务获得不同任务积分,根据不同任务给与0~30000积分,每个积分兑换0.8~1.2元,按次数结算");
|
|
|
|
|
|
|
|
|
+ GigTypeEnum gigTypeEnum = GigTypeEnum.resolve(Integer.parseInt(note.getSubType()));
|
|
|
+
|
|
|
+ if (GigTypeEnum.JIN_YUAN.equals(gigTypeEnum)) {
|
|
|
+ params.put("channel", "JIN_YUAN");
|
|
|
+ params.put("taxMode", "GENERAL");
|
|
|
+ params.put("transactionModel", "SUPERVISE");
|
|
|
+ }
|
|
|
+ // 海南飞亿 和 河南薪泰梓
|
|
|
+ else {
|
|
|
+ params.put("channel", GigTypeEnum.OLADING.equals(gigTypeEnum) ? "DEFAULT" : "XIN_TAI_ZI");
|
|
|
+ params.put("taxMode", "SPECIAL");
|
|
|
+ params.put("transactionModel", "CHANNEL");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// 发起结算
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
|
headers.setContentType(MediaType.APPLICATION_JSON);
|