|
...
|
...
|
@@ -11,8 +11,10 @@ import com.lframework.starter.web.core.utils.IdUtil; |
|
11
|
11
|
import com.lframework.starter.web.core.utils.OpLogUtil;
|
|
12
|
12
|
import com.lframework.starter.web.core.components.security.SecurityUtil;
|
|
13
|
13
|
import com.lframework.starter.web.inner.components.oplog.OtherOpLogType;
|
|
|
14
|
+import com.lframework.starter.web.inner.entity.SysDept;
|
|
14
|
15
|
import com.lframework.starter.web.inner.entity.SysRole;
|
|
15
|
16
|
import com.lframework.starter.web.inner.entity.SysUser;
|
|
|
17
|
+import com.lframework.starter.web.inner.service.system.SysDeptService;
|
|
16
|
18
|
import com.lframework.starter.web.inner.service.system.SysRoleService;
|
|
17
|
19
|
import com.lframework.starter.web.inner.service.system.SysUserService;
|
|
18
|
20
|
import com.lframework.xingyun.basedata.entity.BreedRelationship;
|
|
...
|
...
|
@@ -64,6 +66,8 @@ public class SupplierQuotationProjectQuoteServiceImpl |
|
64
|
66
|
@Resource
|
|
65
|
67
|
private SysRoleService sysRoleService;
|
|
66
|
68
|
@Resource
|
|
|
69
|
+ private SysDeptService sysDeptService;
|
|
|
70
|
+ @Resource
|
|
67
|
71
|
private BreedRelationshipService breedRelationshipService;
|
|
68
|
72
|
@Resource
|
|
69
|
73
|
private ApplicationEventPublisher applicationEventPublisher;
|
|
...
|
...
|
@@ -156,6 +160,13 @@ public class SupplierQuotationProjectQuoteServiceImpl |
|
156
|
160
|
if (beforeBidTime && CollectionUtil.isNotEmpty(list)) {
|
|
157
|
161
|
list.forEach(v -> v.setPrice(null));
|
|
158
|
162
|
}
|
|
|
163
|
+ for (SupplierQuotationProjectQuote quote : list) {
|
|
|
164
|
+ List<SysDept> purchaseDept = sysDeptService.getPurchaseDept(quote.getSupplierId());
|
|
|
165
|
+ if (CollectionUtil.isNotEmpty(purchaseDept)) {
|
|
|
166
|
+ quote.setPurchaseDepartment(purchaseDept.get(0).getId());
|
|
|
167
|
+ quote.setPurchaseDepartmentName(purchaseDept.get(0).getName());
|
|
|
168
|
+ }
|
|
|
169
|
+ }
|
|
159
|
170
|
return list;
|
|
160
|
171
|
}
|
|
161
|
172
|
|
...
|
...
|
|