|
|
@@ -2,7 +2,6 @@ package com.chinaitop.depot.device.service.impl;
|
|
2
|
2
|
|
|
3
|
3
|
import java.util.Date;
|
|
4
|
4
|
import java.util.List;
|
|
5
|
|
-import java.util.UUID;
|
|
6
|
5
|
|
|
7
|
6
|
import javax.annotation.Resource;
|
|
8
|
7
|
|
|
|
@@ -10,12 +9,10 @@ import org.apache.commons.lang3.StringUtils;
|
|
10
|
9
|
import org.springframework.stereotype.Service;
|
|
11
|
10
|
import org.springframework.transaction.annotation.Transactional;
|
|
12
|
11
|
|
|
13
|
|
-import com.chinaitop.depot.device.mapper.StorageJsglKhxxMapper;
|
|
14
|
12
|
import com.chinaitop.depot.device.mapper.StorageJsglMapper;
|
|
15
|
13
|
import com.chinaitop.depot.device.model.StorageJsgl;
|
|
16
|
14
|
import com.chinaitop.depot.device.model.StorageJsglExample;
|
|
17
|
15
|
import com.chinaitop.depot.device.model.StorageJsglExample.Criteria;
|
|
18
|
|
-import com.chinaitop.depot.device.model.StorageJsglKhxx;
|
|
19
|
16
|
import com.chinaitop.depot.device.service.StorageJsglService;
|
|
20
|
17
|
import com.chinaitop.depot.feignClients.service.DepotBusinessFeignService;
|
|
21
|
18
|
import com.chinaitop.depot.utils.ParameterUtil;
|
|
|
@@ -26,8 +23,6 @@ public class StorageJsglServiceImpl implements StorageJsglService {
|
|
26
|
23
|
@Resource
|
|
27
|
24
|
private StorageJsglMapper storageJsglMapper;
|
|
28
|
25
|
@Resource
|
|
29
|
|
- private StorageJsglKhxxMapper storageJsglKhxxMapper;
|
|
30
|
|
- @Resource
|
|
31
|
26
|
private DepotBusinessFeignService depotBusinessFeignService;
|
|
32
|
27
|
|
|
33
|
28
|
@Override
|
|
|
@@ -93,20 +88,6 @@ public class StorageJsglServiceImpl implements StorageJsglService {
|
|
93
|
88
|
//生成发票号集合
|
|
94
|
89
|
String fpText = getFpText(storageJsgl);
|
|
95
|
90
|
storageJsgl.setFpText(fpText);
|
|
96
|
|
-
|
|
97
|
|
- //散粮结算:保存多个客户信息
|
|
98
|
|
- List<StorageJsglKhxx> jsglKhxxList = storageJsgl.getJsglKhxxList();
|
|
99
|
|
- for (StorageJsglKhxx jkl : jsglKhxxList) {
|
|
100
|
|
- if (StringUtils.isNotBlank(jkl.getId())) {
|
|
101
|
|
- jkl.setUpdatetime(new Date());
|
|
102
|
|
- storageJsglKhxxMapper.updateByPrimaryKey(jkl);
|
|
103
|
|
- } else {
|
|
104
|
|
- jkl.setCjsj(new Date());
|
|
105
|
|
- jkl.setUpdatetime(new Date());
|
|
106
|
|
- jkl.setId(UUID.randomUUID().toString().replace("-", ""));
|
|
107
|
|
- storageJsglKhxxMapper.insert(jkl);
|
|
108
|
|
- }
|
|
109
|
|
- }
|
|
110
|
91
|
|
|
111
|
92
|
if (StringUtils.isBlank(storageJsgl.getId())) {
|
|
112
|
93
|
addStorageJsgl(storageJsgl);
|