|
@ -1,5 +1,6 @@ |
|
|
package com.epmet.service.impl; |
|
|
package com.epmet.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
@ -92,9 +93,12 @@ public class IcComplaintsServiceImpl extends BaseServiceImpl<IcComplaintsDao, Ic |
|
|
public IcComplaintsDTO get(String id) { |
|
|
public IcComplaintsDTO get(String id) { |
|
|
IcComplaintsEntity entity = baseDao.selectById(id); |
|
|
IcComplaintsEntity entity = baseDao.selectById(id); |
|
|
IcComplaintsDTO result = ConvertUtils.sourceToTarget(entity, IcComplaintsDTO.class); |
|
|
IcComplaintsDTO result = ConvertUtils.sourceToTarget(entity, IcComplaintsDTO.class); |
|
|
if (StringUtils.isNotEmpty(entity.getImgs())) { |
|
|
if (null != entity.getImgs() && StringUtils.isNotEmpty(entity.getImgs())) { |
|
|
result.setImgs(entity.getImgs().split(",")); |
|
|
result.setImgs(entity.getImgs().split(",")); |
|
|
} |
|
|
} |
|
|
|
|
|
if (null != entity.getCreatedTime()) { |
|
|
|
|
|
result.setCreatedTime(DateUtil.formatDate(entity.getCreatedTime())); |
|
|
|
|
|
} |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -181,6 +185,9 @@ public class IcComplaintsServiceImpl extends BaseServiceImpl<IcComplaintsDao, Ic |
|
|
if (StringUtils.isNotEmpty(entity.getImgs())) { |
|
|
if (StringUtils.isNotEmpty(entity.getImgs())) { |
|
|
dto.setImgs(entity.getImgs().split(",")); |
|
|
dto.setImgs(entity.getImgs().split(",")); |
|
|
} |
|
|
} |
|
|
|
|
|
if (null != entity.getCreatedTime()) { |
|
|
|
|
|
dto.setCreatedTime(DateUtil.formatDate(entity.getCreatedTime())); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|