| | |
| | | import cn.gistack.sm.jcsb.service.IDangerReportService; |
| | | import cn.gistack.sm.jcsb.vo.DangerReportVO; |
| | | import cn.gistack.sm.jcsb.vo.StatisticsVO; |
| | | import cn.gistack.sm.sjztmd.entity.AttResBase; |
| | | import cn.gistack.sm.sjztmd.service.IAttResBaseService; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.core.mp.base.BaseServiceImpl; |
| | |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Propagation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | |
| | | |
| | | @Autowired |
| | | private IPwdClient pwdClient; |
| | | @Autowired |
| | | private IAttResBaseService attResBaseService; |
| | | |
| | | @Override |
| | | public List<DangerReportVO> getAll(DangerReport dangerReport) { |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public boolean saveUp(DangerReport dangerReport) { |
| | | // 填充加密内容 |
| | | DangerReportSUPO dangerReportSUPO = BeanUtil.copy(dangerReport, DangerReportSUPO.class); |
| | | |
| | | // 获取水库名称 |
| | | AttResBase attResBase = attResBaseService.getDetailByCode(dangerReport.getReservoirId()); |
| | | dangerReportSUPO.setReservoirName(attResBase.getName()); |
| | | |
| | | String message = JSONObject.toJSONString(dangerReportSUPO); |
| | | R<CBCResultDTO> cbcResultDTOR = pwdClient.getCBCMacEncipher(message); |
| | | if (cbcResultDTOR.getCode() != 200) { |