|
|
|
@ -74,32 +74,6 @@ public class SltAgreementInfoController extends BaseController {
|
|
|
|
return AjaxResult.success(sltAgreementInfoService.getSltInfoMonth(list));
|
|
|
|
return AjaxResult.success(sltAgreementInfoService.getSltInfoMonth(list));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* @ApiOperation(value = "月结明细导出")
|
|
|
|
|
|
|
|
@PostMapping("/exportSltInfoMonth")
|
|
|
|
|
|
|
|
public void exportSltInfoMonth(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
|
|
|
|
List<SltAgreementInfo> sltInfoMonth = sltAgreementInfoService.getSltInfoMonth(list);
|
|
|
|
|
|
|
|
for (AgreementInfo agreementInfo : list) {
|
|
|
|
|
|
|
|
for (SltAgreementInfo sltAgreementInfo : sltInfoMonth) {
|
|
|
|
|
|
|
|
// 单个协议导出
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(agreementInfo.getCodeNum())) {
|
|
|
|
|
|
|
|
String[] split = agreementInfo.getCodeNum().split(",");
|
|
|
|
|
|
|
|
for (String s : split) {
|
|
|
|
|
|
|
|
if (s.equals(sltAgreementInfo.getCodeNum().toString())) {
|
|
|
|
|
|
|
|
List<SltAgreementInfo> node = sltAgreementInfo.getNode();
|
|
|
|
|
|
|
|
ExcelUtil<SltAgreementInfo> util = new ExcelUtil<SltAgreementInfo>(SltAgreementInfo.class);
|
|
|
|
|
|
|
|
util.exportExcel(response, node, "月结明细导出数据");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// 多个协议导出
|
|
|
|
|
|
|
|
List<SltAgreementInfo> node = sltAgreementInfo.getNode();
|
|
|
|
|
|
|
|
ExcelUtil<SltAgreementInfo> util = new ExcelUtil<SltAgreementInfo>(SltAgreementInfo.class);
|
|
|
|
|
|
|
|
util.exportExcel(response, node, "月结明细导出数据");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions("cost:settlement:export")
|
|
|
|
@RequiresPermissions("cost:settlement:export")
|
|
|
|
@ApiOperation(value = "月结明细导出")
|
|
|
|
@ApiOperation(value = "月结明细导出")
|
|
|
|
@PostMapping("/exportSltInfoMonth")
|
|
|
|
@PostMapping("/exportSltInfoMonth")
|
|
|
|
@ -152,7 +126,7 @@ public class SltAgreementInfoController extends BaseController {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Log(title = "租赁明细导出", businessType = BusinessType.EXPORT)
|
|
|
|
@Log(title = "租赁明细导出", businessType = BusinessType.EXPORT)
|
|
|
|
@PostMapping("/exportLeaseOne")
|
|
|
|
@PostMapping("/exportLeaseOne")
|
|
|
|
// @RequiresPermissions("ndertake:export_1")
|
|
|
|
@RequiresPermissions("ndertake:export_1")
|
|
|
|
public void exportLeaseOne(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
public void exportLeaseOne(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getLeaseListOne(list);
|
|
|
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getLeaseListOne(list);
|
|
|
|
List<LeaseInfo> leaseInfoList = Convert.toList(LeaseInfo.class, explist);
|
|
|
|
List<LeaseInfo> leaseInfoList = Convert.toList(LeaseInfo.class, explist);
|
|
|
|
@ -165,7 +139,7 @@ public class SltAgreementInfoController extends BaseController {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Log(title = "租赁明细导出", businessType = BusinessType.EXPORT)
|
|
|
|
@Log(title = "租赁明细导出", businessType = BusinessType.EXPORT)
|
|
|
|
@PostMapping("/exportLeaseThree")
|
|
|
|
@PostMapping("/exportLeaseThree")
|
|
|
|
// @RequiresPermissions("ndertake:export_2")
|
|
|
|
@RequiresPermissions("ndertake:export_2")
|
|
|
|
public void exportLeaseThree(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
public void exportLeaseThree(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getLeaseListThree(list);
|
|
|
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getLeaseListThree(list);
|
|
|
|
List<LeaseInfo> leaseInfoList = Convert.toList(LeaseInfo.class, explist);
|
|
|
|
List<LeaseInfo> leaseInfoList = Convert.toList(LeaseInfo.class, explist);
|
|
|
|
@ -178,7 +152,7 @@ public class SltAgreementInfoController extends BaseController {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Log(title = "丢失明细导出", businessType = BusinessType.EXPORT)
|
|
|
|
@Log(title = "丢失明细导出", businessType = BusinessType.EXPORT)
|
|
|
|
@PostMapping("/exportLose")
|
|
|
|
@PostMapping("/exportLose")
|
|
|
|
// @RequiresPermissions("device:wh:export")
|
|
|
|
@RequiresPermissions("device:wh:export")
|
|
|
|
public void exportLose(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
public void exportLose(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getLoseList(list);
|
|
|
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getLoseList(list);
|
|
|
|
List<LoseInfo> leaseInfoList = Convert.toList(LoseInfo.class, explist);
|
|
|
|
List<LoseInfo> leaseInfoList = Convert.toList(LoseInfo.class, explist);
|
|
|
|
@ -191,7 +165,7 @@ public class SltAgreementInfoController extends BaseController {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Log(title = "维修明细导出", businessType = BusinessType.EXPORT)
|
|
|
|
@Log(title = "维修明细导出", businessType = BusinessType.EXPORT)
|
|
|
|
@PostMapping("/exportRepair")
|
|
|
|
@PostMapping("/exportRepair")
|
|
|
|
// @RequiresPermissions("device:repair:export")
|
|
|
|
@RequiresPermissions("device:repair:export")
|
|
|
|
public void exportRepair(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
public void exportRepair(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getRepairList(list);
|
|
|
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getRepairList(list);
|
|
|
|
List<RepairInfo> leaseInfoList = Convert.toList(RepairInfo.class, explist);
|
|
|
|
List<RepairInfo> leaseInfoList = Convert.toList(RepairInfo.class, explist);
|
|
|
|
@ -204,7 +178,7 @@ public class SltAgreementInfoController extends BaseController {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Log(title = "报废明细导出", businessType = BusinessType.EXPORT)
|
|
|
|
@Log(title = "报废明细导出", businessType = BusinessType.EXPORT)
|
|
|
|
@PostMapping("/exportScrap")
|
|
|
|
@PostMapping("/exportScrap")
|
|
|
|
// @RequiresPermissions("device:scrap:export")
|
|
|
|
@RequiresPermissions("device:scrap:export")
|
|
|
|
public void exportScrap(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
public void exportScrap(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getScrapList(list);
|
|
|
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getScrapList(list);
|
|
|
|
List<ScrapInfo> leaseInfoList = Convert.toList(ScrapInfo.class, explist);
|
|
|
|
List<ScrapInfo> leaseInfoList = Convert.toList(ScrapInfo.class, explist);
|
|
|
|
@ -217,7 +191,7 @@ public class SltAgreementInfoController extends BaseController {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Log(title = "预报废明细导出", businessType = BusinessType.EXPORT)
|
|
|
|
@Log(title = "预报废明细导出", businessType = BusinessType.EXPORT)
|
|
|
|
@PostMapping("/exportPreScrap")
|
|
|
|
@PostMapping("/exportPreScrap")
|
|
|
|
// @RequiresPermissions("device:dai:scrap:export")
|
|
|
|
@RequiresPermissions("device:dai:scrap:export")
|
|
|
|
public void exportPreScrap(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
public void exportPreScrap(HttpServletResponse response, @RequestBody List<AgreementInfo> list) {
|
|
|
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getPreScrapList(list);
|
|
|
|
List<SltAgreementInfo> explist = sltAgreementInfoService.getPreScrapList(list);
|
|
|
|
List<preScrapInfo> leaseInfoList = Convert.toList(preScrapInfo.class, explist);
|
|
|
|
List<preScrapInfo> leaseInfoList = Convert.toList(preScrapInfo.class, explist);
|
|
|
|
|