@@ -56,7 +56,7 @@ public class GeneratorCodeKingbaseConfig { | |||||
} | } | ||||
public static void main(String[] args) { | public static void main(String[] args) { | ||||
generate("Liuxinxin", "organization", PATH_LXX, "organization_tag"); | |||||
generate("Liuxinxin", "organization", PATH_LXX, "gov_business_strip"); | |||||
} | } | ||||
} | } |
@@ -0,0 +1,19 @@ | |||||
package com.ningdatech.pmapi.ding.task; | |||||
import org.springframework.stereotype.Component; | |||||
/** | |||||
* @author liuxinxin | |||||
* @date 2023/3/8 下午2:55 | |||||
*/ | |||||
@Component | |||||
public class GovBusinessStripsTask { | |||||
private final static Integer PAGE_SIZE = 20; | |||||
private final static Integer GROUP_SIZE = 100; | |||||
} |
@@ -46,8 +46,6 @@ public class ExpertInfoCmdAssembler { | |||||
} | } | ||||
private static List<ExpertAvoidCompanyDTO> buildExpertAvoidCompanyList(ExpertProfessionalInfo professionalInfo) { | private static List<ExpertAvoidCompanyDTO> buildExpertAvoidCompanyList(ExpertProfessionalInfo professionalInfo) { | ||||
List<ExpertAvoidCompanyDTO> expertAvoidCompanyList = new ArrayList<>(); | List<ExpertAvoidCompanyDTO> expertAvoidCompanyList = new ArrayList<>(); | ||||
List<ExpertAvoidCompanyInfo> avoidCompanyList = professionalInfo.getAvoidCompanyList(); | List<ExpertAvoidCompanyInfo> avoidCompanyList = professionalInfo.getAvoidCompanyList(); | ||||
@@ -47,5 +47,4 @@ public class DingOrganizationController { | |||||
public List<OrganizationTreeVO> getChildOrganizationList(@RequestParam(value = "parentCode", required = false) String parentCode) { | public List<OrganizationTreeVO> getChildOrganizationList(@RequestParam(value = "parentCode", required = false) String parentCode) { | ||||
return organizationManage.getChildOrganizationList(parentCode); | return organizationManage.getChildOrganizationList(parentCode); | ||||
} | } | ||||
} | } |
@@ -0,0 +1,20 @@ | |||||
package com.ningdatech.pmapi.organization.controller; | |||||
import org.springframework.web.bind.annotation.RequestMapping; | |||||
import org.springframework.stereotype.Controller; | |||||
/** | |||||
* <p> | |||||
* 前端控制器 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-03-08 | |||||
*/ | |||||
@Controller | |||||
@RequestMapping("/pmapi.organization/gov-business-strip") | |||||
public class GovBusinessStripController { | |||||
} |
@@ -0,0 +1,19 @@ | |||||
package com.ningdatech.pmapi.organization.controller; | |||||
import org.springframework.stereotype.Controller; | |||||
import org.springframework.web.bind.annotation.RequestMapping; | |||||
/** | |||||
* <p> | |||||
* 前端控制器 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-03-08 | |||||
*/ | |||||
@Controller | |||||
@RequestMapping("/pmapi.organization/meta-organization-line-tag") | |||||
public class MetaOrganizationLineTagController { | |||||
} |
@@ -18,5 +18,7 @@ import org.springframework.web.bind.annotation.RestController; | |||||
@RequestMapping("/api/v1/organization-tag") | @RequestMapping("/api/v1/organization-tag") | ||||
public class OrganizationTagController { | public class OrganizationTagController { | ||||
// @PostMapping("条线单位") | |||||
// private | |||||
} | } |
@@ -0,0 +1,38 @@ | |||||
package com.ningdatech.pmapi.organization.entity; | |||||
import com.baomidou.mybatisplus.annotation.TableName; | |||||
import io.swagger.annotations.ApiModel; | |||||
import lombok.Data; | |||||
import java.io.Serializable; | |||||
import java.time.LocalDateTime; | |||||
/** | |||||
* <p> | |||||
* | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-03-08 | |||||
*/ | |||||
@TableName("gov_business_strip") | |||||
@Data | |||||
@ApiModel(value = "GovBusinessStrip对象", description = "") | |||||
public class GovBusinessStrip implements Serializable { | |||||
private static final long serialVersionUID = 1L; | |||||
private Long id; | |||||
private LocalDateTime createOn; | |||||
private LocalDateTime updateOn; | |||||
private Long createBy; | |||||
private Long updateBy; | |||||
private String businessStripCode; | |||||
private String businessStripName; | |||||
} |
@@ -0,0 +1,109 @@ | |||||
package com.ningdatech.pmapi.organization.entity; | |||||
import com.baomidou.mybatisplus.annotation.TableName; | |||||
import java.io.Serializable; | |||||
import java.time.LocalDateTime; | |||||
import io.swagger.annotations.ApiModel; | |||||
import io.swagger.annotations.ApiModelProperty; | |||||
/** | |||||
* <p> | |||||
* | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-03-08 | |||||
*/ | |||||
@TableName("meta_organization_line_tag") | |||||
@ApiModel(value = "MetaOrganizationLineTag对象", description = "") | |||||
public class MetaOrganizationLineTag implements Serializable { | |||||
private static final long serialVersionUID = 1L; | |||||
private Long id; | |||||
private LocalDateTime createOn; | |||||
private LocalDateTime updateOn; | |||||
private Long createBy; | |||||
private Long updateBy; | |||||
private String lineTagName; | |||||
private Long lineTagLevel; | |||||
private String lineTagCode; | |||||
public Long getId() { | |||||
return id; | |||||
} | |||||
public void setId(Long id) { | |||||
this.id = id; | |||||
} | |||||
public LocalDateTime getCreateOn() { | |||||
return createOn; | |||||
} | |||||
public void setCreateOn(LocalDateTime createOn) { | |||||
this.createOn = createOn; | |||||
} | |||||
public LocalDateTime getUpdateOn() { | |||||
return updateOn; | |||||
} | |||||
public void setUpdateOn(LocalDateTime updateOn) { | |||||
this.updateOn = updateOn; | |||||
} | |||||
public Long getCreateBy() { | |||||
return createBy; | |||||
} | |||||
public void setCreateBy(Long createBy) { | |||||
this.createBy = createBy; | |||||
} | |||||
public Long getUpdateBy() { | |||||
return updateBy; | |||||
} | |||||
public void setUpdateBy(Long updateBy) { | |||||
this.updateBy = updateBy; | |||||
} | |||||
public String getLineTagName() { | |||||
return lineTagName; | |||||
} | |||||
public void setLineTagName(String lineTagName) { | |||||
this.lineTagName = lineTagName; | |||||
} | |||||
public Long getLineTagLevel() { | |||||
return lineTagLevel; | |||||
} | |||||
public void setLineTagLevel(Long lineTagLevel) { | |||||
this.lineTagLevel = lineTagLevel; | |||||
} | |||||
public String getLineTagCode() { | |||||
return lineTagCode; | |||||
} | |||||
public void setLineTagCode(String lineTagCode) { | |||||
this.lineTagCode = lineTagCode; | |||||
} | |||||
@Override | |||||
public String toString() { | |||||
return "MetaOrganizationLineTag{" + | |||||
"id=" + id + | |||||
", createOn=" + createOn + | |||||
", updateOn=" + updateOn + | |||||
", createBy=" + createBy + | |||||
", updateBy=" + updateBy + | |||||
", lineTagName=" + lineTagName + | |||||
", lineTagLevel=" + lineTagLevel + | |||||
", lineTagCode=" + lineTagCode + | |||||
"}"; | |||||
} | |||||
} |
@@ -2,6 +2,7 @@ package com.ningdatech.pmapi.organization.entity; | |||||
import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||
import io.swagger.annotations.ApiModel; | import io.swagger.annotations.ApiModel; | ||||
import lombok.Data; | |||||
import java.io.Serializable; | import java.io.Serializable; | ||||
import java.time.LocalDateTime; | import java.time.LocalDateTime; | ||||
@@ -15,6 +16,7 @@ import java.time.LocalDateTime; | |||||
* @since 2023-03-06 | * @since 2023-03-06 | ||||
*/ | */ | ||||
@TableName("organization_tag") | @TableName("organization_tag") | ||||
@Data | |||||
@ApiModel(value = "OrganizationTag对象", description = "") | @ApiModel(value = "OrganizationTag对象", description = "") | ||||
public class OrganizationTag implements Serializable { | public class OrganizationTag implements Serializable { | ||||
@@ -33,73 +35,4 @@ public class OrganizationTag implements Serializable { | |||||
private String organizationCode; | private String organizationCode; | ||||
private String tagCode; | private String tagCode; | ||||
public Long getId() { | |||||
return id; | |||||
} | |||||
public void setId(Long id) { | |||||
this.id = id; | |||||
} | |||||
public LocalDateTime getCreateOn() { | |||||
return createOn; | |||||
} | |||||
public void setCreateOn(LocalDateTime createOn) { | |||||
this.createOn = createOn; | |||||
} | |||||
public LocalDateTime getUpdateOn() { | |||||
return updateOn; | |||||
} | |||||
public void setUpdateOn(LocalDateTime updateOn) { | |||||
this.updateOn = updateOn; | |||||
} | |||||
public Long getCreateBy() { | |||||
return createBy; | |||||
} | |||||
public void setCreateBy(Long createBy) { | |||||
this.createBy = createBy; | |||||
} | |||||
public Long getUpdateBy() { | |||||
return updateBy; | |||||
} | |||||
public void setUpdateBy(Long updateBy) { | |||||
this.updateBy = updateBy; | |||||
} | |||||
public String getOrganizationCode() { | |||||
return organizationCode; | |||||
} | |||||
public void setOrganizationCode(String organizationCode) { | |||||
this.organizationCode = organizationCode; | |||||
} | |||||
public String getTagCode() { | |||||
return tagCode; | |||||
} | |||||
public void setTagCode(String tagCode) { | |||||
this.tagCode = tagCode; | |||||
} | |||||
@Override | |||||
public String toString() { | |||||
return "OrganizationTag{" + | |||||
"id=" + id + | |||||
", createOn=" + createOn + | |||||
", updateOn=" + updateOn + | |||||
", createBy=" + createBy + | |||||
", updateBy=" + updateBy + | |||||
", organizationCode=" + organizationCode + | |||||
", tagCode=" + tagCode + | |||||
"}"; | |||||
} | |||||
} | } |
@@ -0,0 +1,16 @@ | |||||
package com.ningdatech.pmapi.organization.helper; | |||||
/** | |||||
* @author liuxinxin | |||||
* @date 2023/3/8 上午9:53 | |||||
*/ | |||||
public interface LineOrganizationHelper { | |||||
void getLineOrganization(); | |||||
/** | |||||
* 获取上级条线主管单位 | |||||
*/ | |||||
void getSuperLineOrganization(); | |||||
} |
@@ -0,0 +1,16 @@ | |||||
package com.ningdatech.pmapi.organization.mapper; | |||||
import com.ningdatech.pmapi.organization.entity.GovBusinessStrip; | |||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||||
/** | |||||
* <p> | |||||
* Mapper 接口 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-03-08 | |||||
*/ | |||||
public interface GovBusinessStripMapper extends BaseMapper<GovBusinessStrip> { | |||||
} |
@@ -0,0 +1,5 @@ | |||||
<?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.ningdatech.pmapi.organization.mapper.GovBusinessStripMapper"> | |||||
</mapper> |
@@ -0,0 +1,16 @@ | |||||
package com.ningdatech.pmapi.organization.mapper; | |||||
import com.ningdatech.pmapi.organization.entity.MetaOrganizationLineTag; | |||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||||
/** | |||||
* <p> | |||||
* Mapper 接口 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-03-08 | |||||
*/ | |||||
public interface MetaOrganizationLineTagMapper extends BaseMapper<MetaOrganizationLineTag> { | |||||
} |
@@ -0,0 +1,5 @@ | |||||
<?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.ningdatech.pmapi.organization.mapper.MetaOrganizationLineTagMapper"> | |||||
</mapper> |
@@ -0,0 +1,16 @@ | |||||
package com.ningdatech.pmapi.organization.service; | |||||
import com.ningdatech.pmapi.organization.entity.GovBusinessStrip; | |||||
import com.baomidou.mybatisplus.extension.service.IService; | |||||
/** | |||||
* <p> | |||||
* 服务类 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-03-08 | |||||
*/ | |||||
public interface IGovBusinessStripService extends IService<GovBusinessStrip> { | |||||
} |
@@ -0,0 +1,16 @@ | |||||
package com.ningdatech.pmapi.organization.service; | |||||
import com.ningdatech.pmapi.organization.entity.MetaOrganizationLineTag; | |||||
import com.baomidou.mybatisplus.extension.service.IService; | |||||
/** | |||||
* <p> | |||||
* 服务类 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-03-08 | |||||
*/ | |||||
public interface IMetaOrganizationLineTagService extends IService<MetaOrganizationLineTag> { | |||||
} |
@@ -0,0 +1,20 @@ | |||||
package com.ningdatech.pmapi.organization.service.impl; | |||||
import com.ningdatech.pmapi.organization.entity.GovBusinessStrip; | |||||
import com.ningdatech.pmapi.organization.mapper.GovBusinessStripMapper; | |||||
import com.ningdatech.pmapi.organization.service.IGovBusinessStripService; | |||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |||||
import org.springframework.stereotype.Service; | |||||
/** | |||||
* <p> | |||||
* 服务实现类 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-03-08 | |||||
*/ | |||||
@Service | |||||
public class GovBusinessStripServiceImpl extends ServiceImpl<GovBusinessStripMapper, GovBusinessStrip> implements IGovBusinessStripService { | |||||
} |
@@ -0,0 +1,20 @@ | |||||
package com.ningdatech.pmapi.organization.service.impl; | |||||
import com.ningdatech.pmapi.organization.entity.MetaOrganizationLineTag; | |||||
import com.ningdatech.pmapi.organization.mapper.MetaOrganizationLineTagMapper; | |||||
import com.ningdatech.pmapi.organization.service.IMetaOrganizationLineTagService; | |||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |||||
import org.springframework.stereotype.Service; | |||||
/** | |||||
* <p> | |||||
* 服务实现类 | |||||
* </p> | |||||
* | |||||
* @author Liuxinxin | |||||
* @since 2023-03-08 | |||||
*/ | |||||
@Service | |||||
public class MetaOrganizationLineTagServiceImpl extends ServiceImpl<MetaOrganizationLineTagMapper, MetaOrganizationLineTag> implements IMetaOrganizationLineTagService { | |||||
} |