Commit ebd3ed75 authored by tangwei's avatar tangwei

修改排序,以及施工管理详情增加施工操作记录

parent c5301847
package com.yeejoin.amos.boot.module.hygf.api.dto; package com.yeejoin.amos.boot.module.hygf.api.dto;
import com.yeejoin.amos.boot.module.hygf.api.entity.HygfOnGrid; import com.yeejoin.amos.boot.module.hygf.api.entity.*;
import com.yeejoin.amos.boot.module.hygf.api.entity.PowerStationConstructionData;
import com.yeejoin.amos.boot.module.hygf.api.entity.PowerStationEngineeringInfo;
import com.yeejoin.amos.boot.module.hygf.api.entity.WorkOrder;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import lombok.Data; import lombok.Data;
...@@ -49,5 +46,7 @@ public class SurveyInfoAllDto { ...@@ -49,5 +46,7 @@ public class SurveyInfoAllDto {
WorkOrder workOrder; WorkOrder workOrder;
//自审信息
ConstructionRecords constructionRecords;
} }
...@@ -90,6 +90,7 @@ ...@@ -90,6 +90,7 @@
</if> </if>
</where> </where>
ORDER BY ORDER BY
FIELD(bga.acceptance_status, '1', '2', '3', '4', '5', '6', '7', '11', '8', '9', '10'),
bga.rec_date desc, bga.acceptance_rec_date DESC bga.rec_date desc, bga.acceptance_rec_date DESC
</select> </select>
</mapper> </mapper>
...@@ -67,6 +67,8 @@ ...@@ -67,6 +67,8 @@
AND DATE_FORMAT(hogaa.grid_connection_time, '%Y-%m-%d') = DATE_FORMAT( #{map.gridConnectionTime}, '%Y-%m-%d') AND DATE_FORMAT(hogaa.grid_connection_time, '%Y-%m-%d') = DATE_FORMAT( #{map.gridConnectionTime}, '%Y-%m-%d')
</if> </if>
</where> </where>
ORDER BY hbga.rec_date desc, hogaa.grid_connection_time desc ORDER BY
FIELD(hbga.grid_status, '1', '2', '4', '3'),
hbga.rec_date desc, hogaa.grid_connection_time desc
</select> </select>
</mapper> </mapper>
...@@ -31,7 +31,10 @@ ...@@ -31,7 +31,10 @@
<if test="dto.regionCompanyId!=null and dto.regionCompanyId!=''"> <if test="dto.regionCompanyId!=null and dto.regionCompanyId!=''">
and hygf_work_order.region_company_id =#{dto.regionCompanyId} and hygf_work_order.region_company_id =#{dto.regionCompanyId}
</if> </if>
ORDER BY hygf_work_order.rec_date DESC ORDER BY
FIELD(hygf_work_order.work_order_status, '待施工', '施工中', '待登记', '登记中', '待审核', '审核中', '未通过', '已完工'),
hygf_work_order.rec_date DESC
</select> </select>
...@@ -95,7 +98,11 @@ ...@@ -95,7 +98,11 @@
<if test="dto.regionCompanyId!=null and dto.regionCompanyId!=''"> <if test="dto.regionCompanyId!=null and dto.regionCompanyId!=''">
and hygf_work_order.region_company_id =#{dto.regionCompanyId} and hygf_work_order.region_company_id =#{dto.regionCompanyId}
</if> </if>
ORDER BY hygf_work_order_power_station.rec_date DESC ORDER BY
FIELD(hygf_work_order_power_station.power_station_construction_status, '待施工', '施工中', '待登记', '登记中', '待审核', '审核中', '未通过', '已完工'),
hygf_work_order_power_station.rec_date DESC
</where> </where>
</select> </select>
......
...@@ -524,6 +524,21 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto,WorkOrder,Wor ...@@ -524,6 +524,21 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto,WorkOrder,Wor
powerStationEngineeringInfo.setConstructionRegionManager(workOrder.getConstructionRegionManager()); powerStationEngineeringInfo.setConstructionRegionManager(workOrder.getConstructionRegionManager());
powerStationEngineeringInfo.setConstructionRegionManagerPhone(workOrder.getConstructionRegionManagerPhone()); powerStationEngineeringInfo.setConstructionRegionManagerPhone(workOrder.getConstructionRegionManagerPhone());
} }
//施工自审
LambdaQueryWrapper<ConstructionRecords> up5=new LambdaQueryWrapper();
up5.eq(ConstructionRecords::getWorkOrderId,workOrderId);
up5.eq(ConstructionRecords::getWorkOrderPowerStationId,workOrderPowerStationId);
up5.orderByDesc(ConstructionRecords::getRecDate);
List<ConstructionRecords> li=constructionRecordsMapper.selectList(up5);
ConstructionRecords data=new ConstructionRecords();
data.setConstructionRecordsList(li);
surveyInfoAllDto.setConstructionRecords(data);
//并网信息 //并网信息
LambdaQueryWrapper<HygfOnGrid> up4=new LambdaQueryWrapper(); LambdaQueryWrapper<HygfOnGrid> up4=new LambdaQueryWrapper();
up4.eq(HygfOnGrid::getWorkOrderId,workOrderId); up4.eq(HygfOnGrid::getWorkOrderId,workOrderId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment