| | |
| | | PropsUtil.setProperty(props, "spring.cloud.nacos.password", LauncherConstant.NACOS_PASSWORD); |
| | | |
| | | //自定义注册 |
| | | // PropsUtil.setProperty(props, "spring.cloud.nacos.config.namespace", "guoshilong"); |
| | | // PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.namespace", "guoshilong"); |
| | | PropsUtil.setProperty(props, "spring.cloud.nacos.config.namespace", "guoshilong"); |
| | | PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.namespace", "guoshilong"); |
| | | |
| | | PropsUtil.setProperty(props, "spring.cloud.sentinel.transport.dashboard", LauncherConstant.sentinelAddr(profile)); |
| | | PropsUtil.setProperty(props, "spring.zipkin.base-url", LauncherConstant.zipkinAddr(profile)); |
| | |
| | | package cn.gistack.sm.schedulingModules.controller; |
| | | |
| | | import cn.gistack.sm.reportFlood.entity.ReportFloodRecord; |
| | | import cn.gistack.sm.schedulingModules.entity.SchedulingRecord; |
| | | import cn.gistack.sm.schedulingModules.service.ISchedulingRecordService; |
| | | import cn.gistack.sm.schedulingModules.vo.SchedulingRecordVO; |
| | |
| | | return R.data(schedulingRecordService.removeBatchByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 查询详情 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "查询详情", notes = "查询详情") |
| | | @GetMapping(value = "/getDetail") |
| | | public R queryById(SchedulingRecordVO schedulingRecordVO) { |
| | | SchedulingRecordVO detail = schedulingRecordService.customizeGetDetail(schedulingRecordVO); |
| | | return R.data(detail); |
| | | } |
| | | |
| | | } |
| | |
| | | */ |
| | | public interface SchedulingRecordMapper extends BaseMapper<SchedulingRecord> { |
| | | List<SchedulingRecordVO> selectRecordPage(IPage<SchedulingRecordVO> page, @Param("record") SchedulingRecordVO schedulingRecordVO); |
| | | |
| | | SchedulingRecordVO customizeGetDetail(SchedulingRecordVO schedulingRecordVO); |
| | | } |
| | |
| | | AND R.gate_status = #{record.gateStatus} |
| | | </if> |
| | | </select> |
| | | <select id="customizeGetDetail" resultType="cn.gistack.sm.schedulingModules.vo.SchedulingRecordVO"> |
| | | SELECT R.*,arb."name" reservoirName FROM SM_SCHEDULING_RECORD R |
| | | LEFT JOIN SJZT_MD."att_res_base" arb on arb."guid" = R.reservoir_id |
| | | WHERE R.IS_DELETED = 0 AND r.id = #{record.id} |
| | | <if test="record.reservoirName != null and record.reservoirName !=''"> |
| | | AND arb."name" LIKE CONCAT('%',#{record.reservoirName},'%') |
| | | </if> |
| | | <if test="record.gateStatus !=null and record.gateStatus !=''"> |
| | | AND R.gate_status = #{record.gateStatus} |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | |
| | | */ |
| | | public interface ISchedulingRecordService extends BaseService<SchedulingRecord> { |
| | | IPage<SchedulingRecordVO> selectPage(IPage<SchedulingRecordVO> page, SchedulingRecordVO schedulingRecordVO); |
| | | |
| | | SchedulingRecordVO customizeGetDetail(SchedulingRecordVO schedulingRecordVO); |
| | | } |
| | |
| | | public IPage<SchedulingRecordVO> selectPage(IPage<SchedulingRecordVO> page, SchedulingRecordVO schedulingRecordVO) { |
| | | return page.setRecords(baseMapper.selectRecordPage(page,schedulingRecordVO)); |
| | | } |
| | | |
| | | @Override |
| | | public SchedulingRecordVO customizeGetDetail(SchedulingRecordVO schedulingRecordVO) { |
| | | return baseMapper.customizeGetDetail(schedulingRecordVO); |
| | | } |
| | | } |