Преглед изворни кода

[招商][客户信息]

release_toaliyun_real
Burce пре 6 година
родитељ
комит
55c314848b
5 измењених фајлова са 17 додато и 5 уклоњено
  1. +1
    -0
      mallinkService/src/main/java/com/iformall/mapper/InvestCustomerMapper.java
  2. +1
    -0
      mallinkService/src/main/java/com/iformall/service/invest/InvestCustomerService.java
  3. +3
    -5
      mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java
  4. +5
    -0
      mallinkService/src/main/java/com/iformall/service/invest/impl/InvestCustomerServiceImpl.java
  5. +7
    -0
      mallinkService/src/main/resources/mapper/InvestCustomerMapper.xml

+ 1
- 0
mallinkService/src/main/java/com/iformall/mapper/InvestCustomerMapper.java Прегледај датотеку

@@ -21,4 +21,5 @@ import java.util.List;
public interface InvestCustomerMapper extends BaseMapper<InvestCustomerEntity> { public interface InvestCustomerMapper extends BaseMapper<InvestCustomerEntity> {


List<InvestCustomerVo> listByIds(Collection<? extends Serializable> ids, List<EnumCustomerType> type) ; List<InvestCustomerVo> listByIds(Collection<? extends Serializable> ids, List<EnumCustomerType> type) ;
int countCustomerUnassigned(String tenantId) ;
} }

+ 1
- 0
mallinkService/src/main/java/com/iformall/service/invest/InvestCustomerService.java Прегледај датотеку

@@ -24,5 +24,6 @@ public interface InvestCustomerService extends IService<InvestCustomerEntity>,In


List<InvestCustomerVo> listByIds(Collection<? extends Serializable> idList, List<EnumCustomerType> type) ; List<InvestCustomerVo> listByIds(Collection<? extends Serializable> idList, List<EnumCustomerType> type) ;


int countCustomerUnassigned(String tenantId) ;
} }



+ 3
- 5
mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java Прегледај датотеку

@@ -156,7 +156,7 @@ public class InvestBizServiceImpl implements InvestBizService {
item.setShopNumber("A10092"); item.setShopNumber("A10092");
item.setBrandName("肯德基"); item.setBrandName("肯德基");
item.setName("张三"); item.setName("张三");
item.setPhone("1358888888");
item.setPhone("13588888888");
item.setOpeningTime("2019-01-01"); item.setOpeningTime("2019-01-01");
resultList.add(item); resultList.add(item);
excelService.exportExcel(resultList, null, "客户信息模板", InvestCustomerVo.class, "客户信息模板.xlsx", response, true); excelService.exportExcel(resultList, null, "客户信息模板", InvestCustomerVo.class, "客户信息模板.xlsx", response, true);
@@ -493,7 +493,7 @@ public class InvestBizServiceImpl implements InvestBizService {
} }


InvestDemandEntity demandEntity = new InvestDemandEntity(); InvestDemandEntity demandEntity = new InvestDemandEntity();
if (ObjectUtils.anyNotNull(params.getDemandOwner())) {
if (Objects.isNull(InvestUserContext.getDataUser())) {
demandEntity.setOwner(params.getDemandOwner()); demandEntity.setOwner(params.getDemandOwner());
} else { } else {
demandEntity.setOwner(InvestUserContext.getDataUser()); demandEntity.setOwner(InvestUserContext.getDataUser());
@@ -1073,9 +1073,7 @@ public class InvestBizServiceImpl implements InvestBizService {
result.put("taskUnassigned", taskService.count(new LambdaQueryWrapper<InvestTaskEntity>() result.put("taskUnassigned", taskService.count(new LambdaQueryWrapper<InvestTaskEntity>()
.eq(InvestTaskEntity::getStatus, EnumTaskStatus.CREATED) .eq(InvestTaskEntity::getStatus, EnumTaskStatus.CREATED)
.eq(InvestTaskEntity::getTenantId, InvestUserContext.getUser().getTenantId()))); .eq(InvestTaskEntity::getTenantId, InvestUserContext.getUser().getTenantId())));
result.put("customerUnassigned", demandService.count(new LambdaQueryWrapper<InvestDemandEntity>()
.eq(InvestDemandEntity::getTenantId, InvestUserContext.getUser().getTenantId())
.eq(InvestDemandEntity::getOwner, 0L)));
result.put("customerUnassigned", customerService.countCustomerUnassigned(InvestUserContext.getUser().getTenantId()));
} else { } else {
result.put("taskTotal", taskService.count(new LambdaQueryWrapper<InvestTaskEntity>() result.put("taskTotal", taskService.count(new LambdaQueryWrapper<InvestTaskEntity>()
.ge(InvestTaskEntity::getStatus, EnumTaskStatus.CREATED) .ge(InvestTaskEntity::getStatus, EnumTaskStatus.CREATED)


+ 5
- 0
mallinkService/src/main/java/com/iformall/service/invest/impl/InvestCustomerServiceImpl.java Прегледај датотеку

@@ -89,4 +89,9 @@ public class InvestCustomerServiceImpl extends InvestBaseServiceImpl<InvestCusto
public List<InvestCustomerVo> listByIds(Collection<? extends Serializable> idList, List<EnumCustomerType> type) { public List<InvestCustomerVo> listByIds(Collection<? extends Serializable> idList, List<EnumCustomerType> type) {
return super.baseMapper.listByIds(idList,type); return super.baseMapper.listByIds(idList,type);
} }

@Override
public int countCustomerUnassigned(String tenantId) {
return super.baseMapper.countCustomerUnassigned(tenantId);
}
} }

+ 7
- 0
mallinkService/src/main/resources/mapper/InvestCustomerMapper.xml Прегледај датотеку

@@ -38,5 +38,12 @@
</foreach> </foreach>
</if> </if>
</select> </select>
<select id="countCustomerUnassigned" resultType="int">
SELECT count(1)
FROM `invest_customer` c
INNER JOIN `invest_demand` d ON d.`customer_id` = c.id
WHERE d.`owner` = 0
AND c.`tenant_id` = #{tenantId};
</select>


</mapper> </mapper>

Loading…
Откажи
Сачувај