|
@@ -19,7 +19,6 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
|
import io.swagger.v3.oas.annotations.Parameters;
|
|
import io.swagger.v3.oas.annotations.Parameters;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@@ -47,7 +46,7 @@ public class IsMaterialsLoanController extends BaseController
|
|
|
@Parameter(name = "page", description = "Page"),
|
|
@Parameter(name = "page", description = "Page"),
|
|
|
@Parameter(name = "dto", description = "实体参数")
|
|
@Parameter(name = "dto", description = "实体参数")
|
|
|
})
|
|
})
|
|
|
- @PreAuthorize("@ss.hasPermi('iscs:loan:list')")
|
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('iscs:loan:list')")
|
|
|
@GetMapping("/getIsMaterialsLoanPage")
|
|
@GetMapping("/getIsMaterialsLoanPage")
|
|
|
public CommonResult<Page<MaterialsLoanPageVO>> getIsMaterialsLoanPage(Page<IsMaterialsLoan> page, MaterialsLoanPageDTO dto)
|
|
public CommonResult<Page<MaterialsLoanPageVO>> getIsMaterialsLoanPage(Page<IsMaterialsLoan> page, MaterialsLoanPageDTO dto)
|
|
|
{
|
|
{
|
|
@@ -60,7 +59,7 @@ public class IsMaterialsLoanController extends BaseController
|
|
|
*/
|
|
*/
|
|
|
@ApiOperation("导出物资借出列表")
|
|
@ApiOperation("导出物资借出列表")
|
|
|
@Parameter(name = "isMaterialsLoan", description = "实体参数")
|
|
@Parameter(name = "isMaterialsLoan", description = "实体参数")
|
|
|
- @PreAuthorize("@ss.hasPermi('iscs:loan:export')")
|
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('iscs:loan:export')")
|
|
|
@Log(title = "物资借出", businessType = BusinessType.EXPORT)
|
|
@Log(title = "物资借出", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/exportIsMaterialsLoan")
|
|
@PostMapping("/exportIsMaterialsLoan")
|
|
|
public void exportIsMaterialsLoan(HttpServletResponse response, IsMaterialsLoan isMaterialsLoan)
|
|
public void exportIsMaterialsLoan(HttpServletResponse response, IsMaterialsLoan isMaterialsLoan)
|
|
@@ -75,7 +74,7 @@ public class IsMaterialsLoanController extends BaseController
|
|
|
*/
|
|
*/
|
|
|
@ApiOperation("获取物资借出详细信息")
|
|
@ApiOperation("获取物资借出详细信息")
|
|
|
@Parameter(name = "materialsLoanId", description = "materialsLoanId")
|
|
@Parameter(name = "materialsLoanId", description = "materialsLoanId")
|
|
|
- @PreAuthorize("@ss.hasPermi('iscs:loan:query')")
|
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('iscs:loan:query')")
|
|
|
@GetMapping(value = "/selectIsMaterialsLoanById")
|
|
@GetMapping(value = "/selectIsMaterialsLoanById")
|
|
|
public CommonResult<IsMaterialsLoan> selectIsMaterialsLoanById(Long materialsLoanId)
|
|
public CommonResult<IsMaterialsLoan> selectIsMaterialsLoanById(Long materialsLoanId)
|
|
|
{
|
|
{
|
|
@@ -86,7 +85,7 @@ public class IsMaterialsLoanController extends BaseController
|
|
|
* 新增物资借出
|
|
* 新增物资借出
|
|
|
*/
|
|
*/
|
|
|
@ApiOperation("新增物资借出")
|
|
@ApiOperation("新增物资借出")
|
|
|
- @PreAuthorize("@ss.hasPermi('iscs:loan:add')")
|
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('iscs:loan:add')")
|
|
|
@Log(title = "物资借出", businessType = BusinessType.INSERT)
|
|
@Log(title = "物资借出", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/insertIsMaterialsLoan")
|
|
@PostMapping("/insertIsMaterialsLoan")
|
|
|
public CommonResult<Boolean> insertIsMaterialsLoan(@RequestBody @Parameter(name = "dto", description = "新增数据类,放到body") AddLoanDTO dto)
|
|
public CommonResult<Boolean> insertIsMaterialsLoan(@RequestBody @Parameter(name = "dto", description = "新增数据类,放到body") AddLoanDTO dto)
|
|
@@ -95,7 +94,7 @@ public class IsMaterialsLoanController extends BaseController
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation("物资归还")
|
|
@ApiOperation("物资归还")
|
|
|
- @PreAuthorize("@ss.hasPermi('iscs:loan:add')")
|
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('iscs:loan:add')")
|
|
|
@Log(title = "物资归还", businessType = BusinessType.INSERT)
|
|
@Log(title = "物资归还", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/returnIsMaterialsLoan")
|
|
@PostMapping("/returnIsMaterialsLoan")
|
|
|
public CommonResult<Boolean> returnIsMaterialsLoan(@RequestBody @Parameter(name = "dto", description = "新增数据类,放到body") ReturnLoanDTO dto)
|
|
public CommonResult<Boolean> returnIsMaterialsLoan(@RequestBody @Parameter(name = "dto", description = "新增数据类,放到body") ReturnLoanDTO dto)
|
|
@@ -107,7 +106,7 @@ public class IsMaterialsLoanController extends BaseController
|
|
|
* 修改物资借出
|
|
* 修改物资借出
|
|
|
*/
|
|
*/
|
|
|
@ApiOperation("修改物资借出")
|
|
@ApiOperation("修改物资借出")
|
|
|
- @PreAuthorize("@ss.hasPermi('iscs:loan:edit')")
|
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('iscs:loan:edit')")
|
|
|
@Log(title = "物资借出", businessType = BusinessType.UPDATE)
|
|
@Log(title = "物资借出", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/updateIsMaterialsLoan")
|
|
@PostMapping("/updateIsMaterialsLoan")
|
|
|
public CommonResult<Boolean> updateIsMaterialsLoan(@RequestBody @Parameter(name = "isMaterialsLoan", description = "修改数据类,放到body") IsMaterialsLoan isMaterialsLoan)
|
|
public CommonResult<Boolean> updateIsMaterialsLoan(@RequestBody @Parameter(name = "isMaterialsLoan", description = "修改数据类,放到body") IsMaterialsLoan isMaterialsLoan)
|
|
@@ -119,7 +118,7 @@ public class IsMaterialsLoanController extends BaseController
|
|
|
* 删除物资借出
|
|
* 删除物资借出
|
|
|
*/
|
|
*/
|
|
|
@ApiOperation("删除物资借出")
|
|
@ApiOperation("删除物资借出")
|
|
|
- @PreAuthorize("@ss.hasPermi('iscs:loan:remove')")
|
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('iscs:loan:remove')")
|
|
|
@Log(title = "物资借出", businessType = BusinessType.DELETE)
|
|
@Log(title = "物资借出", businessType = BusinessType.DELETE)
|
|
|
@PostMapping("/deleteIsMaterialsLoanByMaterialsLoanIds")
|
|
@PostMapping("/deleteIsMaterialsLoanByMaterialsLoanIds")
|
|
|
public CommonResult<Boolean> deleteIsMaterialsLoanByMaterialsLoanIds(String materialsLoanIds)
|
|
public CommonResult<Boolean> deleteIsMaterialsLoanByMaterialsLoanIds(String materialsLoanIds)
|
|
@@ -132,7 +131,7 @@ public class IsMaterialsLoanController extends BaseController
|
|
|
@Parameter(name = "page", description = "Page"),
|
|
@Parameter(name = "page", description = "Page"),
|
|
|
@Parameter(name = "dto", description = "实体参数")
|
|
@Parameter(name = "dto", description = "实体参数")
|
|
|
})
|
|
})
|
|
|
- @PreAuthorize("@ss.hasPermi('iscs:loan:list')")
|
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('iscs:loan:list')")
|
|
|
@GetMapping("/getReturnReminderPage")
|
|
@GetMapping("/getReturnReminderPage")
|
|
|
public CommonResult<Page<ReminderPageVO>> getReturnReminderPage(Page<IsMaterialsLoan> page, ReminderPageDTO dto)
|
|
public CommonResult<Page<ReminderPageVO>> getReturnReminderPage(Page<IsMaterialsLoan> page, ReminderPageDTO dto)
|
|
|
{
|
|
{
|
|
@@ -145,7 +144,7 @@ public class IsMaterialsLoanController extends BaseController
|
|
|
@Parameter(name = "page", description = "Page"),
|
|
@Parameter(name = "page", description = "Page"),
|
|
|
@Parameter(name = "dto", description = "实体参数")
|
|
@Parameter(name = "dto", description = "实体参数")
|
|
|
})
|
|
})
|
|
|
- @PreAuthorize("@ss.hasPermi('iscs:loan:list')")
|
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('iscs:loan:list')")
|
|
|
@GetMapping("/getExpiredReminderPage")
|
|
@GetMapping("/getExpiredReminderPage")
|
|
|
public CommonResult<Page<ReminderPageVO>> getReminderPage(Page<IsMaterialsLoan> page, ReminderPageDTO dto)
|
|
public CommonResult<Page<ReminderPageVO>> getReminderPage(Page<IsMaterialsLoan> page, ReminderPageDTO dto)
|
|
|
{
|
|
{
|