3 Commits 19022d56d5 ... 92ef6d9f37

Author SHA1 Message Date
  buzhanyi 92ef6d9f37 Merge remote-tracking branch 'origin/master' into prod 8 months ago
  buzhanyi e72a7bacfa 招标代理机构管理--更改参数名称 8 months ago
  buzhanyi b1be6a5403 招标代理机构管理--添加一个空格,增添辨识度 8 months ago

+ 3 - 3
purchase-admin/src/main/java/com/ozs/web/controller/base/BaseAgencyController.java

@@ -141,10 +141,10 @@ public class BaseAgencyController extends BaseController {
         if (!ObjectUtils.isEmpty(vo.getStatus())) {
         if (!ObjectUtils.isEmpty(vo.getStatus())) {
             lw.eq(BaseAgency::getStatus, vo.getStatus());
             lw.eq(BaseAgency::getStatus, vo.getStatus());
         }
         }
-        List<Integer> companyType = vo.getCompanyTypes();
+        List<Integer> companyType = vo.getCompanyType();
         StringBuilder builder = new StringBuilder();
         StringBuilder builder = new StringBuilder();
         if (!ObjectUtils.isEmpty(companyType)) {
         if (!ObjectUtils.isEmpty(companyType)) {
-            builder.append("(");
+            builder.append(" (");
             for (int i = 0; i < companyType.size(); i++) {
             for (int i = 0; i < companyType.size(); i++) {
                 Integer type = companyType.get(i);
                 Integer type = companyType.get(i);
                 if (i != companyType.size() - 1) {
                 if (i != companyType.size() - 1) {
@@ -153,8 +153,8 @@ public class BaseAgencyController extends BaseController {
                     builder.append("company_type like '%").append(type).append("%' )");
                     builder.append("company_type like '%").append(type).append("%' )");
                 }
                 }
             }
             }
+            lw.apply(builder.toString());
         }
         }
-        lw.apply(builder.toString());
         lw.orderBy(true, false, BaseAgency::getCreateTime);
         lw.orderBy(true, false, BaseAgency::getCreateTime);
         IPage<BaseAgency> page = baseAgencyService.page(new Page<BaseAgency>(vo.getPageNum(), vo.getPageSize()), lw);
         IPage<BaseAgency> page = baseAgencyService.page(new Page<BaseAgency>(vo.getPageNum(), vo.getPageSize()), lw);
         if (!ObjectUtils.isEmpty(page) && !ObjectUtils.isEmpty(page.getRecords())) {
         if (!ObjectUtils.isEmpty(page) && !ObjectUtils.isEmpty(page.getRecords())) {

+ 2 - 2
purchase-system/src/main/java/com/ozs/base/vo/BaseAgentPageReqVo.java

@@ -35,7 +35,7 @@ public class BaseAgentPageReqVo extends PageVo {
      * 采购类型
      * 采购类型
      */
      */
     @ApiModelProperty("采购类型")
     @ApiModelProperty("采购类型")
-    private List<Integer> companyTypes;
+    private List<Integer> companyType;
 
 
     @Override
     @Override
     public String toString() {
     public String toString() {
@@ -43,7 +43,7 @@ public class BaseAgentPageReqVo extends PageVo {
                 "companyName='" + companyName + '\'' +
                 "companyName='" + companyName + '\'' +
                 ", companyNature='" + companyNature + '\'' +
                 ", companyNature='" + companyNature + '\'' +
                 ", status=" + status +
                 ", status=" + status +
-                ", companyTypes=" + companyTypes +
+                ", companyType=" + companyType +
                 '}';
                 '}';
     }
     }
 }
 }