三跨管理
This commit is contained in:
parent
11d850275e
commit
2be8e81838
|
|
@ -106,4 +106,22 @@ public class TbTowerController {
|
|||
ExcelUtil<TbTowerVo> util = new ExcelUtil<TbTowerVo>(TbTowerVo.class);
|
||||
util.exportExcel(response, tbTowerVoList, "杆塔管理");
|
||||
}
|
||||
|
||||
/**
|
||||
* 杆塔管理-查询所有
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "getTbTowerAll")
|
||||
@DecryptAndVerify(decryptedClass = TbTowerVo.class)//加解密统一管理
|
||||
@LogAnnotation(operModul = "杆塔管理-查询所有", operation = "查询列表", operDesc = "系统级事件",operType="查询")
|
||||
public ServerResponse getTbTowerAll(EncryptedReq<TbTowerVo> dto) {
|
||||
try {
|
||||
List<TbTowerVo> tbTowerVoList = tbTowerService.tbProjectExport(dto.getData());
|
||||
return ServerResponse.createSuccess(tbTowerVoList);
|
||||
} catch (Exception e) {
|
||||
log.error(e.toString(), e);
|
||||
return ServerResponse.createErroe("杆塔管理-查询所有");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,8 +3,10 @@ package com.bonus.digitalSignage.basic.service.impl;
|
|||
import com.bonus.digitalSignage.backstage.entity.vo.ProProgressVo;
|
||||
import com.bonus.digitalSignage.basic.dao.TbProjectMapper;
|
||||
import com.bonus.digitalSignage.basic.service.TbProjectService;
|
||||
import com.bonus.digitalSignage.basic.service.TbThreeSpanService;
|
||||
import com.bonus.digitalSignage.basic.service.TbTowerService;
|
||||
import com.bonus.digitalSignage.basic.vo.TbProjectVo;
|
||||
import com.bonus.digitalSignage.basic.vo.TbThreeSpanVo;
|
||||
import com.bonus.digitalSignage.basic.vo.TbTowerVo;
|
||||
import com.bonus.digitalSignage.utils.ServerResponse;
|
||||
import com.bonus.digitalSignage.utils.UserUtil;
|
||||
|
|
@ -33,6 +35,9 @@ public class TbProjectServiceImpl implements TbProjectService {
|
|||
@Resource
|
||||
private TbTowerService tbTowerService;
|
||||
|
||||
@Resource
|
||||
private TbThreeSpanService tbThreeSpanService;
|
||||
|
||||
/**
|
||||
* 线路工程管理-查询列表
|
||||
* @param data
|
||||
|
|
@ -44,12 +49,17 @@ public class TbProjectServiceImpl implements TbProjectService {
|
|||
//获取工程列表
|
||||
List<TbProjectVo> tbProjectVoList = tbProjectMapper.getTbProjectList(data);
|
||||
TbTowerVo tbTowerVo = new TbTowerVo();
|
||||
TbThreeSpanVo tbThreeSpanVo = new TbThreeSpanVo();
|
||||
if (!tbProjectVoList.isEmpty()){
|
||||
for (TbProjectVo tbProjectVo:tbProjectVoList) {
|
||||
//获取工程下的杆塔列表
|
||||
tbTowerVo.setProId(tbProjectVo.getId());
|
||||
List<TbTowerVo> tbTowerVoList = tbTowerService.tbProjectExport(tbTowerVo);
|
||||
tbProjectVo.setTbTowerVoList(tbTowerVoList);
|
||||
//获取工程下的三跨列表
|
||||
tbThreeSpanVo.setProId(tbProjectVo.getId());
|
||||
List<TbThreeSpanVo> tbThreeSpanVoList = tbThreeSpanService.tbProjectAll(tbThreeSpanVo);
|
||||
tbProjectVo.setTbThreeSpanVoList(tbThreeSpanVoList);
|
||||
}
|
||||
}
|
||||
PageInfo<TbProjectVo> pageInfo = new PageInfo<>(tbProjectVoList);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.bonus.digitalSignage.basic.vo;
|
||||
|
||||
import com.bonus.digitalSignage.utils.Excel;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
|
@ -24,6 +25,7 @@ public class TbTowerVo {
|
|||
/**
|
||||
* 杆塔名称
|
||||
*/
|
||||
@Excel(name = "杆塔号", sort = 1)
|
||||
private String towerName;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<if test="centralMeridian != null ">central_meridian,</if>
|
||||
<if test="uploadType != null ">upload_type,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createUser != null ">create_user,</if>
|
||||
<if test="createUserId != null ">create_user_id,</if>
|
||||
is_actvice
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
<if test="centralMeridian != null ">#{centralMeridian},</if>
|
||||
<if test="uploadType != null ">#{uploadType},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
<if test="createUser != null ">#{createUser},</if>
|
||||
<if test="createUserId != null ">#{createUserId},</if>
|
||||
1
|
||||
</trim>
|
||||
</insert>
|
||||
|
|
|
|||
Loading…
Reference in New Issue