|
@@ -1,5 +1,6 @@
|
|
package com.ruoyi.project.ticket.controller;
|
|
package com.ruoyi.project.ticket.controller;
|
|
|
|
|
|
|
|
+import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -48,7 +49,6 @@ public class TRestrictedSpacePermitController extends BaseController
|
|
/**
|
|
/**
|
|
* 查询限制性空间进入开票列表
|
|
* 查询限制性空间进入开票列表
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('his:permit:list')")
|
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
public TableDataInfo list(TRestrictedSpacePermit tRestrictedSpacePermit)
|
|
public TableDataInfo list(TRestrictedSpacePermit tRestrictedSpacePermit)
|
|
{
|
|
{
|
|
@@ -60,7 +60,6 @@ public class TRestrictedSpacePermitController extends BaseController
|
|
/**
|
|
/**
|
|
* 导出限制性空间进入开票列表
|
|
* 导出限制性空间进入开票列表
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('his:permit:export')")
|
|
|
|
@Log(title = "限制性空间进入开票", businessType = BusinessType.EXPORT)
|
|
@Log(title = "限制性空间进入开票", businessType = BusinessType.EXPORT)
|
|
@GetMapping("/export")
|
|
@GetMapping("/export")
|
|
public AjaxResult export(TRestrictedSpacePermit tRestrictedSpacePermit)
|
|
public AjaxResult export(TRestrictedSpacePermit tRestrictedSpacePermit)
|
|
@@ -73,7 +72,6 @@ public class TRestrictedSpacePermitController extends BaseController
|
|
/**
|
|
/**
|
|
* 获取限制性空间进入开票详细信息
|
|
* 获取限制性空间进入开票详细信息
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('his:permit:query')")
|
|
|
|
@GetMapping(value = "/{cId}")
|
|
@GetMapping(value = "/{cId}")
|
|
public AjaxResult getInfo(@PathVariable("cId") Long cId)
|
|
public AjaxResult getInfo(@PathVariable("cId") Long cId)
|
|
{
|
|
{
|
|
@@ -83,7 +81,6 @@ public class TRestrictedSpacePermitController extends BaseController
|
|
/**
|
|
/**
|
|
* 新增限制性空间进入开票
|
|
* 新增限制性空间进入开票
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('his:permit:add')")
|
|
|
|
@Log(title = "限制性空间进入开票", businessType = BusinessType.INSERT)
|
|
@Log(title = "限制性空间进入开票", businessType = BusinessType.INSERT)
|
|
@PostMapping
|
|
@PostMapping
|
|
public AjaxResult add(@RequestBody TRestrictedSpacePermit tRestrictedSpacePermit)
|
|
public AjaxResult add(@RequestBody TRestrictedSpacePermit tRestrictedSpacePermit)
|
|
@@ -94,6 +91,12 @@ public class TRestrictedSpacePermitController extends BaseController
|
|
Long ticketId = tTicketIdController.createId(tTicketId);
|
|
Long ticketId = tTicketIdController.createId(tTicketId);
|
|
//保存限制空间许可证
|
|
//保存限制空间许可证
|
|
tRestrictedSpacePermit.setcId(ticketId);
|
|
tRestrictedSpacePermit.setcId(ticketId);
|
|
|
|
+ Date bValidityStartTime = tRestrictedSpacePermit.getbValidityStartTime();
|
|
|
|
+ Date bValidityEndTime = tRestrictedSpacePermit.getbValidityEndTime();
|
|
|
|
+ bValidityStartTime.setDate(bValidityStartTime.getDate() + 1);
|
|
|
|
+ bValidityEndTime.setDate(bValidityEndTime.getDate() + 1);
|
|
|
|
+ tRestrictedSpacePermit.setbValidityStartTime(bValidityStartTime);
|
|
|
|
+ tRestrictedSpacePermit.setbValidityEndTime(bValidityEndTime);
|
|
tRestrictedSpacePermitService.insertTRestrictedSpacePermit(tRestrictedSpacePermit);
|
|
tRestrictedSpacePermitService.insertTRestrictedSpacePermit(tRestrictedSpacePermit);
|
|
//保存限制空间许可证关联数据
|
|
//保存限制空间许可证关联数据
|
|
PermitRelation permitRelation = new PermitRelation();
|
|
PermitRelation permitRelation = new PermitRelation();
|
|
@@ -108,7 +111,6 @@ public class TRestrictedSpacePermitController extends BaseController
|
|
/**
|
|
/**
|
|
* 修改限制性空间进入开票
|
|
* 修改限制性空间进入开票
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('his:permit:edit')")
|
|
|
|
@Log(title = "限制性空间进入开票", businessType = BusinessType.UPDATE)
|
|
@Log(title = "限制性空间进入开票", businessType = BusinessType.UPDATE)
|
|
@PutMapping
|
|
@PutMapping
|
|
public AjaxResult edit(@RequestBody TRestrictedSpacePermit tRestrictedSpacePermit)
|
|
public AjaxResult edit(@RequestBody TRestrictedSpacePermit tRestrictedSpacePermit)
|
|
@@ -119,7 +121,6 @@ public class TRestrictedSpacePermitController extends BaseController
|
|
/**
|
|
/**
|
|
* 删除限制性空间进入开票
|
|
* 删除限制性空间进入开票
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('his:permit:remove')")
|
|
|
|
@Log(title = "限制性空间进入开票", businessType = BusinessType.DELETE)
|
|
@Log(title = "限制性空间进入开票", businessType = BusinessType.DELETE)
|
|
@DeleteMapping("/{cIds}")
|
|
@DeleteMapping("/{cIds}")
|
|
public AjaxResult remove(@PathVariable Long[] cIds)
|
|
public AjaxResult remove(@PathVariable Long[] cIds)
|