|
@@ -11,6 +11,7 @@ import com.bootdo.datas.dto.ExamineLogDTO;
|
|
import com.bootdo.datas.dto.GyDataImportDTO;
|
|
import com.bootdo.datas.dto.GyDataImportDTO;
|
|
import com.bootdo.datas.service.ExamineLogService;
|
|
import com.bootdo.datas.service.ExamineLogService;
|
|
import com.bootdo.datas.service.GyDataService;
|
|
import com.bootdo.datas.service.GyDataService;
|
|
|
|
+import com.bootdo.datas.service.MessageHuNanService;
|
|
import com.bootdo.datas.service.MessageService;
|
|
import com.bootdo.datas.service.MessageService;
|
|
import com.bootdo.datas.tools.ExcelUtils;
|
|
import com.bootdo.datas.tools.ExcelUtils;
|
|
import com.bootdo.datas.tools.gm.FileCryptTool;
|
|
import com.bootdo.datas.tools.gm.FileCryptTool;
|
|
@@ -62,7 +63,7 @@ public class GyDataServiceImpl implements GyDataService {
|
|
@Autowired
|
|
@Autowired
|
|
private RoleService roleService;
|
|
private RoleService roleService;
|
|
@Autowired
|
|
@Autowired
|
|
- private MessageService messageService;
|
|
|
|
|
|
+ private MessageHuNanService messageHuNanService;
|
|
|
|
|
|
private static Logger log = LoggerFactory.getLogger(GyDataServiceImpl.class);
|
|
private static Logger log = LoggerFactory.getLogger(GyDataServiceImpl.class);
|
|
|
|
|
|
@@ -549,7 +550,7 @@ public class GyDataServiceImpl implements GyDataService {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public void updateStatus(GyDataImportDTO data) {
|
|
|
|
|
|
+ public void updateStatus(GyDataImportDTO data,String opinion) {
|
|
int effect = gyDataDao.updateStatus(data);
|
|
int effect = gyDataDao.updateStatus(data);
|
|
|
|
|
|
if ("2".equalsIgnoreCase(data.getDataStatus()) && effect > 0) {
|
|
if ("2".equalsIgnoreCase(data.getDataStatus()) && effect > 0) {
|
|
@@ -581,26 +582,27 @@ public class GyDataServiceImpl implements GyDataService {
|
|
dto.setUniqueKey(String.valueOf(data.getId()));
|
|
dto.setUniqueKey(String.valueOf(data.getId()));
|
|
dto.setDataType("DI_OPER");
|
|
dto.setDataType("DI_OPER");
|
|
dto.setMessage("数据已被(" + roleDO.getRoleName() + ")审核驳回, 请核对");
|
|
dto.setMessage("数据已被(" + roleDO.getRoleName() + ")审核驳回, 请核对");
|
|
|
|
+ dto.setOpinion(opinion);
|
|
examineLogService.save(dto);
|
|
examineLogService.save(dto);
|
|
}
|
|
}
|
|
- if("四川省".equals(this.sysProvince)){
|
|
|
|
|
|
+ if("湖南".equals(this.sysProvince)){
|
|
//通过数据id,查询数据信息
|
|
//通过数据id,查询数据信息
|
|
GyDataImportDTO importDTO = gyDataDao.get(data.getId());
|
|
GyDataImportDTO importDTO = gyDataDao.get(data.getId());
|
|
if(Objects.nonNull(importDTO)){
|
|
if(Objects.nonNull(importDTO)){
|
|
- log.info("=====================发送短信了===数据信息查询==="+importDTO.toString());
|
|
|
|
//发送短息
|
|
//发送短息
|
|
- if("1".equals(importDTO.getAuditStage())){
|
|
|
|
|
|
+ if("2".equals(importDTO.getAuditStage())){
|
|
|
|
+ log.info("=====================发送短信了===数据信息查询==="+importDTO.toString());
|
|
//审核阶段: 1:市级,2:省级
|
|
//审核阶段: 1:市级,2:省级
|
|
GyUnitDO gyUnitDO = gyUnitDao.getGyUnitByCreditCode(importDTO.getGyUnitId());
|
|
GyUnitDO gyUnitDO = gyUnitDao.getGyUnitByCreditCode(importDTO.getGyUnitId());
|
|
log.info("=====================发送短信了===企业信息查询==="+gyUnitDO.toString());
|
|
log.info("=====================发送短信了===企业信息查询==="+gyUnitDO.toString());
|
|
if(Objects.nonNull(gyUnitDO)){
|
|
if(Objects.nonNull(gyUnitDO)){
|
|
try {
|
|
try {
|
|
log.info("=====================发送短信了===start==="+gyUnitDO.toString());
|
|
log.info("=====================发送短信了===start==="+gyUnitDO.toString());
|
|
- messageService.importance(gyUnitDO.getDataSecurityWay()+","+gyUnitDO.getMobilePhone(),
|
|
|
|
|
|
+ messageHuNanService.sendMessage(gyUnitDO.getDataSecurityWay()+","+gyUnitDO.getMobilePhone(),
|
|
importDTO.getDataName());
|
|
importDTO.getDataName());
|
|
log.info("=====================发送短信了===end==="+gyUnitDO.toString());
|
|
log.info("=====================发送短信了===end==="+gyUnitDO.toString());
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- log.error("=============messageService.importance=======error======="+e.getMessage());
|
|
|
|
|
|
+ log.error("=============messageHuNanService.sendMessage=======error======="+e.getMessage());
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
@@ -779,6 +781,16 @@ public class GyDataServiceImpl implements GyDataService {
|
|
return gyDataDao.countAaAssData(id);
|
|
return gyDataDao.countAaAssData(id);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<GyDataImportDTO> dataEntryList(Map<String, Object> map) {
|
|
|
|
+ return gyDataDao.list(map);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public int dataEntryCountTotal(Map<String, Object> map) {
|
|
|
|
+ return gyDataDao.countTotal(map);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @Description: MultipartFile转file
|
|
* @Description: MultipartFile转file
|
|
* @Author: wangp
|
|
* @Author: wangp
|