Procházet zdrojové kódy

出库结算管理

hanqingsong před 1 rokem
rodič
revize
be86deef0b

+ 0 - 17
src/main/java/com/chinaitop/depot/device/controller/StorageJsglController.java

@@ -30,8 +30,6 @@ public class StorageJsglController {
30 30
 
31 31
 	@Resource
32 32
 	private StorageJsglService storageJsglService;
33
-	@Resource
34
-	private StorageJsglKhxxService storageJsglKhxxService;
35 33
 
36 34
 	@RequestMapping(value = "/getPageInfoList", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
37 35
     @ApiOperation(value = "结算管理列表查询", notes = "支持分页")
@@ -94,7 +92,6 @@ public class StorageJsglController {
94 92
 		try {
95 93
 			if (null != id) {
96 94
 				storageJsgl = storageJsglService.findByParmaryKey(id);
97
-				storageJsgl.setJsglKhxxList(storageJsglKhxxService.queryList(id));
98 95
 			}
99 96
 		} catch (Exception e) {
100 97
 			e.printStackTrace();
@@ -114,7 +111,6 @@ public class StorageJsglController {
114 111
 
115 112
 		try {
116 113
 			storageJsglService.removeStorageJsgl(id);
117
-			storageJsglKhxxService.deleteByZid(id);
118 114
 			map.put("status", "200");
119 115
 		} catch (Exception e) {
120 116
 			map.put("status", "500");
@@ -123,17 +119,4 @@ public class StorageJsglController {
123 119
 
124 120
         return map;
125 121
     }
126
-
127
-	@RequestMapping(value = "/deleteKhxx", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
128
-    @ApiOperation(value = "删除一条客户信息", notes = "")
129
-    @ApiImplicitParams({
130
-        @ApiImplicitParam(name = "id", value = "数据ID", paramType = "form")
131
-    })
132
-	public void deleteKhxx(String id) {
133
-		try {
134
-			storageJsglKhxxService.delete(id);
135
-		} catch (Exception e) {
136
-			e.printStackTrace();
137
-		}
138
-	}
139 122
 }

+ 0 - 21
src/main/java/com/chinaitop/depot/device/model/StorageJsgl.java

@@ -2,7 +2,6 @@ package com.chinaitop.depot.device.model;
2 2
 
3 3
 import java.math.BigDecimal;
4 4
 import java.util.Date;
5
-import java.util.List;
6 5
 
7 6
 import com.fasterxml.jackson.annotation.JsonFormat;
8 7
 
@@ -76,9 +75,6 @@ public class StorageJsgl {
76 75
 
77 76
     private String fpText;
78 77
 
79
-    /* 散粮结算使用:客户信息 */
80
-    private List<StorageJsglKhxx> jsglKhxxList;
81
-
82 78
     /**
83 79
      * 主键唯一ID
84 80
      * @return id 主键唯一ID
@@ -598,21 +594,4 @@ public class StorageJsgl {
598 594
     public String getYwlx() {
599 595
         return ywlx;
600 596
     }
601
-
602
-    /**
603
-     * 业务类型(0:散粮,1:非散粮)
604
-     * @param ywlx 业务类型(0:散粮,1:非散粮)
605
-     */
606
-    public void setYwlx(String ywlx) {
607
-        this.ywlx = ywlx == null ? null : ywlx.trim();
608
-    }
609
-
610
-	public List<StorageJsglKhxx> getJsglKhxxList() {
611
-		return jsglKhxxList;
612
-	}
613
-
614
-	public void setJsglKhxxList(List<StorageJsglKhxx> jsglKhxxList) {
615
-		this.jsglKhxxList = jsglKhxxList;
616
-	}
617
-    
618 597
 }

+ 0 - 19
src/main/java/com/chinaitop/depot/device/service/impl/StorageJsglServiceImpl.java

@@ -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);