|
|
@@ -10,6 +10,8 @@ import io.swagger.annotations.ApiOperation;
|
|
10
|
10
|
import org.slf4j.Logger;
|
|
11
|
11
|
import org.slf4j.LoggerFactory;
|
|
12
|
12
|
import org.springframework.http.MediaType;
|
|
|
13
|
+import org.springframework.util.MultiValueMap;
|
|
|
14
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
13
|
15
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
14
|
16
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
15
|
17
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
@@ -157,5 +159,42 @@ public class ReceiveNoticeController {
|
|
157
|
159
|
}
|
|
158
|
160
|
|
|
159
|
161
|
|
|
|
162
|
+ @RequestMapping(value="/saveDataRkByRest", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
|
|
|
163
|
+ @ApiOperation(value="增加性质转变单数据(入库)", notes = "增加性质转变单数据(入库)")
|
|
|
164
|
+ @ApiImplicitParams({
|
|
|
165
|
+ @ApiImplicitParam(name = "orgId", value = "组织id", paramType = "query"),
|
|
|
166
|
+ @ApiImplicitParam(name = "storehouseId", value = "仓房", paramType = "query"),
|
|
|
167
|
+ @ApiImplicitParam(name = "warehouseId", value = "货位", paramType = "query"),
|
|
|
168
|
+ @ApiImplicitParam(name = "rksl", value = "入库数量", paramType = "query"),
|
|
|
169
|
+ @ApiImplicitParam(name = "grainVarietyName", value = "品种名称", paramType = "query")
|
|
|
170
|
+ })
|
|
|
171
|
+ public void saveDataRkByRest(@RequestBody MultiValueMap<String,String> map) {
|
|
|
172
|
+
|
|
|
173
|
+ logger.info("入库验收接收到的性质转变单:"+map);
|
|
|
174
|
+ List<String> orgIdList = map.get("orgId");
|
|
|
175
|
+ String orgId = (String) orgIdList.get(0);
|
|
|
176
|
+
|
|
|
177
|
+ List<String> storehouseIdList = map.get("storehouseId");
|
|
|
178
|
+ Integer storehouseId = Integer.valueOf(storehouseIdList.get(0));
|
|
|
179
|
+
|
|
|
180
|
+ List<String> warehouseIdList = map.get("warehouseId");
|
|
|
181
|
+ Integer warehouseId = Integer.valueOf(warehouseIdList.get(0));
|
|
|
182
|
+
|
|
|
183
|
+
|
|
|
184
|
+ List<String> grainVarietyNameList = map.get("grainVarietyName");
|
|
|
185
|
+ String grainVarietyName = (String) grainVarietyNameList.get(0);
|
|
|
186
|
+
|
|
|
187
|
+ List<String> rkslList = map.get("rksl");
|
|
|
188
|
+ BigDecimal rksl = new BigDecimal(rkslList.get(0));
|
|
|
189
|
+
|
|
|
190
|
+ List<String> lsxzzbdhList = map.get("lsxzzbdh");
|
|
|
191
|
+ String lsxzzbdh = lsxzzbdhList.get(0);
|
|
|
192
|
+
|
|
|
193
|
+ logger.info("接收到的参数是:orgId:"+orgId+"--"+"storehouseId:"+storehouseId+"**"+warehouseId+"**"+grainVarietyName+"**"+rksl+"//"+lsxzzbdh);
|
|
|
194
|
+ receiveNoticeService.saveDataRk( orgId, storehouseId, warehouseId, grainVarietyName,
|
|
|
195
|
+ rksl, lsxzzbdh);
|
|
|
196
|
+ }
|
|
|
197
|
+
|
|
|
198
|
+
|
|
160
|
199
|
|
|
161
|
200
|
}
|