Commit 64564e02 LN

物料分组功能

1 个父辈 4e2e6051
......@@ -39,10 +39,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.*;
@Slf4j
@RestController
......@@ -188,7 +185,8 @@ public class MaterialController {
@PostMapping(value = "/updatePosLabel")
@PreAuthorize("@el.check('tacticsOuput')")
public ResultBean updatePosLabel(@RequestBody Map<String, Object> params) {
Set<String> posIds = (Set<String>) params.get("posIds");
List<String> posIds=(List<String>) params.get("posIds");
Set<String> posSet=new HashSet<>();
String labelId = params.get("labelId").toString();
if(posIds==null||posIds.size()<=0){
......@@ -198,7 +196,12 @@ public class MaterialController {
labelId="";
}
storagePosManager.updatePosLabel(posIds,labelId);
for (String id :
posIds) {
posSet.add(id);
}
storagePosManager.updatePosLabel(posSet,labelId);
return ResultBean.newOkResult("");
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!