|
|
|
@ -14,6 +14,7 @@ import org.springblade.core.tool.api.R;
|
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
@RestController |
|
|
|
|
@AllArgsConstructor |
|
|
|
@ -23,8 +24,13 @@ public class DistributionSplitOrderTaskController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/add-package-code") |
|
|
|
|
public R<String> addPackageCode(Long taskId, List<String> packageCodes) { |
|
|
|
|
return distributionSplitOrderTaskService.addPackageCode(taskId, packageCodes); |
|
|
|
|
public R<String> addPackageCode(@RequestBody Map mao) { |
|
|
|
|
|
|
|
|
|
String taskId = (String) mao.get("taskId"); |
|
|
|
|
List<String> packageCodes = (List<String>) mao.get("packageCodes"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return distributionSplitOrderTaskService.addPackageCode(Long.parseLong(taskId), packageCodes); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/all-task-list") |
|
|
|
|