|
|
|
|
@ -23,12 +23,14 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.springblade.common.cache.DictBizCache; |
|
|
|
|
import org.springblade.common.constant.BusinessConstant; |
|
|
|
|
import org.springblade.common.enums.DictBizEnum; |
|
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
|
import org.springblade.modules.business.entity.Appeal; |
|
|
|
|
import org.springblade.modules.business.entity.AppealVisitor; |
|
|
|
|
import org.springblade.modules.business.entity.DataEntity; |
|
|
|
|
import org.springblade.modules.business.excel.AppealExcel; |
|
|
|
|
import org.springblade.modules.business.mapper.AppealMapper; |
|
|
|
|
import org.springblade.modules.business.service.IAppealService; |
|
|
|
|
import org.springblade.modules.business.service.IAppealVisitorService; |
|
|
|
|
import org.springblade.modules.business.service.ILargeScreenService; |
|
|
|
|
@ -62,6 +64,8 @@ public class LargeScreenServiceImpl implements ILargeScreenService { |
|
|
|
|
|
|
|
|
|
private final IAppealService appealService; |
|
|
|
|
|
|
|
|
|
private final AppealMapper appealMapper; |
|
|
|
|
|
|
|
|
|
private final IAppealVisitorService appealVisitorService; |
|
|
|
|
|
|
|
|
|
private final IUserService userService; |
|
|
|
|
@ -348,7 +352,7 @@ public class LargeScreenServiceImpl implements ILargeScreenService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@Transactional |
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
public void importAppeal(List<AppealExcel> excels) { |
|
|
|
|
if (CollectionUtils.isNotEmpty(excels)) { |
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|
@ -419,7 +423,7 @@ public class LargeScreenServiceImpl implements ILargeScreenService { |
|
|
|
|
appeal.setSkipGrant(0); |
|
|
|
|
|
|
|
|
|
// 数据来源 0:系统添加, 1:数据导入
|
|
|
|
|
appeal.setSourceType(1); |
|
|
|
|
appeal.setSourceType(BusinessConstant.SOURCE_TYPE_IMPORT); |
|
|
|
|
|
|
|
|
|
// 上访人员
|
|
|
|
|
if (StringUtils.isNotBlank(excel.getUsername())) { |
|
|
|
|
@ -437,6 +441,12 @@ public class LargeScreenServiceImpl implements ILargeScreenService { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<AppealExcel> exportAppeal(String appealStatus, String startTime, String endTime, String appealType, String windowId, String username) { |
|
|
|
|
List<AppealExcel> excels = appealMapper.exportAppeal(appealStatus, startTime, endTime, appealType, windowId, username); |
|
|
|
|
return excels; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Map<String, List<DataEntity>> getAppealHot() { |
|
|
|
|
Map<String, List<DataEntity>> map = new HashMap(); |
|
|
|
|
|