Commit 645f625f authored by huangjie's avatar huangjie
parents 2dc880b0 3ce37e56
package com.dsk.web.controller.system;
import com.dsk.common.core.controller.BaseController;
import com.dsk.common.core.domain.AjaxResult;
import com.dsk.system.service.SysRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 地区信息
*
* @author lcl
* @create 2023/6/28
*/
@RestController
@RequestMapping("/system/region")
public class SysRegionController extends BaseController {
@Autowired
private SysRegionService baseService;
/**
* 通过父id获取下级地区信息
*/
@GetMapping("/list/{parentId}")
public AjaxResult listByParentId(@PathVariable Integer parentId) {
return AjaxResult.success(baseService.selectByParentId(parentId));
}
}
...@@ -21,7 +21,6 @@ public class EnterpriseAffiliatesBody extends BasePage { ...@@ -21,7 +21,6 @@ public class EnterpriseAffiliatesBody extends BasePage {
private Integer hasBid; private Integer hasBid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -23,7 +23,6 @@ public class EnterpriseBestStockPageBody extends BasePage ...@@ -23,7 +23,6 @@ public class EnterpriseBestStockPageBody extends BasePage
//是否历史 0 否 1 是 //是否历史 0 否 1 是
private Integer isHistory; private Integer isHistory;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -26,7 +26,6 @@ public class EnterpriseBidDataGroupBody ...@@ -26,7 +26,6 @@ public class EnterpriseBidDataGroupBody
@NotNull(message = "spanId不能为空") @NotNull(message = "spanId不能为空")
private Integer spanId; private Integer spanId;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -31,7 +31,6 @@ public class EnterpriseBidNoticePageBody extends BasePage ...@@ -31,7 +31,6 @@ public class EnterpriseBidNoticePageBody extends BasePage
*/ */
private Integer provinceId; private Integer provinceId;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == companyId; return 0 == companyId;
} }
......
...@@ -20,7 +20,6 @@ public class EnterpriseBidNoticeProvinceBody ...@@ -20,7 +20,6 @@ public class EnterpriseBidNoticeProvinceBody
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer companyId; private Integer companyId;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == companyId; return 0 == companyId;
} }
......
...@@ -20,7 +20,6 @@ public class EnterpriseBidNoticeTenderStageBody ...@@ -20,7 +20,6 @@ public class EnterpriseBidNoticeTenderStageBody
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer companyId; private Integer companyId;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == companyId; return 0 == companyId;
} }
......
...@@ -20,7 +20,6 @@ public class EnterpriseBondCreditRatingBody ...@@ -20,7 +20,6 @@ public class EnterpriseBondCreditRatingBody
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -30,7 +30,6 @@ public class EnterpriseBussinessBidCooperatePageBody extends BasePage { ...@@ -30,7 +30,6 @@ public class EnterpriseBussinessBidCooperatePageBody extends BasePage {
*/ */
private String keys; private String keys;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == tendereeId || 0 == agencyId; return 0 == tendereeId || 0 == agencyId;
} }
......
...@@ -32,7 +32,6 @@ public class EnterpriseBussinessClientPageBody extends BasePage { ...@@ -32,7 +32,6 @@ public class EnterpriseBussinessClientPageBody extends BasePage {
*/ */
private Integer sort; private Integer sort;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -31,7 +31,6 @@ public class EnterpriseBussinessClientProjectPageBody extends BasePage { ...@@ -31,7 +31,6 @@ public class EnterpriseBussinessClientProjectPageBody extends BasePage {
private String keys; private String keys;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid || 0 == unitId; return 0 == cid || 0 == unitId;
} }
......
...@@ -54,7 +54,6 @@ public class EnterpriseBussinessHistorySendPageBody extends BasePage { ...@@ -54,7 +54,6 @@ public class EnterpriseBussinessHistorySendPageBody extends BasePage {
*/ */
private Double amountMax; private Double amountMax;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -18,7 +18,7 @@ public class EnterpriseBussinessHistorySendProvinceBody { ...@@ -18,7 +18,7 @@ public class EnterpriseBussinessHistorySendProvinceBody {
*/ */
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -31,7 +31,6 @@ public class EnterpriseBussinessOftenAgencyPageBody extends BasePage { ...@@ -31,7 +31,6 @@ public class EnterpriseBussinessOftenAgencyPageBody extends BasePage {
*/ */
private Integer sort; private Integer sort;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -31,7 +31,6 @@ public class EnterpriseBussinessSupplierPageBody extends BasePage { ...@@ -31,7 +31,6 @@ public class EnterpriseBussinessSupplierPageBody extends BasePage {
*/ */
private Integer sort; private Integer sort;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -31,7 +31,6 @@ public class EnterpriseBussinessSupplierProjectPageBody extends BasePage { ...@@ -31,7 +31,6 @@ public class EnterpriseBussinessSupplierProjectPageBody extends BasePage {
private String keys; private String keys;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid || 0 == unitId; return 0 == cid || 0 == unitId;
} }
......
...@@ -26,7 +26,6 @@ public class EnterpriseBussinessTenderPageBody extends BasePage { ...@@ -26,7 +26,6 @@ public class EnterpriseBussinessTenderPageBody extends BasePage {
private String keys; private String keys;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -21,7 +21,6 @@ public class EnterpriseChangeInfoBody extends BasePage ...@@ -21,7 +21,6 @@ public class EnterpriseChangeInfoBody extends BasePage
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -26,7 +26,6 @@ public class EnterpriseCreditAbnormalPageBody extends BasePage { ...@@ -26,7 +26,6 @@ public class EnterpriseCreditAbnormalPageBody extends BasePage {
private List<String> years; private List<String> years;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -20,8 +20,6 @@ public class EnterpriseCreditAbnormalYearsBody { ...@@ -20,8 +20,6 @@ public class EnterpriseCreditAbnormalYearsBody {
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -27,7 +27,6 @@ public class EnterpriseCreditExecutedPageBody extends BasePage { ...@@ -27,7 +27,6 @@ public class EnterpriseCreditExecutedPageBody extends BasePage {
*/ */
private String dateTo; private String dateTo;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -29,7 +29,6 @@ public class EnterpriseCreditExecutedPersonsPageBody extends BasePage { ...@@ -29,7 +29,6 @@ public class EnterpriseCreditExecutedPersonsPageBody extends BasePage {
*/ */
private String dateTo; private String dateTo;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -20,7 +20,6 @@ public class EnterpriseCreditKaitingCauseActionBody { ...@@ -20,7 +20,6 @@ public class EnterpriseCreditKaitingCauseActionBody {
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -45,7 +45,6 @@ public class EnterpriseCreditKaitingPageBody extends BasePage { ...@@ -45,7 +45,6 @@ public class EnterpriseCreditKaitingPageBody extends BasePage {
private String dateTo; private String dateTo;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -19,7 +19,6 @@ public class EnterpriseCreditKaitingPureRoleBody { ...@@ -19,7 +19,6 @@ public class EnterpriseCreditKaitingPureRoleBody {
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -19,7 +19,6 @@ public class EnterpriseCreditLawsuitsCauseActionBody { ...@@ -19,7 +19,6 @@ public class EnterpriseCreditLawsuitsCauseActionBody {
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -42,7 +42,6 @@ public class EnterpriseCreditLawsuitsPageBody extends BasePage { ...@@ -42,7 +42,6 @@ public class EnterpriseCreditLawsuitsPageBody extends BasePage {
*/ */
private String dateTo; private String dateTo;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -19,7 +19,6 @@ public class EnterpriseCreditLawsuitsRoleBody { ...@@ -19,7 +19,6 @@ public class EnterpriseCreditLawsuitsRoleBody {
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -19,7 +19,6 @@ public class EnterpriseCreditNoticeCaseReasonBody { ...@@ -19,7 +19,6 @@ public class EnterpriseCreditNoticeCaseReasonBody {
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -44,7 +44,6 @@ public class EnterpriseCreditNoticePageBody extends BasePage { ...@@ -44,7 +44,6 @@ public class EnterpriseCreditNoticePageBody extends BasePage {
*/ */
private String dateTo; private String dateTo;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -19,7 +19,6 @@ public class EnterpriseCreditNoticeRoleBody { ...@@ -19,7 +19,6 @@ public class EnterpriseCreditNoticeRoleBody {
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -19,7 +19,6 @@ public class EnterpriseCreditNoticeTypeBody { ...@@ -19,7 +19,6 @@ public class EnterpriseCreditNoticeTypeBody {
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -30,7 +30,6 @@ public class EnterpriseCreditPenalizePageBody extends BasePage { ...@@ -30,7 +30,6 @@ public class EnterpriseCreditPenalizePageBody extends BasePage {
private String keys; private String keys;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -20,7 +20,6 @@ public class EnterpriseCreditPenalizeReasonTypeBody { ...@@ -20,7 +20,6 @@ public class EnterpriseCreditPenalizeReasonTypeBody {
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -21,7 +21,6 @@ public class EnterpriseDynamicPageBody extends BasePage ...@@ -21,7 +21,6 @@ public class EnterpriseDynamicPageBody extends BasePage
private Integer companyId; private Integer companyId;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == companyId; return 0 == companyId;
} }
......
...@@ -21,7 +21,6 @@ public class EnterpriseFinancialBody ...@@ -21,7 +21,6 @@ public class EnterpriseFinancialBody
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -21,7 +21,6 @@ public class EnterpriseIcInfoBody extends BasePage ...@@ -21,7 +21,6 @@ public class EnterpriseIcInfoBody extends BasePage
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -21,7 +21,6 @@ public class EnterpriseInfoHeaderBody ...@@ -21,7 +21,6 @@ public class EnterpriseInfoHeaderBody
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer companyId; private Integer companyId;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == companyId; return 0 == companyId;
} }
......
...@@ -22,7 +22,6 @@ public class EnterpriseInvestmentBody extends BasePage { ...@@ -22,7 +22,6 @@ public class EnterpriseInvestmentBody extends BasePage {
private double stockPercentageMin; private double stockPercentageMin;
private double stockPercentageMax; private double stockPercentageMax;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -20,7 +20,6 @@ public class EnterpriseKeymembersBody extends BasePage ...@@ -20,7 +20,6 @@ public class EnterpriseKeymembersBody extends BasePage
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -19,7 +19,6 @@ public class EnterprisePartnersBody extends BasePage { ...@@ -19,7 +19,6 @@ public class EnterprisePartnersBody extends BasePage {
@NotNull(message = "企业id不能为空") @NotNull(message = "企业id不能为空")
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -32,7 +32,6 @@ public class EnterpriseProjectApprovalProjectPageBody extends BasePage { ...@@ -32,7 +32,6 @@ public class EnterpriseProjectApprovalProjectPageBody extends BasePage {
private Integer sort; private Integer sort;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -20,7 +20,6 @@ public class EnterpriseProjectBidNoticeAreaBody { ...@@ -20,7 +20,6 @@ public class EnterpriseProjectBidNoticeAreaBody {
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -51,7 +51,6 @@ public class EnterpriseProjectBidNoticePageBody extends BasePage { ...@@ -51,7 +51,6 @@ public class EnterpriseProjectBidNoticePageBody extends BasePage {
private List<Integer> areaIds; private List<Integer> areaIds;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -20,7 +20,6 @@ public class EnterpriseProjectBidNoticeProAssessmentWayBody { ...@@ -20,7 +20,6 @@ public class EnterpriseProjectBidNoticeProAssessmentWayBody {
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -41,7 +41,6 @@ public class EnterpriseProjectBidNoticeProPageBody extends BasePage { ...@@ -41,7 +41,6 @@ public class EnterpriseProjectBidNoticeProPageBody extends BasePage {
private String bidAssessmentWay; private String bidAssessmentWay;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -20,7 +20,6 @@ public class EnterpriseProjectBidNoticeProProjectPurposesBody { ...@@ -20,7 +20,6 @@ public class EnterpriseProjectBidNoticeProProjectPurposesBody {
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -20,7 +20,6 @@ public class EnterpriseProjectBidNoticeProProjectTypeBody { ...@@ -20,7 +20,6 @@ public class EnterpriseProjectBidNoticeProProjectTypeBody {
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -21,7 +21,6 @@ public class EnterpriseProjectBidNoticeTenderStageBody { ...@@ -21,7 +21,6 @@ public class EnterpriseProjectBidNoticeTenderStageBody {
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -30,7 +30,6 @@ public class EnterpriseProjectBidPlanPageBody extends BasePage { ...@@ -30,7 +30,6 @@ public class EnterpriseProjectBidPlanPageBody extends BasePage {
*/ */
private Integer sort; private Integer sort;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -24,7 +24,6 @@ public class EnterpriseProjectCreditXzxkPageBody extends BasePage { ...@@ -24,7 +24,6 @@ public class EnterpriseProjectCreditXzxkPageBody extends BasePage {
*/ */
private String keys; private String keys;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -37,7 +37,6 @@ public class EnterpriseProjectLandTransactionPageBody extends BasePage { ...@@ -37,7 +37,6 @@ public class EnterpriseProjectLandTransactionPageBody extends BasePage {
private Integer sort; private Integer sort;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -21,7 +21,6 @@ public class EnterpriseProjectLandUseBody { ...@@ -21,7 +21,6 @@ public class EnterpriseProjectLandUseBody {
private Integer cid; private Integer cid;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -29,4 +29,7 @@ public class EnterpriseProjectSpecialDebtProjectPageBody extends BasePage { ...@@ -29,4 +29,7 @@ public class EnterpriseProjectSpecialDebtProjectPageBody extends BasePage {
*/ */
private Integer sort; private Integer sort;
public boolean isVaildCid() {
return 0 == cid;
}
} }
...@@ -23,7 +23,6 @@ public class EnterpriseProjectTenderDataGroupBody { ...@@ -23,7 +23,6 @@ public class EnterpriseProjectTenderDataGroupBody {
private Integer type; private Integer type;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
} }
......
...@@ -22,7 +22,6 @@ public class EnterpriseStatisticBody ...@@ -22,7 +22,6 @@ public class EnterpriseStatisticBody
private Boolean isFy = false; private Boolean isFy = false;
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == companyId; return 0 == companyId;
} }
......
...@@ -42,7 +42,6 @@ public class EnterpriseSupplierPageBody extends BasePage { ...@@ -42,7 +42,6 @@ public class EnterpriseSupplierPageBody extends BasePage {
return sb.toString(); return sb.toString();
} }
@AssertFalse(message = "企业不存在")
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == companyId; return 0 == companyId;
} }
......
...@@ -76,9 +76,9 @@ ...@@ -76,9 +76,9 @@
</el-form-item> </el-form-item>
</div> </div>
<div class="elcol"> <div class="elcol">
<el-form-item label="项目类型:" prop="projectType"> <el-form-item label="项目类别:" prop="projectCategory">
<el-select v-model="addParam.projectType" style="width: 175px" class="form-content-width" placeholder="请选择项目类型"> <el-select v-model="addParam.projectCategory" style="width: 175px" class="form-content-width" placeholder="请选择项目类别">
<el-option v-for="(item, index) in projectType" :key="index" :label="item.dictLabel" :value="item.dictValue" /> <el-option v-for="(item, index) in projectCategory" :key="index" :label="item.dictLabel" :value="item.dictValue" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
...@@ -86,9 +86,9 @@ ...@@ -86,9 +86,9 @@
<div class="erow"> <div class="erow">
<div class="elcol"> <div class="elcol">
<el-form-item label="项目类别:" prop="projectCategory"> <el-form-item label="项目状态:" prop="status">
<el-select v-model="addParam.projectCategory" style="width: 175px" class="form-content-width" placeholder="请选择项目类别"> <el-select v-model="addParam.status" style="width: 175px" class="form-content-width" placeholder="请选择项目状态">
<el-option v-for="(item, index) in projectCategory" :key="index" :label="item.dictLabel" :value="item.dictValue" /> <el-option v-for="(item, index) in status" :key="index" :label="item.dictLabel" :value="item.dictValue" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
...@@ -188,6 +188,7 @@ export default { ...@@ -188,6 +188,7 @@ export default {
projectStage:'', projectStage:'',
projectCategory:'', projectCategory:'',
investmentAmount:'', investmentAmount:'',
status:'',
isPrivate:0, isPrivate:0,
customerId:'', customerId:'',
}, },
...@@ -202,6 +203,7 @@ export default { ...@@ -202,6 +203,7 @@ export default {
projectStage:[], //项目阶段 projectStage:[], //项目阶段
projectType:[], //项目类型 projectType:[], //项目类型
projectCategory:[], //项目类别 projectCategory:[], //项目类别
status:[], //项目状态
isPrivate:[ isPrivate:[
{ {
value: 0, value: 0,
...@@ -342,6 +344,7 @@ export default { ...@@ -342,6 +344,7 @@ export default {
value:res.data[i].dictValue value:res.data[i].dictValue
}) })
} }
this.status = res.data
} }
}) })
}, },
......
...@@ -219,18 +219,20 @@ export default { ...@@ -219,18 +219,20 @@ export default {
}, },
// 判断客户是否关联显示修改 // 判断客户是否关联显示修改
association(id){ association(id){
customerInfo(id).then(res=>{ if(id) {
if(res.code == 200){ customerInfo(id).then(res => {
if(res.data.companyId == this.companyId && res.data.userId == this.$store.state.user.userId){ if (res.code == 200) {
this.customerInfo = res.data if (res.data.companyId == this.companyId && res.data.userId == this.$store.state.user.userId) {
this.customerId = res.data.customerId this.customerInfo = res.data
}else{ this.customerId = res.data.customerId
this.currentPath.pathName = 'overview' } else {
this.currentPath.pathName = 'overview'
}
} }
} }).catch(err => {
}).catch(err=>{ this.currentPath.pathName = 'overview'
this.currentPath.pathName = 'overview' })
}) }
} }
} }
......
...@@ -592,6 +592,7 @@ export default { ...@@ -592,6 +592,7 @@ export default {
if(res.code === 200){ if(res.code === 200){
this.claimVisible=true; this.claimVisible=true;
this.customerId=res.data.customerId; this.customerId=res.data.customerId;
this.querySubmit()
} }
}) })
}, },
......
...@@ -4,10 +4,9 @@ ...@@ -4,10 +4,9 @@
<template v-if="!detailId"> <template v-if="!detailId">
<span>项目管理</span> <span>项目管理</span>
<span class="on" @click="tolist"> / 商机列表</span> <span class="on" @click="tolist"> / 商机列表</span>
<span> / 项目详情</span>
</template> </template>
<!-- <span class="on" v-else @click="cooperateList">合作情况</span>--> <span class="on" v-else @click="cooperateList">合作情况</span>
<!-- <span> / 项目详情</span>--> <span> / 项目详情</span>
</div> </div>
<div class="app-container" v-if="ProjectData"> <div class="app-container" v-if="ProjectData">
<el-card class="box-card noborder pad16 overflows"> <el-card class="box-card noborder pad16 overflows">
......
...@@ -40,6 +40,11 @@ public class BusinessAddDto { ...@@ -40,6 +40,11 @@ public class BusinessAddDto {
*/ */
private String projectStage; private String projectStage;
/**
* 项目状态(0.储备中1.跟进中2.已合作)
*/
private Integer status;
/** /**
* 业主单位 * 业主单位
*/ */
......
package com.dsk.system.domain;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* 行政区编码表(SysRegion)实体类
*
* @author makejava
* @since 2023-06-28 11:23:12
*/
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sys_region")
public class SysRegion implements Serializable {
private static final long serialVersionUID = -17128129449360485L;
/**
* 行政区编码(数字型)
*/
private Integer id;
/**
* 行政区名称
*/
private String regionName;
/**
* 行政区名称(最新)
*/
private String fullName;
/**
* 行政区简称
*/
private String nameSimple;
/**
* 行政区编码(字符型)
*/
private String regionCode;
/**
* 行政区等级:1:省级,2:地市,3:区县,4:乡镇,
*/
private Integer regionLevel;
/**
* 父级id
*/
private Integer parentId;
/**
* 行政区类型:0:其他,1:省,2:直辖市,3:特别行政区,4:自治区
*/
private Integer regionType;
/**
* 权重
*/
private Integer weight;
/**
* 备注
*/
private String remark;
/**
* 0:开启,1:准备中,2:关闭
*/
private Integer status;
private Date createTime;
private Date updateTime;
private Integer updateId;
}
...@@ -13,6 +13,7 @@ import org.slf4j.LoggerFactory; ...@@ -13,6 +13,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -27,12 +28,14 @@ public class EnterpriseBussinessService { ...@@ -27,12 +28,14 @@ public class EnterpriseBussinessService {
public TableDataInfo clientPage(EnterpriseBussinessClientPageBody body) throws Exception { public TableDataInfo clientPage(EnterpriseBussinessClientPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/clientPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/clientPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public Map<String, Object> clientProjectPage(EnterpriseBussinessClientProjectPageBody body) throws Exception { public Map<String, Object> clientProjectPage(EnterpriseBussinessClientProjectPageBody body) throws Exception {
if (body.isVaildCid()) return null;
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/clientProjectPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/clientProjectPage", BeanUtil.beanToMap(body, false, false));
Integer code = MapUtils.getInteger(map, "code", 300); Integer code = MapUtils.getInteger(map, "code", 300);
Map data = MapUtils.getMap(map, "data", null); Map data = MapUtils.getMap(map, "data", null);
...@@ -47,6 +50,7 @@ public class EnterpriseBussinessService { ...@@ -47,6 +50,7 @@ public class EnterpriseBussinessService {
public TableDataInfo tenderPage(EnterpriseBussinessTenderPageBody body) throws Exception { public TableDataInfo tenderPage(EnterpriseBussinessTenderPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);;
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/tenderPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/tenderPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
...@@ -83,12 +87,14 @@ public class EnterpriseBussinessService { ...@@ -83,12 +87,14 @@ public class EnterpriseBussinessService {
public TableDataInfo supplierPage(EnterpriseBussinessSupplierPageBody body) throws Exception { public TableDataInfo supplierPage(EnterpriseBussinessSupplierPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/supplierPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/supplierPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public Map<String, Object> supplierProjectPage(EnterpriseBussinessSupplierProjectPageBody body) throws Exception { public Map<String, Object> supplierProjectPage(EnterpriseBussinessSupplierProjectPageBody body) throws Exception {
if (body.isVaildCid()) return null;
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/supplierProjectPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/supplierProjectPage", BeanUtil.beanToMap(body, false, false));
log.info(JSONUtil.toJsonStr(map)); log.info(JSONUtil.toJsonStr(map));
Integer code = MapUtils.getInteger(map, "code", 300); Integer code = MapUtils.getInteger(map, "code", 300);
...@@ -110,24 +116,28 @@ public class EnterpriseBussinessService { ...@@ -110,24 +116,28 @@ public class EnterpriseBussinessService {
public TableDataInfo oftenAgencyPage(EnterpriseBussinessOftenAgencyPageBody body) throws Exception { public TableDataInfo oftenAgencyPage(EnterpriseBussinessOftenAgencyPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/oftenAgencyPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/oftenAgencyPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public TableDataInfo bidCooperatePage(EnterpriseBussinessBidCooperatePageBody body) throws Exception { public TableDataInfo bidCooperatePage(EnterpriseBussinessBidCooperatePageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/bidCooperatePage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/bidCooperatePage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public TableDataInfo historySendPage(EnterpriseBussinessHistorySendPageBody body) throws Exception { public TableDataInfo historySendPage(EnterpriseBussinessHistorySendPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/historySendPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/historySendPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public R historySendProvince(EnterpriseBussinessHistorySendProvinceBody body) throws Exception { public R historySendProvince(EnterpriseBussinessHistorySendProvinceBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/historySendProvince", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/historySendProvince", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
......
...@@ -13,6 +13,7 @@ import org.slf4j.LoggerFactory; ...@@ -13,6 +13,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -28,96 +29,112 @@ public class EnterpriseCreditService { ...@@ -28,96 +29,112 @@ public class EnterpriseCreditService {
public TableDataInfo penalizePage(EnterpriseCreditPenalizePageBody body) throws Exception { public TableDataInfo penalizePage(EnterpriseCreditPenalizePageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/penalizePage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/penalizePage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public R penalizeReasonType(EnterpriseCreditPenalizeReasonTypeBody body) throws Exception { public R penalizeReasonType(EnterpriseCreditPenalizeReasonTypeBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/penalizeReasonType", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/penalizeReasonType", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public TableDataInfo abnormalPage(EnterpriseCreditAbnormalPageBody body) throws Exception { public TableDataInfo abnormalPage(EnterpriseCreditAbnormalPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/abnormalPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/abnormalPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public R abnormalYears(EnterpriseCreditAbnormalYearsBody body) throws Exception { public R abnormalYears(EnterpriseCreditAbnormalYearsBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/abnormalYears", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/abnormalYears", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public TableDataInfo executedPersonsPage(EnterpriseCreditExecutedPersonsPageBody body) throws Exception { public TableDataInfo executedPersonsPage(EnterpriseCreditExecutedPersonsPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/executedPersonsPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/executedPersonsPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public TableDataInfo executedPage(EnterpriseCreditExecutedPageBody body) throws Exception { public TableDataInfo executedPage(EnterpriseCreditExecutedPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/executedPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/executedPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public TableDataInfo lawsuitsPage(EnterpriseCreditLawsuitsPageBody body) throws Exception { public TableDataInfo lawsuitsPage(EnterpriseCreditLawsuitsPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/lawsuitsPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/lawsuitsPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public R lawsuitsCauseAction(EnterpriseCreditLawsuitsCauseActionBody body) throws Exception { public R lawsuitsCauseAction(EnterpriseCreditLawsuitsCauseActionBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/lawsuitsCauseAction", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/lawsuitsCauseAction", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public R lawsuitsRole(EnterpriseCreditLawsuitsRoleBody body) throws Exception { public R lawsuitsRole(EnterpriseCreditLawsuitsRoleBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/lawsuitsRole", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/lawsuitsRole", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public TableDataInfo noticesPage(EnterpriseCreditNoticePageBody body) throws Exception { public TableDataInfo noticesPage(EnterpriseCreditNoticePageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/noticesPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/noticesPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public R noticesType(EnterpriseCreditNoticeTypeBody body) throws Exception { public R noticesType(EnterpriseCreditNoticeTypeBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/noticesType", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/noticesType", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public R noticesRole(EnterpriseCreditNoticeRoleBody body) throws Exception { public R noticesRole(EnterpriseCreditNoticeRoleBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/noticesRole", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/noticesRole", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public R noticesCaseReason(EnterpriseCreditNoticeCaseReasonBody body) throws Exception { public R noticesCaseReason(EnterpriseCreditNoticeCaseReasonBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/noticesCaseReason", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/noticesCaseReason", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public TableDataInfo kaitingPage(EnterpriseCreditKaitingPageBody body) throws Exception { public TableDataInfo kaitingPage(EnterpriseCreditKaitingPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/kaitingPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/kaitingPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public R kaitingCauseAction(EnterpriseCreditKaitingCauseActionBody body) throws Exception { public R kaitingCauseAction(EnterpriseCreditKaitingCauseActionBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/kaitingCauseAction", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/kaitingCauseAction", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public R kaitingPureRole(EnterpriseCreditKaitingPureRoleBody body) throws Exception { public R kaitingPureRole(EnterpriseCreditKaitingPureRoleBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/kaitingPureRole", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCredit/kaitingPureRole", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
......
...@@ -13,6 +13,7 @@ import org.slf4j.LoggerFactory; ...@@ -13,6 +13,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
...@@ -26,12 +27,14 @@ public class EnterpriseProjectService { ...@@ -26,12 +27,14 @@ public class EnterpriseProjectService {
public TableDataInfo landTransactionPage(EnterpriseProjectLandTransactionPageBody body) throws Exception { public TableDataInfo landTransactionPage(EnterpriseProjectLandTransactionPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/landTransactionPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/landTransactionPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public R landUse(EnterpriseProjectLandUseBody body) throws Exception { public R landUse(EnterpriseProjectLandUseBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/landUse", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/landUse", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
...@@ -44,6 +47,7 @@ public class EnterpriseProjectService { ...@@ -44,6 +47,7 @@ public class EnterpriseProjectService {
public TableDataInfo approvalProjectPage(EnterpriseProjectApprovalProjectPageBody body) throws Exception { public TableDataInfo approvalProjectPage(EnterpriseProjectApprovalProjectPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/approvalProjectPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/approvalProjectPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
...@@ -68,6 +72,7 @@ public class EnterpriseProjectService { ...@@ -68,6 +72,7 @@ public class EnterpriseProjectService {
public TableDataInfo specialDebtProjectPage(EnterpriseProjectSpecialDebtProjectPageBody body) throws Exception { public TableDataInfo specialDebtProjectPage(EnterpriseProjectSpecialDebtProjectPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/specialDebtProjectPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/specialDebtProjectPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
...@@ -84,18 +89,21 @@ public class EnterpriseProjectService { ...@@ -84,18 +89,21 @@ public class EnterpriseProjectService {
} }
public TableDataInfo bidNoticePage(EnterpriseProjectBidNoticePageBody body) throws Exception { public TableDataInfo bidNoticePage(EnterpriseProjectBidNoticePageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticePage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticePage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public R bidNoticeTenderStage(EnterpriseProjectBidNoticeTenderStageBody body) throws Exception { public R bidNoticeTenderStage(EnterpriseProjectBidNoticeTenderStageBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticeTenderStage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticeTenderStage", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public R bidNoticeArea(EnterpriseProjectBidNoticeAreaBody body) throws Exception { public R bidNoticeArea(EnterpriseProjectBidNoticeAreaBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticeArea", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticeArea", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
...@@ -108,6 +116,7 @@ public class EnterpriseProjectService { ...@@ -108,6 +116,7 @@ public class EnterpriseProjectService {
public TableDataInfo bidPlanPage(EnterpriseProjectBidPlanPageBody body) throws Exception { public TableDataInfo bidPlanPage(EnterpriseProjectBidPlanPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidPlanPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidPlanPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
...@@ -144,21 +153,25 @@ public class EnterpriseProjectService { ...@@ -144,21 +153,25 @@ public class EnterpriseProjectService {
public TableDataInfo bidNoticeProPage(EnterpriseProjectBidNoticeProPageBody body) throws Exception { public TableDataInfo bidNoticeProPage(EnterpriseProjectBidNoticeProPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticeProPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticeProPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public R bidNoticeProProjectType(EnterpriseProjectBidNoticeProProjectTypeBody body) throws Exception { public R bidNoticeProProjectType(EnterpriseProjectBidNoticeProProjectTypeBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticeProProjectType", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticeProProjectType", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public R bidNoticeProProjectPurposes(EnterpriseProjectBidNoticeProProjectPurposesBody body) throws Exception { public R bidNoticeProProjectPurposes(EnterpriseProjectBidNoticeProProjectPurposesBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticeProProjectPurposes", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticeProProjectPurposes", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public R bidNoticeProAssessmentWay(EnterpriseProjectBidNoticeProAssessmentWayBody body) throws Exception { public R bidNoticeProAssessmentWay(EnterpriseProjectBidNoticeProAssessmentWayBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticeProAssessmentWay", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/bidNoticeProAssessmentWay", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
...@@ -171,6 +184,7 @@ public class EnterpriseProjectService { ...@@ -171,6 +184,7 @@ public class EnterpriseProjectService {
public TableDataInfo creditXzxkPage(EnterpriseProjectCreditXzxkPageBody body) throws Exception { public TableDataInfo creditXzxkPage(EnterpriseProjectCreditXzxkPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/creditXzxkPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseProject/creditXzxkPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
......
...@@ -49,12 +49,15 @@ public class EnterpriseService { ...@@ -49,12 +49,15 @@ public class EnterpriseService {
private RedisCache redisCache; private RedisCache redisCache;
public R infoHeader(EnterpriseInfoHeaderBody body) throws Exception { public R infoHeader(EnterpriseInfoHeaderBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> companyMap = dskOpenApiUtil.requestBody("/api/jsk/enterprise/infoHeader", BeanUtil.beanToMap(body, false, false)); Map<String, Object> companyMap = dskOpenApiUtil.requestBody("/api/jsk/enterprise/infoHeader", BeanUtil.beanToMap(body, false, false));
Integer companyCode = MapUtils.getInteger(companyMap, "code", 300); Integer companyCode = MapUtils.getInteger(companyMap, "code", 300);
if (200 != companyCode) return R.ok(); if (200 != companyCode) return R.ok();
Map companyData = MapUtils.getMap(companyMap, "data", null); Map companyData = MapUtils.getMap(companyMap, "data", null);
companyData.put("claimStatus", 0);
companyData.put("uipId", null); companyData.put("uipId", null);
companyData.put("claimStatus", 0);
companyData.put("bratingSubjectLevel", null);
Map<String, Object> map = BeanUtil.beanToMap(body, false, false); Map<String, Object> map = BeanUtil.beanToMap(body, false, false);
map.put("cid", body.getCompanyId()); map.put("cid", body.getCompanyId());
...@@ -65,24 +68,27 @@ public class EnterpriseService { ...@@ -65,24 +68,27 @@ public class EnterpriseService {
Map uipData = MapUtils.getMap(uipMap, "data", new HashMap<>()); Map uipData = MapUtils.getMap(uipMap, "data", new HashMap<>());
String uipId = MapUtils.getString(uipData, "uipId", null); String uipId = MapUtils.getString(uipData, "uipId", null);
companyData.put("uipId", uipId);
if (ObjectUtil.isEmpty(uipId)) { if (!ObjectUtil.isEmpty(uipId)) {
return R.ok(companyData); ArrayList<String> uipIds = new ArrayList<>();
uipIds.add(uipId);
companyData.put("claimStatus", CollectionUtils.isEmpty(iCustomerService.selectStatusList(uipIds)) ? 0 : 1);
} }
companyData.put("uipId", uipId); Map<String, Object> bondCreditRatingMap = dskOpenApiUtil.requestBody("/operate/enterprise/bondCreditRating", map);
ArrayList<String> uipIds = new ArrayList<>(); Integer bondCreditRatingCode = MapUtils.getInteger(bondCreditRatingMap, "code", 300);
uipIds.add(uipId); if (200 != bondCreditRatingCode) return R.ok(companyData);
List<CustomerStatusListVo> claimStatusList = iCustomerService.selectStatusList(uipIds);
if (CollectionUtils.isNotEmpty(claimStatusList)) { List<Map<String, Object>> bondCreditRatingList = (List<Map<String, Object>>)MapUtils.getObject(bondCreditRatingMap, "data", new ArrayList<>());
companyData.put("claimStatus", 1); if (CollectionUtils.isEmpty(bondCreditRatingList)) return R.ok(companyData);
}
companyData.put("bratingSubjectLevel", MapUtils.getString(bondCreditRatingList.get(0), "bratingSubjectLevel", null));
return R.ok(companyData); return R.ok(companyData);
} }
public R statistic(EnterpriseStatisticBody body) throws Exception { public R statistic(EnterpriseStatisticBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> statisticMap = dskOpenApiUtil.requestBody("/api/jsk/enterprise/statistic", BeanUtil.beanToMap(body, false, false)); Map<String, Object> statisticMap = dskOpenApiUtil.requestBody("/api/jsk/enterprise/statistic", BeanUtil.beanToMap(body, false, false));
Integer statisticMapCode = MapUtils.getInteger(statisticMap, "code", 300); Integer statisticMapCode = MapUtils.getInteger(statisticMap, "code", 300);
...@@ -113,58 +119,68 @@ public class EnterpriseService { ...@@ -113,58 +119,68 @@ public class EnterpriseService {
} }
public R bidDataGroup(EnterpriseBidDataGroupBody body) throws Exception { public R bidDataGroup(EnterpriseBidDataGroupBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/bidDataGroup", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/bidDataGroup", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public R projectTenderDataGroup(EnterpriseProjectTenderDataGroupBody body) throws Exception { public R projectTenderDataGroup(EnterpriseProjectTenderDataGroupBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/projectTenderDataGroup", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/projectTenderDataGroup", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
//todo 新数据,待入库 //todo 新数据,待入库
public TableDataInfo partners(EnterprisePartnersBody body) throws Exception { public TableDataInfo partners(EnterprisePartnersBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/partners", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/partners", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public TableDataInfo investment(EnterpriseInvestmentBody body) throws Exception { public TableDataInfo investment(EnterpriseInvestmentBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/investment", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/investment", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public TableDataInfo affiliates(EnterpriseAffiliatesBody body) throws Exception { public TableDataInfo affiliates(EnterpriseAffiliatesBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/affiliates", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/affiliates", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public TableDataInfo dynamicPage(EnterpriseDynamicPageBody body) throws Exception { public TableDataInfo dynamicPage(EnterpriseDynamicPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/api/jsk/enterprise/dynamic", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/api/jsk/enterprise/dynamic", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public R icInfo(EnterpriseIcInfoBody body) throws Exception { public R icInfo(EnterpriseIcInfoBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/icInfo", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/icInfo", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
public TableDataInfo changeInfo(EnterpriseChangeInfoBody body) throws Exception { public TableDataInfo changeInfo(EnterpriseChangeInfoBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/changeInfo", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/changeInfo", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public TableDataInfo keymembers(EnterpriseKeymembersBody body) throws Exception { public TableDataInfo keymembers(EnterpriseKeymembersBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/keymembers", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/keymembers", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public TableDataInfo bestStockPage(EnterpriseBestStockPageBody body) throws Exception { public TableDataInfo bestStockPage(EnterpriseBestStockPageBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/bestStockPage", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/bestStockPage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
public R financial(EnterpriseFinancialBody body) throws Exception { public R financial(EnterpriseFinancialBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/financial", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/financial", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
...@@ -234,6 +250,7 @@ public class EnterpriseService { ...@@ -234,6 +250,7 @@ public class EnterpriseService {
} }
public R bondCreditRating(EnterpriseBondCreditRatingBody body) throws Exception { public R bondCreditRating(EnterpriseBondCreditRatingBody body) throws Exception {
if (body.isVaildCid()) return R.ok();
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/bondCreditRating", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/bondCreditRating", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
......
package com.dsk.system.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dsk.system.domain.SysRegion;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 行政区编码表(SysRegion)表数据库访问层
*
* @author makejava
* @since 2023-06-28 11:23:13
*/
@Mapper
public interface SysRegionMapper extends BaseMapper<SysRegion> {
}
package com.dsk.system.service;
import com.dsk.system.domain.SysRegion;
import java.util.List;
/**
* 行政区编码表(SysRegion)表服务接口
*
* @author makejava
* @since 2023-06-28 11:23:12
*/
public interface SysRegionService {
List<SysRegion> selectByParentId(Integer parentId);
}
...@@ -106,9 +106,8 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService { ...@@ -106,9 +106,8 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
//商务团队 //商务团队
businessBrowseVo.setTeam(businessUserMapper.selectCreatorByBusinessId(businessId)); businessBrowseVo.setTeam(businessUserMapper.selectCreatorByBusinessId(businessId));
//查询是否是项目创建人 //查询是否是项目创建人
// Long userId = SecurityUtils.getLoginUser().getUserId(); Long userId = SecurityUtils.getLoginUser().getUserId();
// if (userId == null) throw new BaseException("请登录"); if (userId == null) throw new BaseException("请登录");
Long userId = 103l;
Integer founder = businessUserMapper.selectFounder(businessId, userId); Integer founder = businessUserMapper.selectFounder(businessId, userId);
businessBrowseVo.setIsFounder(founder == null ? 0 : founder); businessBrowseVo.setIsFounder(founder == null ? 0 : founder);
//查询项目标签 //查询项目标签
...@@ -135,7 +134,6 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService { ...@@ -135,7 +134,6 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
public AjaxResult batchUpload(MultipartFile file) { public AjaxResult batchUpload(MultipartFile file) {
//获取当前登录用户id //获取当前登录用户id
Long userId = SecurityUtils.getLoginUser().getUserId(); Long userId = SecurityUtils.getLoginUser().getUserId();
// Long userId = 103L;
if (userId == null) return AjaxResult.error("请登录"); if (userId == null) return AjaxResult.error("请登录");
int row = 3;//起始行数 int row = 3;//起始行数
int rowSuccess = 0;//成功条数 int rowSuccess = 0;//成功条数
...@@ -196,7 +194,6 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService { ...@@ -196,7 +194,6 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
if (addBusiness > 0) { if (addBusiness > 0) {
//获取登陆用户的部门id //获取登陆用户的部门id
Long deptId = SecurityUtils.getLoginUser().getDeptId(); Long deptId = SecurityUtils.getLoginUser().getDeptId();
// Long deptId = 100l;
//新增用户-项目关系信息 //新增用户-项目关系信息
int addbusinessUser = businessUserMapper.insertBusinessUser(new BusinessUser(businessInfo.getId(), deptId.intValue(), dto.getUserId(), 1)); int addbusinessUser = businessUserMapper.insertBusinessUser(new BusinessUser(businessInfo.getId(), deptId.intValue(), dto.getUserId(), 1));
return addbusinessUser > 0 ? AjaxResult.success() : AjaxResult.error(); return addbusinessUser > 0 ? AjaxResult.success() : AjaxResult.error();
......
package com.dsk.system.service.impl;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.dsk.system.domain.SysRegion;
import com.dsk.system.mapper.SysRegionMapper;
import com.dsk.system.service.SysRegionService;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
import javax.annotation.Resource;
import java.util.List;
/**
* 行政区编码表(SysRegion)表服务实现类
*
* @author makejava
* @since 2023-06-28 11:23:12
*/
@Service("sysRegionService")
public class SysRegionServiceImpl implements SysRegionService {
@Resource
private SysRegionMapper baseMapper;
private static final Integer ACQUIESCE_PARENT_ID = 100000;
@Override
public List<SysRegion> selectByParentId(Integer parentId) {
return baseMapper.selectList(Wrappers.<SysRegion>lambdaQuery()
.eq(SysRegion::getParentId, ObjectUtils.isEmpty(parentId) ? ACQUIESCE_PARENT_ID : parentId)
.orderByAsc(SysRegion::getId));
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dsk.system.mapper.SysRegionMapper">
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment