|
|
|
@ -10,6 +10,7 @@ import com.xit.biz.ctgy.dto.struct.GnRecallScMapstruct;
|
|
|
|
|
import com.xit.biz.ctgy.entity.*;
|
|
|
|
|
import com.xit.biz.ctgy.mapper.IResidentAndDisabledMapper;
|
|
|
|
|
import com.xit.biz.ctgy.repository.*;
|
|
|
|
|
import com.xit.biz.ctgy.service.IPublicBoardService;
|
|
|
|
|
import com.xit.biz.ctgy.service.IResidentAndDisabledService;
|
|
|
|
|
import com.xit.core.constant.ErrorCode;
|
|
|
|
|
import com.xit.core.exception.CustomBaseException;
|
|
|
|
@ -63,6 +64,8 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
|
|
|
|
|
private final IParkingRepository parkingRepository;
|
|
|
|
|
|
|
|
|
|
private final ICmmFileService fileService;
|
|
|
|
|
private final IPublicBoardService pBoardService;
|
|
|
|
|
|
|
|
|
|
private final EntityManager entityManager;
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------
|
|
|
|
@ -343,6 +346,13 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
|
public Map<String,Object> findDashboard(){
|
|
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
|
|
resultMap.put("pBoardList", pBoardService.findAll(MinInfoBoard680.builder().build(), PageRequest.of(0, 6)));
|
|
|
|
|
return resultMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void setFileInfoAndFileUpload(GnRecallScDto dto, MultipartFile[] mfs, String setMethodName) {
|
|
|
|
|
String makePath = fileService.uploadFiles(mfs, rootPath, CtgyConstants.Judge.DATAGB_RESIDENT.getCode().equals(dto.getScDatagb())? uploadPath[0] : uploadPath[1]);
|
|
|
|
|
//makePath = makePath + File.separator;
|
|
|
|
|