|
@@ -9,6 +9,7 @@ import java.util.List;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.validation.ConstraintViolationException;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
|
|
|
import com.jeeplus.modules.sys.entity.CompletionInformationExport;
|
|
|
import org.apache.shiro.authz.annotation.Logical;
|
|
@@ -66,6 +67,16 @@ public class CompletionInformationController extends BaseController {
|
|
|
@RequiresPermissions("sys:completionInformation:list")
|
|
|
@GetMapping("list")
|
|
|
public AjaxJson list(CompletionInformation completionInformation, HttpServletRequest request, HttpServletResponse response) {
|
|
|
+ String itemCode = completionInformation.getItemCode();
|
|
|
+ List<String> attrs = new ArrayList<>();
|
|
|
+ if (StringUtils.isNotBlank(itemCode)) {
|
|
|
+ String[] strArr = itemCode.split("\\s+");
|
|
|
+ for (String a :
|
|
|
+ strArr) {
|
|
|
+ attrs.add(a);
|
|
|
+ }
|
|
|
+ completionInformation.setAttrs(attrs);
|
|
|
+ }
|
|
|
Page<CompletionInformation> page = completionInformationService.findPage(new Page<CompletionInformation>(request, response), completionInformation);
|
|
|
return AjaxJson.success().put("page", page);
|
|
|
}
|