|
|
@ -33,6 +33,7 @@ import com.dayu.daf.core.mp.support.Condition; |
|
|
|
import com.dayu.daf.core.mp.support.Query; |
|
|
|
import com.dayu.daf.core.mp.support.Query; |
|
|
|
import com.dayu.daf.core.tool.api.R; |
|
|
|
import com.dayu.daf.core.tool.api.R; |
|
|
|
import com.dayu.daf.core.tool.utils.Func; |
|
|
|
import com.dayu.daf.core.tool.utils.Func; |
|
|
|
|
|
|
|
import org.energy.modules.inspection.entity.InspectionObject; |
|
|
|
import org.energy.modules.leger.service.IInventoryDocumentService; |
|
|
|
import org.energy.modules.leger.service.IInventoryDocumentService; |
|
|
|
import org.energy.modules.leger.service.ITechParametersService; |
|
|
|
import org.energy.modules.leger.service.ITechParametersService; |
|
|
|
import lombok.SneakyThrows; |
|
|
|
import lombok.SneakyThrows; |
|
|
@ -234,4 +235,26 @@ public class EquipmentLedgerController extends DafController { |
|
|
|
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
|
|
|
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
|
|
|
EasyExcel.write(response.getOutputStream(), EquipmentLedgerExcel.class).sheet("静态台账").doWrite(list); |
|
|
|
EasyExcel.write(response.getOutputStream(), EquipmentLedgerExcel.class).sheet("静态台账").doWrite(list); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 获取对象编号 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@GetMapping("/getKksList") |
|
|
|
|
|
|
|
@ApiOperationSupport(order = 11) |
|
|
|
|
|
|
|
@ApiOperation(value = "获取kks编号", notes = "获取kks编号") |
|
|
|
|
|
|
|
public R<List<EquipmentLedger>> getKksNoList() { |
|
|
|
|
|
|
|
List<EquipmentLedger> kksList = equipmentLedgerService.getKksNoList(); |
|
|
|
|
|
|
|
return R.data(kksList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 获取对象编号 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@GetMapping("/getDetailList") |
|
|
|
|
|
|
|
@ApiOperationSupport(order = 12) |
|
|
|
|
|
|
|
@ApiOperation(value = "获取kks信息", notes = "获取kks信息") |
|
|
|
|
|
|
|
public R<EquipmentLedger> getDetailList(String KksNo) { |
|
|
|
|
|
|
|
EquipmentLedger DetailList = equipmentLedgerService.getDetailList("'" + KksNo + "'"); |
|
|
|
|
|
|
|
return R.data(DetailList); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|