|
@@ -890,6 +890,37 @@ public class AmsSaleOrderController extends BaseRESTfulController {
|
|
return success(result);
|
|
return success(result);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiModelProperty(value = "检查规格型号的格式对不对")
|
|
|
|
+ @PostMapping("/queryFormat")
|
|
|
|
+ public RESTfulResult queryFormat(@RequestBody List<Map<String,Object>> mapList){
|
|
|
|
+ for (Map<String, Object> map : mapList) {
|
|
|
|
+ String specification = (String) map.get("Specification");
|
|
|
|
+ Integer count = amsDispatchSaleOrderMapper.queryFormatCount(specification);
|
|
|
|
+ if (count.compareTo(0)==0){
|
|
|
|
+ return failed(count);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return success();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "查询物资ID并赋值")
|
|
|
|
+ @PostMapping(value = "/queryMaterial")
|
|
|
|
+ RESTfulResult queryMaterial(@RequestBody List<Map<String,Object>> mapList){
|
|
|
|
+ List<Map<String,Object>> mapList1=mapList;
|
|
|
|
+ for (Map<String, Object> map : mapList1) {
|
|
|
|
+ String specification = (String) map.get("Specification");
|
|
|
|
+ String materialName = (String) map.get("materialName");
|
|
|
|
+ BigDecimal materialid = amsDispatchSaleOrderMapper.queryMaterial(specification, materialName);
|
|
|
|
+ if (materialid ==null){
|
|
|
|
+ return failed();
|
|
|
|
+ }
|
|
|
|
+ map.remove("materialId");
|
|
|
|
+ map.put("materialId",materialid);
|
|
|
|
+ }
|
|
|
|
+ return success(mapList1);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
@ApiModelProperty(value = "查询出销售订单下的所有数据")
|
|
@ApiModelProperty(value = "查询出销售订单下的所有数据")
|
|
@PostMapping("/getAllSaleMessages")
|
|
@PostMapping("/getAllSaleMessages")
|
|
public RESTfulResult getAllSaleMessages(@RequestParam Integer saleOrderId) {
|
|
public RESTfulResult getAllSaleMessages(@RequestParam Integer saleOrderId) {
|