|
@@ -250,6 +250,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
String token = String.valueOf(request.getHeader("Token"));
|
|
String token = String.valueOf(request.getHeader("Token"));
|
|
User user = userMapper.selectById(token);
|
|
User user = userMapper.selectById(token);
|
|
taskDto.setCompanyId(user.getCompanyId());
|
|
taskDto.setCompanyId(user.getCompanyId());
|
|
|
|
+ Company company = companyMapper.selectById(user.getCompanyId());
|
|
List<TaskExecutor> taskExecutorList = taskExecutorMapper.selectList(new LambdaQueryWrapper<TaskExecutor>().eq(TaskExecutor::getCompanyId,user.getCompanyId()));
|
|
List<TaskExecutor> taskExecutorList = taskExecutorMapper.selectList(new LambdaQueryWrapper<TaskExecutor>().eq(TaskExecutor::getCompanyId,user.getCompanyId()));
|
|
List<TaskLog> taskLogList = taskLogMapper.selectList(new LambdaQueryWrapper<TaskLog>().eq(TaskLog::getCompanyId,user.getCompanyId()).orderByDesc(TaskLog::getModTime));
|
|
List<TaskLog> taskLogList = taskLogMapper.selectList(new LambdaQueryWrapper<TaskLog>().eq(TaskLog::getCompanyId,user.getCompanyId()).orderByDesc(TaskLog::getModTime));
|
|
taskDto.setPageIndex((taskDto.getPageIndex()-1)*taskDto.getPageSize());
|
|
taskDto.setPageIndex((taskDto.getPageIndex()-1)*taskDto.getPageSize());
|
|
@@ -287,6 +288,12 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
tasKVo.setTaskLogs(collect);
|
|
tasKVo.setTaskLogs(collect);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (company.getIsSimple()==1){
|
|
|
|
+ if (StringUtils.isNotEmpty(tasKVo.getCompanyPhone())){
|
|
|
|
+ tasKVo.setContactsTel(tasKVo.getCompanyPhone());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
List<TasKVo> taskVoTotalList= taskMapper.getPageListTotalTask(taskDto);
|
|
List<TasKVo> taskVoTotalList= taskMapper.getPageListTotalTask(taskDto);
|
|
@@ -1373,7 +1380,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
}else {
|
|
}else {
|
|
dataList.clear();
|
|
dataList.clear();
|
|
List<String> heads = new ArrayList<>();
|
|
List<String> heads = new ArrayList<>();
|
|
- Collections.addAll(heads, "任务名称", "执行人", "开始时间", "截止时间", "客户名称","客户类型", "预约工作内容", "预约金额", "实际工作内容", "实际金额", "用户反馈");
|
|
|
|
|
|
+ Collections.addAll(heads, "任务名称", "执行人", "开始时间", "截止时间", "客户名称","客户类型", "预约工作内容", "预约金额", "实际工作内容", "实际金额","付款状态","用户反馈");
|
|
dataList.add(heads);
|
|
dataList.add(heads);
|
|
for (TasKVo tasKVo : taskVoList){
|
|
for (TasKVo tasKVo : taskVoList){
|
|
List<String> item = new ArrayList<>();
|
|
List<String> item = new ArrayList<>();
|
|
@@ -1425,6 +1432,16 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
item.add(tasKVo.getAppointMoney()==null ? BigDecimal.ZERO.toString() : tasKVo.getAppointMoney().toString());
|
|
item.add(tasKVo.getAppointMoney()==null ? BigDecimal.ZERO.toString() : tasKVo.getAppointMoney().toString());
|
|
item.add(StringUtils.isEmpty(tasKVo.getReallyContent()) ? "" : tasKVo.getReallyContent());
|
|
item.add(StringUtils.isEmpty(tasKVo.getReallyContent()) ? "" : tasKVo.getReallyContent());
|
|
item.add(tasKVo.getReallyMoney()==null ? BigDecimal.ZERO.toString() : tasKVo.getReallyMoney().toString());
|
|
item.add(tasKVo.getReallyMoney()==null ? BigDecimal.ZERO.toString() : tasKVo.getReallyMoney().toString());
|
|
|
|
+ if (tasKVo.getPayType()!=null){
|
|
|
|
+ Integer payType = tasKVo.getPayType();
|
|
|
|
+ if (payType==0){
|
|
|
|
+ item.add("未付款");
|
|
|
|
+ }else if(payType==1) {
|
|
|
|
+ item.add("已付款");
|
|
|
|
+ }else {
|
|
|
|
+ item.add("");
|
|
|
|
+ }
|
|
|
|
+ }else item.add("");
|
|
item.add(StringUtils.isEmpty(tasKVo.getUserBack()) ? "" : tasKVo.getUserBack());
|
|
item.add(StringUtils.isEmpty(tasKVo.getUserBack()) ? "" : tasKVo.getUserBack());
|
|
|
|
|
|
dataList.add(item);
|
|
dataList.add(item);
|
|
@@ -1620,6 +1637,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
public HttpRespMsg pageTasksByPin(TaskDto taskDto, HttpServletRequest request) {
|
|
public HttpRespMsg pageTasksByPin(TaskDto taskDto, HttpServletRequest request) {
|
|
String token = String.valueOf(request.getHeader("Token"));
|
|
String token = String.valueOf(request.getHeader("Token"));
|
|
User user = userMapper.selectById(token);
|
|
User user = userMapper.selectById(token);
|
|
|
|
+ Company company = companyMapper.selectById(user.getCompanyId());
|
|
taskDto.setCompanyId(user.getCompanyId());
|
|
taskDto.setCompanyId(user.getCompanyId());
|
|
List<TaskExecutor> taskExecutorList = taskExecutorMapper.selectList(new LambdaQueryWrapper<TaskExecutor>().eq(TaskExecutor::getCompanyId,user.getCompanyId()));
|
|
List<TaskExecutor> taskExecutorList = taskExecutorMapper.selectList(new LambdaQueryWrapper<TaskExecutor>().eq(TaskExecutor::getCompanyId,user.getCompanyId()));
|
|
List<TaskLog> taskLogList = taskLogMapper.selectList(new LambdaQueryWrapper<TaskLog>().eq(TaskLog::getCompanyId,user.getCompanyId()).orderByDesc(TaskLog::getModTime));
|
|
List<TaskLog> taskLogList = taskLogMapper.selectList(new LambdaQueryWrapper<TaskLog>().eq(TaskLog::getCompanyId,user.getCompanyId()).orderByDesc(TaskLog::getModTime));
|
|
@@ -1701,6 +1719,13 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
tasKVo.setPayWayName(payWayName2);
|
|
tasKVo.setPayWayName(payWayName2);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (company.getIsSimple()==1){
|
|
|
|
+ if (StringUtils.isNotEmpty(tasKVo.getCompanyPhone())){
|
|
|
|
+ //contactsPhone
|
|
|
|
+ tasKVo.setContactsPhone(tasKVo.getCompanyPhone());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
List<TasKVo> taskVoTotalList= taskMapper.getPageListTotalTask(taskDto);
|
|
List<TasKVo> taskVoTotalList= taskMapper.getPageListTotalTask(taskDto);
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
@@ -1741,6 +1766,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
TasKVo tasKVo = new TasKVo();
|
|
TasKVo tasKVo = new TasKVo();
|
|
Task task = taskMapper.selectById(id);
|
|
Task task = taskMapper.selectById(id);
|
|
User user = userMapper.selectById(request.getHeader("Token"));
|
|
User user = userMapper.selectById(request.getHeader("Token"));
|
|
|
|
+ Company company = companyMapper.selectById(user.getCompanyId());
|
|
// WxCorpInfo wxCorpInfo = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("company_id", user.getCompanyId()));
|
|
// WxCorpInfo wxCorpInfo = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("company_id", user.getCompanyId()));
|
|
// CompanyDingding dingding = companyDingdingMapper.selectOne(new LambdaQueryWrapper<CompanyDingding>().eq(CompanyDingding::getCompanyId, user.getCompanyId()));
|
|
// CompanyDingding dingding = companyDingdingMapper.selectOne(new LambdaQueryWrapper<CompanyDingding>().eq(CompanyDingding::getCompanyId, user.getCompanyId()));
|
|
|
|
|
|
@@ -1785,6 +1811,12 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
Custom custom = customMapper.selectById(task.getCustomId());
|
|
Custom custom = customMapper.selectById(task.getCustomId());
|
|
if (custom!=null){
|
|
if (custom!=null){
|
|
tasKVo.setCustomName(custom.getCustomName());
|
|
tasKVo.setCustomName(custom.getCustomName());
|
|
|
|
+ if (company.getIsSimple()==1){
|
|
|
|
+ if (StringUtils.isNotEmpty(custom.getCompanyPhone())){
|
|
|
|
+ //contactsPhone
|
|
|
|
+ tasKVo.setContactsPhone(custom.getCompanyPhone());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (task.getBusinessOpportunityId()!=null){
|
|
if (task.getBusinessOpportunityId()!=null){
|
|
@@ -1809,6 +1841,28 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
tasKVo.setTaskLogs(taskLogList);
|
|
tasKVo.setTaskLogs(taskLogList);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (tasKVo.getCustomType()!=null&&tasKVo.getCustomType()==0){
|
|
|
|
+ //0居民住家/ 1商业区/ 2其他类型
|
|
|
|
+ tasKVo.setCustomTypeName(customTypeName0);
|
|
|
|
+ } else if (tasKVo.getCustomType() != null && tasKVo.getCustomType() == 1) {
|
|
|
|
+ tasKVo.setCustomTypeName(customTypeName1);
|
|
|
|
+ }else if (tasKVo.getCustomType() != null && tasKVo.getCustomType() == 2) {
|
|
|
|
+ tasKVo.setCustomTypeName(customTypeName2);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (tasKVo.getPayType()!=null&&tasKVo.getPayType()==0){
|
|
|
|
+ tasKVo.setPayTypeName("未付款");
|
|
|
|
+ } else if (tasKVo.getPayType()!=null&&tasKVo.getPayType()==1) {
|
|
|
|
+ tasKVo.setPayTypeName("已付款");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (tasKVo.getPayWay()!=null&&tasKVo.getPayWay()==0){
|
|
|
|
+ tasKVo.setPayWayName(payWayName0);
|
|
|
|
+ } else if (tasKVo.getPayWay() != null && tasKVo.getPayWay() == 1) {
|
|
|
|
+ tasKVo.setPayWayName(payWayName1);
|
|
|
|
+ }else if (tasKVo.getPayWay() != null && tasKVo.getPayWay() == 2) {
|
|
|
|
+ tasKVo.setPayWayName(payWayName2);
|
|
|
|
+ }
|
|
respMsg.setData(tasKVo);
|
|
respMsg.setData(tasKVo);
|
|
return respMsg;
|
|
return respMsg;
|
|
}
|
|
}
|