| 
...
 | 
...
 | 
@@ -12,6 +12,8 @@ import com.lframework.starter.web.core.components.resp.PageResult; | 
| 
12
 | 
12
 | 
 import com.lframework.starter.common.utils.StringUtil;
 | 
| 
13
 | 
13
 | 
 import java.io.Serializable;
 | 
| 
14
 | 
14
 | 
 import com.lframework.starter.common.utils.Assert;
 | 
| 
 
 | 
15
 | 
+import com.lframework.starter.web.inner.entity.SysUser;
 | 
| 
 
 | 
16
 | 
+import com.lframework.starter.web.inner.service.system.SysUserService;
 | 
| 
15
 | 
17
 | 
 import com.lframework.xingyun.basedata.entity.Customer;
 | 
| 
16
 | 
18
 | 
 import com.lframework.xingyun.basedata.service.customer.CustomerService;
 | 
| 
17
 | 
19
 | 
 import com.lframework.xingyun.sc.Label;
 | 
| 
...
 | 
...
 | 
@@ -39,6 +41,8 @@ public class CustomerCreditHistoryServiceImpl extends BaseMpServiceImpl<Customer | 
| 
39
 | 
41
 | 
 
 | 
| 
40
 | 
42
 | 
     @Resource
 | 
| 
41
 | 
43
 | 
     private CustomerService customerService;
 | 
| 
 
 | 
44
 | 
+    @Resource
 | 
| 
 
 | 
45
 | 
+    private SysUserService sysUserService;
 | 
| 
42
 | 
46
 | 
     // 定义不需要比较的字段
 | 
| 
43
 | 
47
 | 
     private static final Set<String> EXCLUDED_FIELDS = new HashSet<>(Arrays.asList(
 | 
| 
44
 | 
48
 | 
             "id", "sort", "createById", "createBy", "updateById",
 | 
| 
...
 | 
...
 | 
@@ -287,6 +291,39 @@ public class CustomerCreditHistoryServiceImpl extends BaseMpServiceImpl<Customer | 
| 
287
 | 
291
 | 
                 Object value2 = field.get(customerCreditHistory);
 | 
| 
288
 | 
292
 | 
 
 | 
| 
289
 | 
293
 | 
                 if (!Objects.equals(value1, value2)) {
 | 
| 
 
 | 
294
 | 
+                    //单位名称
 | 
| 
 
 | 
295
 | 
+                    if ("companyId".equals(fieldName)) {
 | 
| 
 
 | 
296
 | 
+                        if (StringUtil.isNotEmpty(data.getCompanyId())) {
 | 
| 
 
 | 
297
 | 
+                            Customer customer1 = customerService.findById(data.getCompanyId());
 | 
| 
 
 | 
298
 | 
+                            value1 = customer1.getName();
 | 
| 
 
 | 
299
 | 
+                        }
 | 
| 
 
 | 
300
 | 
+                        if (StringUtil.isNotEmpty(customerCreditHistory.getCompanyId())) {
 | 
| 
 
 | 
301
 | 
+                            Customer customer2 = customerService.findById(customerCreditHistory.getCompanyId());
 | 
| 
 
 | 
302
 | 
+                            value2 = customer2.getName();
 | 
| 
 
 | 
303
 | 
+                        }
 | 
| 
 
 | 
304
 | 
+                    }
 | 
| 
 
 | 
305
 | 
+                    //调查人
 | 
| 
 
 | 
306
 | 
+                    if ("investigator".equals(fieldName)) {
 | 
| 
 
 | 
307
 | 
+                        if (StringUtil.isNotEmpty(data.getInvestigator())) {
 | 
| 
 
 | 
308
 | 
+                            SysUser sysUser1 = sysUserService.findById(data.getInvestigator());
 | 
| 
 
 | 
309
 | 
+                            value1 = sysUser1.getName();
 | 
| 
 
 | 
310
 | 
+                        }
 | 
| 
 
 | 
311
 | 
+                        if (StringUtil.isNotEmpty(customerCreditHistory.getInvestigator())) {
 | 
| 
 
 | 
312
 | 
+                            SysUser sysUser2 = sysUserService.findById(customerCreditHistory.getInvestigator());
 | 
| 
 
 | 
313
 | 
+                            value2 = sysUser2.getName();
 | 
| 
 
 | 
314
 | 
+                        }
 | 
| 
 
 | 
315
 | 
+                    }
 | 
| 
 
 | 
316
 | 
+                    //主管审核
 | 
| 
 
 | 
317
 | 
+                    if ("supervisorReview".equals(fieldName)) {
 | 
| 
 
 | 
318
 | 
+                        if (StringUtil.isNotEmpty(data.getSupervisorReview())) {
 | 
| 
 
 | 
319
 | 
+                            SysUser sysUser1 = sysUserService.findById(data.getSupervisorReview());
 | 
| 
 
 | 
320
 | 
+                            value1 = sysUser1.getName();
 | 
| 
 
 | 
321
 | 
+                        }
 | 
| 
 
 | 
322
 | 
+                        if (StringUtil.isNotEmpty(customerCreditHistory.getSupervisorReview())) {
 | 
| 
 
 | 
323
 | 
+                            SysUser sysUser2 = sysUserService.findById(customerCreditHistory.getSupervisorReview());
 | 
| 
 
 | 
324
 | 
+                            value2 = sysUser2.getName();
 | 
| 
 
 | 
325
 | 
+                        }
 | 
| 
 
 | 
326
 | 
+                    }
 | 
| 
290
 | 
327
 | 
                     // 获取中文标签,优先使用 @Label,否则用字段名
 | 
| 
291
 | 
328
 | 
                     String label = getLabel(field);
 | 
| 
292
 | 
329
 | 
 
 | 
...
 | 
...
 | 
 |