imple
MemberDepartmentMappingDO memberDepartmentMappingDO = new MemberDepartmentMappingDO();
memberDepartmentMappingDO.setMemberId(memberDO.getId());
memberDepartmentMappingDO.setDepartmentId(lg);
+ memberDepartmentMappingDO.setMemberStatus(1);
memberDepartmentMappingMapper.insert(memberDepartmentMappingDO);
}
}
diff --git a/src/main/java/com/subsidy/service/impl/ProductDictServiceImpl.java b/src/main/java/com/subsidy/service/impl/ProductDictServiceImpl.java
index 846224d..08df370 100644
--- a/src/main/java/com/subsidy/service/impl/ProductDictServiceImpl.java
+++ b/src/main/java/com/subsidy/service/impl/ProductDictServiceImpl.java
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.subsidy.common.exception.HttpException;
import com.subsidy.dto.product.AllProductsDTO;
+import com.subsidy.dto.product.ChangeOrderDTO;
import com.subsidy.model.ProductDictDO;
import com.subsidy.mapper.ProductDictMapper;
import com.subsidy.service.ProductDictService;
@@ -12,6 +13,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.subsidy.util.ConstantUtils;
import org.springframework.stereotype.Service;
+import java.util.List;
+
/**
*
* 产品管理字典表 服务实现类
@@ -26,7 +29,7 @@ public class ProductDictServiceImpl extends ServiceImpl allProducts(AllProductsDTO allProductsDTO) {
Page pager = new Page(allProductsDTO.getPageNum(), allProductsDTO.getPageSize());
- return this.baseMapper.allProducts(pager, allProductsDTO.getGroundingStatus(),allProductsDTO.getProductName());
+ return this.baseMapper.allProducts(pager, allProductsDTO.getGroundingStatus(),allProductsDTO.getProductName(),allProductsDTO.getProductType());
}
public String addProduct(ProductDictDO productDictDO) {
@@ -52,4 +55,17 @@ public class ProductDictServiceImpl extends ServiceImpl productDictDOS = changeOrderDTO.getProductDictDOS();
+
+ int i = 0;
+ for (ProductDictDO productDictDO : productDictDOS){
+ this.baseMapper.updateOrderNo(productDictDO.getId(),i++);
+ }
+
+ return ConstantUtils.SUCCESS_UPDATE;
+ }
+
+
}
diff --git a/src/main/java/com/subsidy/service/impl/ServiceAdministerMappingServiceImpl.java b/src/main/java/com/subsidy/service/impl/ServiceAdministerMappingServiceImpl.java
index 275abe8..2b18f97 100644
--- a/src/main/java/com/subsidy/service/impl/ServiceAdministerMappingServiceImpl.java
+++ b/src/main/java/com/subsidy/service/impl/ServiceAdministerMappingServiceImpl.java
@@ -38,9 +38,8 @@ public class ServiceAdministerMappingServiceImpl extends ServiceImpl implements ServiceCompanyFilesService {
@Autowired
- private ServiceCompanyMappingMapper serviceCompanyMappingMapper;
+ private ServiceFileTreeMapper serviceFileTreeMapper;
public IPage companyFiles(CompanyFilesDTO companyFilesDTO) {
Page pager = new Page(companyFilesDTO.getPageNum(), companyFilesDTO.getPageSize());
- return this.baseMapper.companyFiles(pager,companyFilesDTO.getFileType(),companyFilesDTO.getCompanyId(),companyFilesDTO.getServiceId(), companyFilesDTO.getFileName());
+
+ List treeIds = new ArrayList<>();
+ treeIds.add(companyFilesDTO.getTreeId());
+
+ ServiceFileTreeDO serviceFileTreeDO = serviceFileTreeMapper.selectById(companyFilesDTO.getTreeId());
+
+ if (null == serviceFileTreeDO.getParentId()){
+ //找出二级节点
+ List serviceFileTreeDOS = serviceFileTreeMapper.selectList(new QueryWrapper()
+ .lambda()
+ .eq(ServiceFileTreeDO::getParentId,serviceFileTreeDO.getId()));
+ for (ServiceFileTreeDO serviceFileTreeDO1 : serviceFileTreeDOS){
+ treeIds.add(serviceFileTreeDO1.getId());
+ }
+ }
+ return this.baseMapper.companyFiles(pager,treeIds, companyFilesDTO.getFileName());
}
public String deleteFile(ServiceCompanyFilesDO serviceCompanyFilesDO) {
@@ -42,21 +60,9 @@ public class ServiceCompanyFilesServiceImpl extends ServiceImpl()
- .lambda()
- .eq(ServiceCompanyMappingDO::getCompanyId,uploadFileDTO.getCompanyId())
- .eq(ServiceCompanyMappingDO::getServiceId,uploadFileDTO.getServiceId()));
-
- BeanUtils.copyProperties(uploadFileDTO,serviceCompanyFilesDO);
- serviceCompanyFilesDO.setServiceCompanyId(serviceCompanyMappingDO.getId());
-
+ public String uploadFile(ServiceCompanyFilesDO serviceCompanyFilesDO) {
this.baseMapper.insert(serviceCompanyFilesDO);
return ConstantUtils.ADD_SUCCESS;
}
-
}
diff --git a/src/main/java/com/subsidy/service/impl/ServiceFileTreeServiceImpl.java b/src/main/java/com/subsidy/service/impl/ServiceFileTreeServiceImpl.java
new file mode 100644
index 0000000..d330cdf
--- /dev/null
+++ b/src/main/java/com/subsidy/service/impl/ServiceFileTreeServiceImpl.java
@@ -0,0 +1,126 @@
+package com.subsidy.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.subsidy.common.exception.HttpException;
+import com.subsidy.model.ServiceFileTreeDO;
+import com.subsidy.mapper.ServiceFileTreeMapper;
+import com.subsidy.service.ServiceFileTreeService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.subsidy.util.ConstantUtils;
+import com.subsidy.vo.tree.TreesVO;
+import org.springframework.stereotype.Service;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ *
+ * 文件目录树 服务实现类
+ *
+ *
+ * @author Tuyp
+ * @since 2024-04-08
+ */
+@Service
+public class ServiceFileTreeServiceImpl extends ServiceImpl implements ServiceFileTreeService {
+
+
+ public List trees(ServiceFileTreeDO serviceFileTreeDO) {
+
+ List result = new ArrayList<>();
+
+ List serviceFileTreeDOS = this.baseMapper.selectList(new QueryWrapper()
+ .lambda()
+ .eq(ServiceFileTreeDO::getCompanyId, serviceFileTreeDO.getCompanyId())
+ .eq(ServiceFileTreeDO::getServiceId, serviceFileTreeDO.getServiceId())
+ .isNull(ServiceFileTreeDO::getParentId));
+
+ for (ServiceFileTreeDO sftd : serviceFileTreeDOS) {
+ TreesVO treesVO = new TreesVO();
+ treesVO.setId(sftd.getId());
+ treesVO.setTreeName(sftd.getTreeName());
+ List serviceFileTreeDOList = this.baseMapper.selectList(new QueryWrapper()
+ .lambda()
+ .eq(ServiceFileTreeDO::getParentId, sftd.getId()));
+
+ List resultTmp = new ArrayList<>();
+ for (ServiceFileTreeDO sftd2 : serviceFileTreeDOList) {
+ TreesVO treesVO1 = new TreesVO();
+ treesVO1.setId(sftd2.getId());
+ treesVO1.setTreeName(sftd2.getTreeName());
+ treesVO1.setParentId(sftd.getId());
+ resultTmp.add(treesVO1);
+ }
+ treesVO.setTreesVOS(resultTmp);
+ result.add(treesVO);
+ }
+ return result;
+ }
+
+ public String addTree(ServiceFileTreeDO serviceFileTreeDO) {
+
+ //查看当前节点下有没有重名的
+ int count = this.baseMapper.selectCount(new QueryWrapper()
+ .lambda()
+ .eq(ServiceFileTreeDO::getCompanyId, serviceFileTreeDO.getCompanyId())
+ .eq(ServiceFileTreeDO::getParentId, serviceFileTreeDO.getParentId())
+ .eq(ServiceFileTreeDO::getTreeName, serviceFileTreeDO.getTreeName())
+ .eq(ServiceFileTreeDO::getServiceId, serviceFileTreeDO.getServiceId()));
+
+ if (count > 0) {
+ throw new HttpException(40001);
+ }
+
+ this.baseMapper.insert(serviceFileTreeDO);
+ return ConstantUtils.ADD_SUCCESS;
+ }
+
+ public String updateTree(ServiceFileTreeDO serviceFileTreeDO) {
+
+ ServiceFileTreeDO serviceFileTreeDO1 = this.baseMapper.selectById(serviceFileTreeDO.getId());
+ //查看当前节点下有没有重名的
+ int count = this.baseMapper.selectCount(new QueryWrapper()
+ .lambda()
+ .eq(ServiceFileTreeDO::getCompanyId, serviceFileTreeDO1.getCompanyId())
+ .eq(ServiceFileTreeDO::getParentId, serviceFileTreeDO1.getParentId())
+ .eq(ServiceFileTreeDO::getTreeName, serviceFileTreeDO.getTreeName())
+ .eq(ServiceFileTreeDO::getServiceId, serviceFileTreeDO1.getServiceId())
+ .ne(ServiceFileTreeDO::getId, serviceFileTreeDO.getId()));
+
+ if (count > 0) {
+ throw new HttpException(40001);
+ }
+
+ this.baseMapper.updateById(serviceFileTreeDO);
+ return ConstantUtils.SUCCESS_UPDATE;
+ }
+
+ public String deleteTree(ServiceFileTreeDO serviceFileTreeDO) {
+
+ ServiceFileTreeDO serviceFileTreeDO1 = this.baseMapper.selectById(serviceFileTreeDO.getId());
+ this.baseMapper.deleteById(serviceFileTreeDO.getId());
+
+ List deleteIds = new ArrayList<>();
+ deleteIds.add(serviceFileTreeDO.getId());
+
+ //如果是一级目录的话,要删除对应的二级目录
+ if (null == serviceFileTreeDO1.getParentId()) {
+
+ //找出二级节点
+ List serviceFileTreeDOS = this.baseMapper.selectList(new QueryWrapper()
+ .lambda()
+ .eq(ServiceFileTreeDO::getParentId, serviceFileTreeDO.getId()));
+ for (ServiceFileTreeDO sftd : serviceFileTreeDOS) {
+ deleteIds.add(sftd.getId());
+ }
+
+ // 删除该目录下及子目录下的文件
+ this.baseMapper.delete(new QueryWrapper()
+ .lambda()
+ .in(ServiceFileTreeDO::getId, deleteIds));
+ }
+ return ConstantUtils.DELETE_SUCCESS;
+ }
+
+
+}
diff --git a/src/main/java/com/subsidy/service/impl/ServiceMemberMappingServiceImpl.java b/src/main/java/com/subsidy/service/impl/ServiceMemberMappingServiceImpl.java
new file mode 100644
index 0000000..8b4c0b9
--- /dev/null
+++ b/src/main/java/com/subsidy/service/impl/ServiceMemberMappingServiceImpl.java
@@ -0,0 +1,128 @@
+package com.subsidy.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.subsidy.dto.member.*;
+import com.subsidy.mapper.CompanyMemberMappingMapper;
+import com.subsidy.mapper.MemberMapper;
+import com.subsidy.model.DepartmentDictDO;
+import com.subsidy.model.MemberDO;
+import com.subsidy.model.ServiceMemberMappingDO;
+import com.subsidy.mapper.ServiceMemberMappingMapper;
+import com.subsidy.service.ServiceMemberMappingService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.subsidy.util.ConstantUtils;
+import com.subsidy.util.excel.ExcelUtil;
+import com.subsidy.vo.member.ImportClassMembersVO;
+import com.subsidy.vo.member.SelectMembersVO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ *
+ * 服务映射表 服务实现类
+ *
+ *
+ * @author Tuyp
+ * @since 2024-04-08
+ */
+@Service
+public class ServiceMemberMappingServiceImpl extends ServiceImpl implements ServiceMemberMappingService {
+
+ @Autowired
+ private CompanyMemberMappingMapper companyMemberMappingMapper;
+
+ @Autowired
+ private MemberMapper memberMapper;
+
+ public String selectImport(SelectImportDTO selectImportDTO) {
+ List members = selectImportDTO.getMemberIds();
+ for (Long memberId : members) {
+ int count = this.baseMapper.selectCount(new QueryWrapper()
+ .lambda()
+ .eq(ServiceMemberMappingDO::getMemberId,memberId)
+ .eq(ServiceMemberMappingDO::getCompanyId,selectImportDTO.getCompanyId())
+ .eq(ServiceMemberMappingDO::getServiceId,4L));
+
+ if (count == 0){
+ ServiceMemberMappingDO serviceMemberMappingDO = new ServiceMemberMappingDO();
+ serviceMemberMappingDO.setCompanyId(selectImportDTO.getCompanyId());
+ serviceMemberMappingDO.setMemberId(memberId);
+ serviceMemberMappingDO.setServiceId(4L);
+ this.baseMapper.insert(serviceMemberMappingDO);
+ }
+
+ }
+ return ConstantUtils.ADD_SUCCESS;
+ }
+
+ public IPage selectMembers(SelectMembersDTO selectMembersDTO) {
+ Page pager = new Page(selectMembersDTO.getPageNum(), selectMembersDTO.getPageSize());
+ IPage selectMembersVOIPage = this.baseMapper.selectMembers(pager, selectMembersDTO.getCompanyId(), selectMembersDTO.getServiceId());
+
+ List selectMembersVOS = selectMembersVOIPage.getRecords();
+
+ for (SelectMembersVO smv : selectMembersVOS){
+ //获取这个人所在的部门
+ List departmentDictDOS = memberMapper.getDepartments(smv.getId());
+ smv.setDepartmentDictDOS(departmentDictDOS);
+ }
+ return selectMembersVOIPage;
+
+ }
+
+ public String removeMembers(RemoveMembersDTO removeMembersDTO) {
+ this.baseMapper.delete(new QueryWrapper()
+ .lambda()
+ .in(ServiceMemberMappingDO::getId,removeMembersDTO.getMemberMappingIds()));
+ return ConstantUtils.DELETE_SUCCESS;
+ }
+
+ public ImportClassMembersVO importClassMembers(MultipartFile multipartFile, Long companyId) {
+
+ ImportClassMembersVO importClassMembersVO = new ImportClassMembersVO();
+
+ List importClassMemberDTOS = ExcelUtil.readExcel(null, ImportClassMemberDTO.class, multipartFile);
+
+ //查找企业下所有的学员的手机号 手机 姓名 身份证
+ List companyMembers = companyMemberMappingMapper.companyMembers(companyId);
+
+ List successMembers = new ArrayList();
+ List failMembers = new ArrayList();
+
+ //查看该学员是否该企业下的人,不是的话就要返回 是的话直接导入成功
+ for (ImportClassMemberDTO imd : importClassMemberDTOS) {
+ if (null == imd.getUserName() || null == imd.getTelephone() || null == imd.getIdCard()) {
+ imd.setReason("人员信息不完整");
+ failMembers.add(imd);
+ } else if (!companyMembers.contains(imd.getUserName() + imd.getTelephone() + imd.getIdCard())) {
+ imd.setReason("企业内未查询到该成员信息");
+ failMembers.add(imd);
+ } else if (successMembers.contains(imd.getUserName() + imd.getTelephone() + imd.getIdCard())) {
+ imd.setReason("人员信息重复");
+ failMembers.add(imd);
+ } else {
+ MemberDO memberDO = memberMapper.selectOne(new QueryWrapper()
+ .lambda()
+ .eq(MemberDO::getTelephone,imd.getTelephone()));
+ imd.setId(memberDO.getId());
+ successMembers.add(imd);
+ }
+ }
+ importClassMembersVO.setSuccessMembers(successMembers);
+ importClassMembersVO.setFailureMembers(failMembers);
+ return importClassMembersVO;
+ }
+
+ public void downloadFailClassMembers(DownloadFailClassMembers downloadFailClassMembers) {
+ List downloadFailClassMembersDTOS = downloadFailClassMembers.getDownloadFailClassMembersDTOS();
+ ExcelUtil.writeExcel(downloadFailClassMembersDTOS, DownloadFailClassMembersDTO.class);
+ }
+
+
+}
diff --git a/src/main/java/com/subsidy/vo/member/ImportClassMembersVO.java b/src/main/java/com/subsidy/vo/member/ImportClassMembersVO.java
new file mode 100644
index 0000000..3b5211e
--- /dev/null
+++ b/src/main/java/com/subsidy/vo/member/ImportClassMembersVO.java
@@ -0,0 +1,16 @@
+package com.subsidy.vo.member;
+
+import com.subsidy.dto.member.ImportClassMemberDTO;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class ImportClassMembersVO {
+
+ private List successMembers;
+
+ private List failureMembers;
+
+
+}
diff --git a/src/main/java/com/subsidy/vo/member/SelectMembersVO.java b/src/main/java/com/subsidy/vo/member/SelectMembersVO.java
new file mode 100644
index 0000000..d4fe3b3
--- /dev/null
+++ b/src/main/java/com/subsidy/vo/member/SelectMembersVO.java
@@ -0,0 +1,37 @@
+package com.subsidy.vo.member;
+
+import com.subsidy.model.DepartmentDictDO;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class SelectMembersVO {
+
+ private Long mappingId;
+
+ private Long id;
+
+ private String userName;
+
+ private String telephone;
+
+ private String idCard;
+
+ private String status;
+
+ private String accountName;
+
+ private String gender;
+
+ private String email;
+
+ private String accountNameEn;
+
+ private String workNo;
+
+ private String inductionDate;
+
+ private List departmentDictDOS;
+
+}
diff --git a/src/main/java/com/subsidy/vo/tree/TreesVO.java b/src/main/java/com/subsidy/vo/tree/TreesVO.java
new file mode 100644
index 0000000..157199c
--- /dev/null
+++ b/src/main/java/com/subsidy/vo/tree/TreesVO.java
@@ -0,0 +1,18 @@
+package com.subsidy.vo.tree;
+
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class TreesVO {
+
+ private Long id;
+
+ private Long parentId;
+
+ private String treeName;
+
+ private List treesVOS;
+
+}
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index ae4bf01..f1f484c 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1,4 +1,4 @@
-# 环境配置
+# 环境配置 企业端
spring.profiles.active=prod
#和CPU数
spring.server.acceptorThreadCount=600
diff --git a/src/main/resources/mapper/CompanyDictMapper.xml b/src/main/resources/mapper/CompanyDictMapper.xml
index cee568f..4356bf7 100644
--- a/src/main/resources/mapper/CompanyDictMapper.xml
+++ b/src/main/resources/mapper/CompanyDictMapper.xml
@@ -31,6 +31,7 @@
and t2.supervise_name =#{superviseName}
+ order by t2.id
@@ -38,6 +39,7 @@
SELECT
distinct
t2.id as companyId,
+ IFNULL(t5.user_name,t2.company_name) as user_name,
t2.banner,
t2.short_name,
t2.company_name,
@@ -50,10 +52,12 @@
company_dict t2
left join administer_company_mapping t4 on t2.id = t4.company_id
left join company_field_mapping t3 on t2.id = t3.company_id
+ LEFT JOIN administer t5 on t5.id = t4.administer_id
WHERE
- t2.delete_date is null
+ t2.delete_date is null
and t3.delete_date is null
and t4.delete_date is null
+ and t5.delete_date is null
and t2.company_name like concat('%',#{companyName} ,'%')
@@ -66,6 +70,7 @@
and t4.administer_id =#{userId}
+ order by t2.id
@@ -102,6 +107,18 @@
and t5.member_status = #{memberStatus}
+ and t.member_type = 2
+ and t.id not in (SELECT
+ t.member_id
+ FROM
+ service_member_mapping t
+ WHERE
+ t.delete_date IS NULL
+ AND t.service_id = 4
+
+ AND t.company_id =#{companyId}
+
+ )
diff --git a/src/main/resources/mapper/CompanyMemberMappingMapper.xml b/src/main/resources/mapper/CompanyMemberMappingMapper.xml
index e9ac384..214409c 100644
--- a/src/main/resources/mapper/CompanyMemberMappingMapper.xml
+++ b/src/main/resources/mapper/CompanyMemberMappingMapper.xml
@@ -110,4 +110,17 @@
AND t.member_status = 1
+
+
diff --git a/src/main/resources/mapper/ProductDictMapper.xml b/src/main/resources/mapper/ProductDictMapper.xml
index 8434b70..3152ac1 100644
--- a/src/main/resources/mapper/ProductDictMapper.xml
+++ b/src/main/resources/mapper/ProductDictMapper.xml
@@ -15,6 +15,13 @@
AND t.product_name like concat('%',#{productName} ,'%')
+
+ AND t.product_type = #{productType}
+
+
+ update product_dict set order_no = #{orderNo} where id = #{id}
+
+
diff --git a/src/main/resources/mapper/ServiceCompanyFilesMapper.xml b/src/main/resources/mapper/ServiceCompanyFilesMapper.xml
index a4d4be6..7c0b11e 100644
--- a/src/main/resources/mapper/ServiceCompanyFilesMapper.xml
+++ b/src/main/resources/mapper/ServiceCompanyFilesMapper.xml
@@ -7,20 +7,15 @@
*
FROM
service_company_files t
- left join service_company_mapping t2 on t2.id = t.service_company_id
WHERE
t.delete_date IS NULL
- and t2.delete_date is null
-
- AND t2.company_id = #{companyId}
-
-
- and t2.service_id = #{serviceId}
-
AND t.file_name like concat('%',#{fileName} ,'%')
- and t.file_type = #{fileType}
+ and t.tree_id in
+
+ #{id}
+
diff --git a/src/main/resources/mapper/ServiceCompanyMappingMapper.xml b/src/main/resources/mapper/ServiceCompanyMappingMapper.xml
index a350cab..82144c9 100644
--- a/src/main/resources/mapper/ServiceCompanyMappingMapper.xml
+++ b/src/main/resources/mapper/ServiceCompanyMappingMapper.xml
@@ -58,18 +58,26 @@
diff --git a/src/main/resources/mapper/ServiceFileTreeMapper.xml b/src/main/resources/mapper/ServiceFileTreeMapper.xml
new file mode 100644
index 0000000..8ff6b7f
--- /dev/null
+++ b/src/main/resources/mapper/ServiceFileTreeMapper.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ create_date,
+ update_date,
+ delete_date,
+ id, company_id, service_id, parent_id, tree_name
+
+
+
diff --git a/src/main/resources/mapper/ServiceMemberMappingMapper.xml b/src/main/resources/mapper/ServiceMemberMappingMapper.xml
new file mode 100644
index 0000000..318d142
--- /dev/null
+++ b/src/main/resources/mapper/ServiceMemberMappingMapper.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
diff --git a/target/classes/application.properties b/target/classes/application.properties
index ae4bf01..f1f484c 100644
--- a/target/classes/application.properties
+++ b/target/classes/application.properties
@@ -1,4 +1,4 @@
-# 环境配置
+# 环境配置 企业端
spring.profiles.active=prod
#和CPU数
spring.server.acceptorThreadCount=600
diff --git a/target/classes/com/subsidy/controller/CompanyMemberMappingController.class b/target/classes/com/subsidy/controller/CompanyMemberMappingController.class
index 25ea54c..f8cfb14 100644
Binary files a/target/classes/com/subsidy/controller/CompanyMemberMappingController.class and b/target/classes/com/subsidy/controller/CompanyMemberMappingController.class differ
diff --git a/target/classes/com/subsidy/controller/MemberController.class b/target/classes/com/subsidy/controller/MemberController.class
index 82ef604..d961f0a 100644
Binary files a/target/classes/com/subsidy/controller/MemberController.class and b/target/classes/com/subsidy/controller/MemberController.class differ
diff --git a/target/classes/com/subsidy/controller/ProductDictController.class b/target/classes/com/subsidy/controller/ProductDictController.class
index 7d6bf78..f320bd1 100644
Binary files a/target/classes/com/subsidy/controller/ProductDictController.class and b/target/classes/com/subsidy/controller/ProductDictController.class differ
diff --git a/target/classes/com/subsidy/controller/ServiceCompanyFilesController.class b/target/classes/com/subsidy/controller/ServiceCompanyFilesController.class
index e1d55d4..63d5318 100644
Binary files a/target/classes/com/subsidy/controller/ServiceCompanyFilesController.class and b/target/classes/com/subsidy/controller/ServiceCompanyFilesController.class differ
diff --git a/target/classes/com/subsidy/dto/product/AllProductsDTO.class b/target/classes/com/subsidy/dto/product/AllProductsDTO.class
index 495165e..0a684ea 100644
Binary files a/target/classes/com/subsidy/dto/product/AllProductsDTO.class and b/target/classes/com/subsidy/dto/product/AllProductsDTO.class differ
diff --git a/target/classes/com/subsidy/mapper/CompanyMemberMappingMapper.class b/target/classes/com/subsidy/mapper/CompanyMemberMappingMapper.class
index 1b10d1c..badec98 100644
Binary files a/target/classes/com/subsidy/mapper/CompanyMemberMappingMapper.class and b/target/classes/com/subsidy/mapper/CompanyMemberMappingMapper.class differ
diff --git a/target/classes/com/subsidy/mapper/ProductDictMapper.class b/target/classes/com/subsidy/mapper/ProductDictMapper.class
index c337f5c..133ce24 100644
Binary files a/target/classes/com/subsidy/mapper/ProductDictMapper.class and b/target/classes/com/subsidy/mapper/ProductDictMapper.class differ
diff --git a/target/classes/com/subsidy/mapper/ServiceCompanyFilesMapper.class b/target/classes/com/subsidy/mapper/ServiceCompanyFilesMapper.class
index aaf2ae9..5810345 100644
Binary files a/target/classes/com/subsidy/mapper/ServiceCompanyFilesMapper.class and b/target/classes/com/subsidy/mapper/ServiceCompanyFilesMapper.class differ
diff --git a/target/classes/com/subsidy/model/MemberDO.class b/target/classes/com/subsidy/model/MemberDO.class
index 7bfb1a8..10ff631 100644
Binary files a/target/classes/com/subsidy/model/MemberDO.class and b/target/classes/com/subsidy/model/MemberDO.class differ
diff --git a/target/classes/com/subsidy/model/ProductDictDO.class b/target/classes/com/subsidy/model/ProductDictDO.class
index 9006131..34cd5d5 100644
Binary files a/target/classes/com/subsidy/model/ProductDictDO.class and b/target/classes/com/subsidy/model/ProductDictDO.class differ
diff --git a/target/classes/com/subsidy/model/ServiceCompanyFilesDO.class b/target/classes/com/subsidy/model/ServiceCompanyFilesDO.class
index 1964436..99bc2b3 100644
Binary files a/target/classes/com/subsidy/model/ServiceCompanyFilesDO.class and b/target/classes/com/subsidy/model/ServiceCompanyFilesDO.class differ
diff --git a/target/classes/com/subsidy/service/ProductDictService.class b/target/classes/com/subsidy/service/ProductDictService.class
index a50a149..b63ef26 100644
Binary files a/target/classes/com/subsidy/service/ProductDictService.class and b/target/classes/com/subsidy/service/ProductDictService.class differ
diff --git a/target/classes/com/subsidy/service/ServiceCompanyFilesService.class b/target/classes/com/subsidy/service/ServiceCompanyFilesService.class
index 16d9553..f173380 100644
Binary files a/target/classes/com/subsidy/service/ServiceCompanyFilesService.class and b/target/classes/com/subsidy/service/ServiceCompanyFilesService.class differ
diff --git a/target/classes/com/subsidy/service/impl/AdministerServiceImpl.class b/target/classes/com/subsidy/service/impl/AdministerServiceImpl.class
index 99827d4..2dc14b0 100644
Binary files a/target/classes/com/subsidy/service/impl/AdministerServiceImpl.class and b/target/classes/com/subsidy/service/impl/AdministerServiceImpl.class differ
diff --git a/target/classes/com/subsidy/service/impl/CompanyDictServiceImpl.class b/target/classes/com/subsidy/service/impl/CompanyDictServiceImpl.class
index 918f245..6330a9c 100644
Binary files a/target/classes/com/subsidy/service/impl/CompanyDictServiceImpl.class and b/target/classes/com/subsidy/service/impl/CompanyDictServiceImpl.class differ
diff --git a/target/classes/com/subsidy/service/impl/CompanyMemberMappingServiceImpl.class b/target/classes/com/subsidy/service/impl/CompanyMemberMappingServiceImpl.class
index b815d85..2abf60c 100644
Binary files a/target/classes/com/subsidy/service/impl/CompanyMemberMappingServiceImpl.class and b/target/classes/com/subsidy/service/impl/CompanyMemberMappingServiceImpl.class differ
diff --git a/target/classes/com/subsidy/service/impl/MemberServiceImpl.class b/target/classes/com/subsidy/service/impl/MemberServiceImpl.class
index c045263..359bed7 100644
Binary files a/target/classes/com/subsidy/service/impl/MemberServiceImpl.class and b/target/classes/com/subsidy/service/impl/MemberServiceImpl.class differ
diff --git a/target/classes/com/subsidy/service/impl/ProductDictServiceImpl.class b/target/classes/com/subsidy/service/impl/ProductDictServiceImpl.class
index 1c8fb90..5161807 100644
Binary files a/target/classes/com/subsidy/service/impl/ProductDictServiceImpl.class and b/target/classes/com/subsidy/service/impl/ProductDictServiceImpl.class differ
diff --git a/target/classes/com/subsidy/service/impl/ServiceCompanyFilesServiceImpl.class b/target/classes/com/subsidy/service/impl/ServiceCompanyFilesServiceImpl.class
index cad6487..4ec5ff7 100644
Binary files a/target/classes/com/subsidy/service/impl/ServiceCompanyFilesServiceImpl.class and b/target/classes/com/subsidy/service/impl/ServiceCompanyFilesServiceImpl.class differ
diff --git a/target/classes/mapper/CompanyDictMapper.xml b/target/classes/mapper/CompanyDictMapper.xml
index cee568f..4356bf7 100644
--- a/target/classes/mapper/CompanyDictMapper.xml
+++ b/target/classes/mapper/CompanyDictMapper.xml
@@ -31,6 +31,7 @@
and t2.supervise_name =#{superviseName}
+ order by t2.id
@@ -38,6 +39,7 @@
SELECT
distinct
t2.id as companyId,
+ IFNULL(t5.user_name,t2.company_name) as user_name,
t2.banner,
t2.short_name,
t2.company_name,
@@ -50,10 +52,12 @@
company_dict t2
left join administer_company_mapping t4 on t2.id = t4.company_id
left join company_field_mapping t3 on t2.id = t3.company_id
+ LEFT JOIN administer t5 on t5.id = t4.administer_id
WHERE
- t2.delete_date is null
+ t2.delete_date is null
and t3.delete_date is null
and t4.delete_date is null
+ and t5.delete_date is null
and t2.company_name like concat('%',#{companyName} ,'%')
@@ -66,6 +70,7 @@
and t4.administer_id =#{userId}
+ order by t2.id
@@ -102,6 +107,18 @@
and t5.member_status = #{memberStatus}
+ and t.member_type = 2
+ and t.id not in (SELECT
+ t.member_id
+ FROM
+ service_member_mapping t
+ WHERE
+ t.delete_date IS NULL
+ AND t.service_id = 4
+
+ AND t.company_id =#{companyId}
+
+ )
diff --git a/target/classes/mapper/CompanyMemberMappingMapper.xml b/target/classes/mapper/CompanyMemberMappingMapper.xml
index e9ac384..214409c 100644
--- a/target/classes/mapper/CompanyMemberMappingMapper.xml
+++ b/target/classes/mapper/CompanyMemberMappingMapper.xml
@@ -110,4 +110,17 @@
AND t.member_status = 1
+
+
diff --git a/target/classes/mapper/ProductDictMapper.xml b/target/classes/mapper/ProductDictMapper.xml
index 8434b70..3152ac1 100644
--- a/target/classes/mapper/ProductDictMapper.xml
+++ b/target/classes/mapper/ProductDictMapper.xml
@@ -15,6 +15,13 @@
AND t.product_name like concat('%',#{productName} ,'%')
+
+ AND t.product_type = #{productType}
+
+
+ update product_dict set order_no = #{orderNo} where id = #{id}
+
+
diff --git a/target/classes/mapper/ServiceCompanyFilesMapper.xml b/target/classes/mapper/ServiceCompanyFilesMapper.xml
index a4d4be6..7c0b11e 100644
--- a/target/classes/mapper/ServiceCompanyFilesMapper.xml
+++ b/target/classes/mapper/ServiceCompanyFilesMapper.xml
@@ -7,20 +7,15 @@
*
FROM
service_company_files t
- left join service_company_mapping t2 on t2.id = t.service_company_id
WHERE
t.delete_date IS NULL
- and t2.delete_date is null
-
- AND t2.company_id = #{companyId}
-
-
- and t2.service_id = #{serviceId}
-
AND t.file_name like concat('%',#{fileName} ,'%')
- and t.file_type = #{fileType}
+ and t.tree_id in
+
+ #{id}
+
diff --git a/target/classes/mapper/ServiceCompanyMappingMapper.xml b/target/classes/mapper/ServiceCompanyMappingMapper.xml
index a350cab..82144c9 100644
--- a/target/classes/mapper/ServiceCompanyMappingMapper.xml
+++ b/target/classes/mapper/ServiceCompanyMappingMapper.xml
@@ -58,18 +58,26 @@
diff --git a/target/subsidy-app.jar b/target/subsidy-app.jar
index ceac9a5..c6c91d5 100644
Binary files a/target/subsidy-app.jar and b/target/subsidy-app.jar differ
diff --git a/target/subsidy-app.jar.original b/target/subsidy-app.jar.original
index a9d4452..b1751eb 100644
Binary files a/target/subsidy-app.jar.original and b/target/subsidy-app.jar.original differ