|
|
@@ -763,17 +763,6 @@ public class LawFirmServiceImpl extends ServiceImpl<LawFirmMapper, LawFirm> impl
|
|
|
if (!StringUtils.hasText(lawFirm.getDirectorPhone()) && StringUtils.hasText(otherVo.getDirectorPhone())) {
|
|
|
lawFirm.setDirectorPhone(otherVo.getDirectorPhone());
|
|
|
}
|
|
|
- // 补充平台佣金比例(只支持纯数字格式,不支持百分号)
|
|
|
- if (lawFirm.getPlatformCommissionRatio() == null && StringUtils.hasText(otherVo.getPlatformCommissionRatio())) {
|
|
|
- try {
|
|
|
- String ratioStr = otherVo.getPlatformCommissionRatio().trim();
|
|
|
- // 解析为整数(必须是纯数字)
|
|
|
- Integer ratio = Integer.parseInt(ratioStr);
|
|
|
- lawFirm.setPlatformCommissionRatio(ratio);
|
|
|
- } catch (Exception e) {
|
|
|
- log.warn("解析佣金比例失败:{},必须是纯数字格式", otherVo.getPlatformCommissionRatio(), e);
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
// 检查统一社会信用代码是否已存在
|
|
|
@@ -797,10 +786,6 @@ public class LawFirmServiceImpl extends ServiceImpl<LawFirmMapper, LawFirm> impl
|
|
|
if (lawFirm.getStatus() == null) {
|
|
|
lawFirm.setStatus(existingLawFirm.getStatus());
|
|
|
}
|
|
|
- // 如果新数据没有提供平台佣金比例,保留原有值
|
|
|
- if (lawFirm.getPlatformCommissionRatio() == null) {
|
|
|
- lawFirm.setPlatformCommissionRatio(existingLawFirm.getPlatformCommissionRatio());
|
|
|
- }
|
|
|
} else {
|
|
|
// 设置默认值(新增时)
|
|
|
if (lawFirm.getStatus() == null) {
|
|
|
@@ -1215,18 +1200,6 @@ public class LawFirmServiceImpl extends ServiceImpl<LawFirmMapper, LawFirm> impl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // 解析佣金比例(只支持纯数字格式,不支持百分号)
|
|
|
- if (StringUtils.hasText(excelVo.getPlatformCommissionRatio())) {
|
|
|
- try {
|
|
|
- String ratioStr = excelVo.getPlatformCommissionRatio().trim();
|
|
|
- // 解析为整数(必须是纯数字)
|
|
|
- Integer ratio = Integer.parseInt(ratioStr);
|
|
|
- lawFirm.setPlatformCommissionRatio(ratio);
|
|
|
- } catch (Exception e) {
|
|
|
- log.warn("解析佣金比例失败:{},必须是纯数字格式", excelVo.getPlatformCommissionRatio(), e);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
return lawFirm;
|
|
|
}
|
|
|
|