|
@ -131,6 +131,7 @@ public class IcWorkLogServiceImpl extends BaseServiceImpl<IcWorkLogDao, IcWorkLo |
|
|
dto.setCreatedUser(staffInfo.getData().getRealName()); |
|
|
dto.setCreatedUser(staffInfo.getData().getRealName()); |
|
|
dto.setMobile(staffInfo.getData().getMobile()); |
|
|
dto.setMobile(staffInfo.getData().getMobile()); |
|
|
} |
|
|
} |
|
|
|
|
|
// 查询网格信息
|
|
|
CustomerGridFormDTO customerGridFormDTO = new CustomerGridFormDTO(); |
|
|
CustomerGridFormDTO customerGridFormDTO = new CustomerGridFormDTO(); |
|
|
customerGridFormDTO.setGridId(dto.getGridId()); |
|
|
customerGridFormDTO.setGridId(dto.getGridId()); |
|
|
GridDetailResultDTO gridDetailResultDTO = customerGridDao.griddetail(customerGridFormDTO); |
|
|
GridDetailResultDTO gridDetailResultDTO = customerGridDao.griddetail(customerGridFormDTO); |
|
@ -148,6 +149,14 @@ public class IcWorkLogServiceImpl extends BaseServiceImpl<IcWorkLogDao, IcWorkLo |
|
|
@Override |
|
|
@Override |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void update(IcWorkLogDTO dto) { |
|
|
public void update(IcWorkLogDTO dto) { |
|
|
|
|
|
// 查询网格信息
|
|
|
|
|
|
CustomerGridFormDTO customerGridFormDTO = new CustomerGridFormDTO(); |
|
|
|
|
|
customerGridFormDTO.setGridId(dto.getGridId()); |
|
|
|
|
|
GridDetailResultDTO gridDetailResultDTO = customerGridDao.griddetail(customerGridFormDTO); |
|
|
|
|
|
if (gridDetailResultDTO != null) { |
|
|
|
|
|
dto.setAgencyId(gridDetailResultDTO.getAgencyId()); |
|
|
|
|
|
dto.setPids(gridDetailResultDTO.getPIds()); |
|
|
|
|
|
} |
|
|
IcWorkLogEntity entity = ConvertUtils.sourceToTarget(dto, IcWorkLogEntity.class); |
|
|
IcWorkLogEntity entity = ConvertUtils.sourceToTarget(dto, IcWorkLogEntity.class); |
|
|
updateById(entity); |
|
|
updateById(entity); |
|
|
|
|
|
|
|
@ -163,6 +172,15 @@ public class IcWorkLogServiceImpl extends BaseServiceImpl<IcWorkLogDao, IcWorkLo |
|
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 附件处理 |
|
|
|
|
|
* |
|
|
|
|
|
* @param fileList |
|
|
|
|
|
* @param logId |
|
|
|
|
|
* @return void |
|
|
|
|
|
* @author zhy |
|
|
|
|
|
* @date 2022/8/9 17:24 |
|
|
|
|
|
*/ |
|
|
private void fileHandle(List<IcWorkLogFileDTO> fileList, String logId) { |
|
|
private void fileHandle(List<IcWorkLogFileDTO> fileList, String logId) { |
|
|
if (!fileList.isEmpty()) { |
|
|
if (!fileList.isEmpty()) { |
|
|
fileList.forEach(item -> { |
|
|
fileList.forEach(item -> { |
|
|