重构settlement
This commit is contained in:
parent
c8dd5dc2d1
commit
efc967aa6f
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 结算协议申请Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "结算协议申请接口")
|
||||
@RestController
|
||||
@RequestMapping("/slt_agreement_apply")
|
||||
public class SltAgreementApplyController extends BaseController
|
||||
{
|
||||
public class SltAgreementApplyController extends BaseController {
|
||||
@Autowired
|
||||
private ISltAgreementApplyService sltAgreementApplyService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class SltAgreementApplyController extends BaseController
|
|||
@ApiOperation(value = "查询结算协议申请列表")
|
||||
@RequiresPermissions("settlement:apply:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SltAgreementApply sltAgreementApply)
|
||||
{
|
||||
public TableDataInfo list(SltAgreementApply sltAgreementApply) {
|
||||
startPage();
|
||||
List<SltAgreementApply> list = sltAgreementApplyService.selectSltAgreementApplyList(sltAgreementApply);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class SltAgreementApplyController extends BaseController
|
|||
@RequiresPermissions("settlement:apply:export")
|
||||
@SysLog(title = "结算协议申请", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出结算协议申请")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SltAgreementApply sltAgreementApply)
|
||||
{
|
||||
public void export(HttpServletResponse response, SltAgreementApply sltAgreementApply) {
|
||||
List<SltAgreementApply> list = sltAgreementApplyService.selectSltAgreementApplyList(sltAgreementApply);
|
||||
ExcelUtil<SltAgreementApply> util = new ExcelUtil<SltAgreementApply>(SltAgreementApply.class);
|
||||
util.exportExcel(response, list, "结算协议申请数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class SltAgreementApplyController extends BaseController
|
|||
@ApiOperation(value = "获取结算协议申请详细信息")
|
||||
@RequiresPermissions("settlement:apply:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(sltAgreementApplyService.selectSltAgreementApplyById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class SltAgreementApplyController extends BaseController
|
|||
@RequiresPermissions("settlement:apply:add")
|
||||
@SysLog(title = "结算协议申请", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增结算协议申请")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SltAgreementApply sltAgreementApply)
|
||||
{
|
||||
return toAjax(sltAgreementApplyService.insertSltAgreementApply(sltAgreementApply));
|
||||
public AjaxResult add(@RequestBody SltAgreementApply sltAgreementApply) {
|
||||
try {
|
||||
return toAjax(sltAgreementApplyService.insertSltAgreementApply(sltAgreementApply));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class SltAgreementApplyController extends BaseController
|
|||
@RequiresPermissions("settlement:apply:edit")
|
||||
@SysLog(title = "结算协议申请", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改结算协议申请")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SltAgreementApply sltAgreementApply)
|
||||
{
|
||||
return toAjax(sltAgreementApplyService.updateSltAgreementApply(sltAgreementApply));
|
||||
public AjaxResult edit(@RequestBody SltAgreementApply sltAgreementApply) {
|
||||
try {
|
||||
return toAjax(sltAgreementApplyService.updateSltAgreementApply(sltAgreementApply));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class SltAgreementApplyController extends BaseController
|
|||
@RequiresPermissions("settlement:apply:remove")
|
||||
@SysLog(title = "结算协议申请", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除结算协议申请")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(sltAgreementApplyService.deleteSltAgreementApplyByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 结算协议详情Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "结算协议详情接口")
|
||||
@RestController
|
||||
@RequestMapping("/slt_agreement_details")
|
||||
public class SltAgreementDetailsController extends BaseController
|
||||
{
|
||||
public class SltAgreementDetailsController extends BaseController {
|
||||
@Autowired
|
||||
private ISltAgreementDetailsService sltAgreementDetailsService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class SltAgreementDetailsController extends BaseController
|
|||
@ApiOperation(value = "查询结算协议详情列表")
|
||||
@RequiresPermissions("settlement:details:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SltAgreementDetails sltAgreementDetails)
|
||||
{
|
||||
public TableDataInfo list(SltAgreementDetails sltAgreementDetails) {
|
||||
startPage();
|
||||
List<SltAgreementDetails> list = sltAgreementDetailsService.selectSltAgreementDetailsList(sltAgreementDetails);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class SltAgreementDetailsController extends BaseController
|
|||
@RequiresPermissions("settlement:details:export")
|
||||
@SysLog(title = "结算协议详情", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出结算协议详情")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SltAgreementDetails sltAgreementDetails)
|
||||
{
|
||||
public void export(HttpServletResponse response, SltAgreementDetails sltAgreementDetails) {
|
||||
List<SltAgreementDetails> list = sltAgreementDetailsService.selectSltAgreementDetailsList(sltAgreementDetails);
|
||||
ExcelUtil<SltAgreementDetails> util = new ExcelUtil<SltAgreementDetails>(SltAgreementDetails.class);
|
||||
util.exportExcel(response, list, "结算协议详情数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class SltAgreementDetailsController extends BaseController
|
|||
@ApiOperation(value = "获取结算协议详情详细信息")
|
||||
@RequiresPermissions("settlement:details:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(sltAgreementDetailsService.selectSltAgreementDetailsById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class SltAgreementDetailsController extends BaseController
|
|||
@RequiresPermissions("settlement:details:add")
|
||||
@SysLog(title = "结算协议详情", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增结算协议详情")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SltAgreementDetails sltAgreementDetails)
|
||||
{
|
||||
return toAjax(sltAgreementDetailsService.insertSltAgreementDetails(sltAgreementDetails));
|
||||
public AjaxResult add(@RequestBody SltAgreementDetails sltAgreementDetails) {
|
||||
try {
|
||||
return toAjax(sltAgreementDetailsService.insertSltAgreementDetails(sltAgreementDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class SltAgreementDetailsController extends BaseController
|
|||
@RequiresPermissions("settlement:details:edit")
|
||||
@SysLog(title = "结算协议详情", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改结算协议详情")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SltAgreementDetails sltAgreementDetails)
|
||||
{
|
||||
return toAjax(sltAgreementDetailsService.updateSltAgreementDetails(sltAgreementDetails));
|
||||
public AjaxResult edit(@RequestBody SltAgreementDetails sltAgreementDetails) {
|
||||
try {
|
||||
return toAjax(sltAgreementDetailsService.updateSltAgreementDetails(sltAgreementDetails));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class SltAgreementDetailsController extends BaseController
|
|||
@RequiresPermissions("settlement:details:remove")
|
||||
@SysLog(title = "结算协议详情", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除结算协议详情")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(sltAgreementDetailsService.deleteSltAgreementDetailsByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 结算信息Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "结算信息接口")
|
||||
@RestController
|
||||
@RequestMapping("/slt_agreement_info")
|
||||
public class SltAgreementInfoController extends BaseController
|
||||
{
|
||||
public class SltAgreementInfoController extends BaseController {
|
||||
@Autowired
|
||||
private ISltAgreementInfoService sltAgreementInfoService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class SltAgreementInfoController extends BaseController
|
|||
@ApiOperation(value = "查询结算信息列表")
|
||||
@RequiresPermissions("settlement:info:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SltAgreementInfo sltAgreementInfo)
|
||||
{
|
||||
public TableDataInfo list(SltAgreementInfo sltAgreementInfo) {
|
||||
startPage();
|
||||
List<SltAgreementInfo> list = sltAgreementInfoService.selectSltAgreementInfoList(sltAgreementInfo);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class SltAgreementInfoController extends BaseController
|
|||
@RequiresPermissions("settlement:info:export")
|
||||
@SysLog(title = "结算信息", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出结算信息")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SltAgreementInfo sltAgreementInfo)
|
||||
{
|
||||
public void export(HttpServletResponse response, SltAgreementInfo sltAgreementInfo) {
|
||||
List<SltAgreementInfo> list = sltAgreementInfoService.selectSltAgreementInfoList(sltAgreementInfo);
|
||||
ExcelUtil<SltAgreementInfo> util = new ExcelUtil<SltAgreementInfo>(SltAgreementInfo.class);
|
||||
util.exportExcel(response, list, "结算信息数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class SltAgreementInfoController extends BaseController
|
|||
@ApiOperation(value = "获取结算信息详细信息")
|
||||
@RequiresPermissions("settlement:info:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(sltAgreementInfoService.selectSltAgreementInfoById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class SltAgreementInfoController extends BaseController
|
|||
@RequiresPermissions("settlement:info:add")
|
||||
@SysLog(title = "结算信息", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增结算信息")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SltAgreementInfo sltAgreementInfo)
|
||||
{
|
||||
return toAjax(sltAgreementInfoService.insertSltAgreementInfo(sltAgreementInfo));
|
||||
public AjaxResult add(@RequestBody SltAgreementInfo sltAgreementInfo) {
|
||||
try {
|
||||
return toAjax(sltAgreementInfoService.insertSltAgreementInfo(sltAgreementInfo));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class SltAgreementInfoController extends BaseController
|
|||
@RequiresPermissions("settlement:info:edit")
|
||||
@SysLog(title = "结算信息", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改结算信息")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SltAgreementInfo sltAgreementInfo)
|
||||
{
|
||||
return toAjax(sltAgreementInfoService.updateSltAgreementInfo(sltAgreementInfo));
|
||||
public AjaxResult edit(@RequestBody SltAgreementInfo sltAgreementInfo) {
|
||||
try {
|
||||
return toAjax(sltAgreementInfoService.updateSltAgreementInfo(sltAgreementInfo));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class SltAgreementInfoController extends BaseController
|
|||
@RequiresPermissions("settlement:info:remove")
|
||||
@SysLog(title = "结算信息", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除结算信息")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(sltAgreementInfoService.deleteSltAgreementInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 计算关系Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "计算关系接口")
|
||||
@RestController
|
||||
@RequestMapping("/slt_agreement_relation")
|
||||
public class SltAgreementRelationController extends BaseController
|
||||
{
|
||||
public class SltAgreementRelationController extends BaseController {
|
||||
@Autowired
|
||||
private ISltAgreementRelationService sltAgreementRelationService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class SltAgreementRelationController extends BaseController
|
|||
@ApiOperation(value = "查询计算关系列表")
|
||||
@RequiresPermissions("settlement:relation:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SltAgreementRelation sltAgreementRelation)
|
||||
{
|
||||
public TableDataInfo list(SltAgreementRelation sltAgreementRelation) {
|
||||
startPage();
|
||||
List<SltAgreementRelation> list = sltAgreementRelationService.selectSltAgreementRelationList(sltAgreementRelation);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class SltAgreementRelationController extends BaseController
|
|||
@RequiresPermissions("settlement:relation:export")
|
||||
@SysLog(title = "计算关系", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出计算关系")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SltAgreementRelation sltAgreementRelation)
|
||||
{
|
||||
public void export(HttpServletResponse response, SltAgreementRelation sltAgreementRelation) {
|
||||
List<SltAgreementRelation> list = sltAgreementRelationService.selectSltAgreementRelationList(sltAgreementRelation);
|
||||
ExcelUtil<SltAgreementRelation> util = new ExcelUtil<SltAgreementRelation>(SltAgreementRelation.class);
|
||||
util.exportExcel(response, list, "计算关系数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class SltAgreementRelationController extends BaseController
|
|||
@ApiOperation(value = "获取计算关系详细信息")
|
||||
@RequiresPermissions("settlement:relation:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(sltAgreementRelationService.selectSltAgreementRelationById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class SltAgreementRelationController extends BaseController
|
|||
@RequiresPermissions("settlement:relation:add")
|
||||
@SysLog(title = "计算关系", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增计算关系")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SltAgreementRelation sltAgreementRelation)
|
||||
{
|
||||
return toAjax(sltAgreementRelationService.insertSltAgreementRelation(sltAgreementRelation));
|
||||
public AjaxResult add(@RequestBody SltAgreementRelation sltAgreementRelation) {
|
||||
try {
|
||||
return toAjax(sltAgreementRelationService.insertSltAgreementRelation(sltAgreementRelation));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class SltAgreementRelationController extends BaseController
|
|||
@RequiresPermissions("settlement:relation:edit")
|
||||
@SysLog(title = "计算关系", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改计算关系")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SltAgreementRelation sltAgreementRelation)
|
||||
{
|
||||
return toAjax(sltAgreementRelationService.updateSltAgreementRelation(sltAgreementRelation));
|
||||
public AjaxResult edit(@RequestBody SltAgreementRelation sltAgreementRelation) {
|
||||
try {
|
||||
return toAjax(sltAgreementRelationService.updateSltAgreementRelation(sltAgreementRelation));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class SltAgreementRelationController extends BaseController
|
|||
@RequiresPermissions("settlement:relation:remove")
|
||||
@SysLog(title = "计算关系", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除计算关系")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(sltAgreementRelationService.deleteSltAgreementRelationByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 月结算任务索引Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "月结算任务索引接口")
|
||||
@RestController
|
||||
@RequestMapping("/slt_project_month")
|
||||
public class SltProjectMonthController extends BaseController
|
||||
{
|
||||
public class SltProjectMonthController extends BaseController {
|
||||
@Autowired
|
||||
private ISltProjectMonthService sltProjectMonthService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class SltProjectMonthController extends BaseController
|
|||
@ApiOperation(value = "查询月结算任务索引列表")
|
||||
@RequiresPermissions("settlement:month:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SltProjectMonth sltProjectMonth)
|
||||
{
|
||||
public TableDataInfo list(SltProjectMonth sltProjectMonth) {
|
||||
startPage();
|
||||
List<SltProjectMonth> list = sltProjectMonthService.selectSltProjectMonthList(sltProjectMonth);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class SltProjectMonthController extends BaseController
|
|||
@RequiresPermissions("settlement:month:export")
|
||||
@SysLog(title = "月结算任务索引", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出月结算任务索引")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SltProjectMonth sltProjectMonth)
|
||||
{
|
||||
public void export(HttpServletResponse response, SltProjectMonth sltProjectMonth) {
|
||||
List<SltProjectMonth> list = sltProjectMonthService.selectSltProjectMonthList(sltProjectMonth);
|
||||
ExcelUtil<SltProjectMonth> util = new ExcelUtil<SltProjectMonth>(SltProjectMonth.class);
|
||||
util.exportExcel(response, list, "月结算任务索引数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class SltProjectMonthController extends BaseController
|
|||
@ApiOperation(value = "获取月结算任务索引详细信息")
|
||||
@RequiresPermissions("settlement:month:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(sltProjectMonthService.selectSltProjectMonthById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class SltProjectMonthController extends BaseController
|
|||
@RequiresPermissions("settlement:month:add")
|
||||
@SysLog(title = "月结算任务索引", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增月结算任务索引")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SltProjectMonth sltProjectMonth)
|
||||
{
|
||||
return toAjax(sltProjectMonthService.insertSltProjectMonth(sltProjectMonth));
|
||||
public AjaxResult add(@RequestBody SltProjectMonth sltProjectMonth) {
|
||||
try {
|
||||
return toAjax(sltProjectMonthService.insertSltProjectMonth(sltProjectMonth));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class SltProjectMonthController extends BaseController
|
|||
@RequiresPermissions("settlement:month:edit")
|
||||
@SysLog(title = "月结算任务索引", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改月结算任务索引")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SltProjectMonth sltProjectMonth)
|
||||
{
|
||||
return toAjax(sltProjectMonthService.updateSltProjectMonth(sltProjectMonth));
|
||||
public AjaxResult edit(@RequestBody SltProjectMonth sltProjectMonth) {
|
||||
try {
|
||||
return toAjax(sltProjectMonthService.updateSltProjectMonth(sltProjectMonth));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class SltProjectMonthController extends BaseController
|
|||
@RequiresPermissions("settlement:month:remove")
|
||||
@SysLog(title = "月结算任务索引", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除月结算任务索引")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(sltProjectMonthService.deleteSltProjectMonthByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 月结算费用Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "月结算费用接口")
|
||||
@RestController
|
||||
@RequestMapping("/slt_project_month_costs")
|
||||
public class SltProjectMonthCostsController extends BaseController
|
||||
{
|
||||
public class SltProjectMonthCostsController extends BaseController {
|
||||
@Autowired
|
||||
private ISltProjectMonthCostsService sltProjectMonthCostsService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class SltProjectMonthCostsController extends BaseController
|
|||
@ApiOperation(value = "查询月结算费用列表")
|
||||
@RequiresPermissions("settlement:costs:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SltProjectMonthCosts sltProjectMonthCosts)
|
||||
{
|
||||
public TableDataInfo list(SltProjectMonthCosts sltProjectMonthCosts) {
|
||||
startPage();
|
||||
List<SltProjectMonthCosts> list = sltProjectMonthCostsService.selectSltProjectMonthCostsList(sltProjectMonthCosts);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class SltProjectMonthCostsController extends BaseController
|
|||
@RequiresPermissions("settlement:costs:export")
|
||||
@SysLog(title = "月结算费用", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出月结算费用")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SltProjectMonthCosts sltProjectMonthCosts)
|
||||
{
|
||||
public void export(HttpServletResponse response, SltProjectMonthCosts sltProjectMonthCosts) {
|
||||
List<SltProjectMonthCosts> list = sltProjectMonthCostsService.selectSltProjectMonthCostsList(sltProjectMonthCosts);
|
||||
ExcelUtil<SltProjectMonthCosts> util = new ExcelUtil<SltProjectMonthCosts>(SltProjectMonthCosts.class);
|
||||
util.exportExcel(response, list, "月结算费用数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class SltProjectMonthCostsController extends BaseController
|
|||
@ApiOperation(value = "获取月结算费用详细信息")
|
||||
@RequiresPermissions("settlement:costs:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(sltProjectMonthCostsService.selectSltProjectMonthCostsById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class SltProjectMonthCostsController extends BaseController
|
|||
@RequiresPermissions("settlement:costs:add")
|
||||
@SysLog(title = "月结算费用", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增月结算费用")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SltProjectMonthCosts sltProjectMonthCosts)
|
||||
{
|
||||
return toAjax(sltProjectMonthCostsService.insertSltProjectMonthCosts(sltProjectMonthCosts));
|
||||
public AjaxResult add(@RequestBody SltProjectMonthCosts sltProjectMonthCosts) {
|
||||
try {
|
||||
return toAjax(sltProjectMonthCostsService.insertSltProjectMonthCosts(sltProjectMonthCosts));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class SltProjectMonthCostsController extends BaseController
|
|||
@RequiresPermissions("settlement:costs:edit")
|
||||
@SysLog(title = "月结算费用", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改月结算费用")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SltProjectMonthCosts sltProjectMonthCosts)
|
||||
{
|
||||
return toAjax(sltProjectMonthCostsService.updateSltProjectMonthCosts(sltProjectMonthCosts));
|
||||
public AjaxResult edit(@RequestBody SltProjectMonthCosts sltProjectMonthCosts) {
|
||||
try {
|
||||
return toAjax(sltProjectMonthCostsService.updateSltProjectMonthCosts(sltProjectMonthCosts));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class SltProjectMonthCostsController extends BaseController
|
|||
@RequiresPermissions("settlement:costs:remove")
|
||||
@SysLog(title = "月结算费用", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除月结算费用")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(sltProjectMonthCostsService.deleteSltProjectMonthCostsByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ import com.bonus.common.core.web.page.TableDataInfo;
|
|||
* 月结算费用详情Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Api(tags = "月结算费用详情接口")
|
||||
@RestController
|
||||
@RequestMapping("/slt_project_month_detail")
|
||||
public class SltProjectMonthDetailController extends BaseController
|
||||
{
|
||||
public class SltProjectMonthDetailController extends BaseController {
|
||||
@Autowired
|
||||
private ISltProjectMonthDetailService sltProjectMonthDetailService;
|
||||
|
||||
|
|
@ -44,8 +43,7 @@ public class SltProjectMonthDetailController extends BaseController
|
|||
@ApiOperation(value = "查询月结算费用详情列表")
|
||||
@RequiresPermissions("settlement:detail:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SltProjectMonthDetail sltProjectMonthDetail)
|
||||
{
|
||||
public TableDataInfo list(SltProjectMonthDetail sltProjectMonthDetail) {
|
||||
startPage();
|
||||
List<SltProjectMonthDetail> list = sltProjectMonthDetailService.selectSltProjectMonthDetailList(sltProjectMonthDetail);
|
||||
return getDataTable(list);
|
||||
|
|
@ -59,8 +57,7 @@ public class SltProjectMonthDetailController extends BaseController
|
|||
@RequiresPermissions("settlement:detail:export")
|
||||
@SysLog(title = "月结算费用详情", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出月结算费用详情")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SltProjectMonthDetail sltProjectMonthDetail)
|
||||
{
|
||||
public void export(HttpServletResponse response, SltProjectMonthDetail sltProjectMonthDetail) {
|
||||
List<SltProjectMonthDetail> list = sltProjectMonthDetailService.selectSltProjectMonthDetailList(sltProjectMonthDetail);
|
||||
ExcelUtil<SltProjectMonthDetail> util = new ExcelUtil<SltProjectMonthDetail>(SltProjectMonthDetail.class);
|
||||
util.exportExcel(response, list, "月结算费用详情数据");
|
||||
|
|
@ -72,8 +69,7 @@ public class SltProjectMonthDetailController extends BaseController
|
|||
@ApiOperation(value = "获取月结算费用详情详细信息")
|
||||
@RequiresPermissions("settlement:detail:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(sltProjectMonthDetailService.selectSltProjectMonthDetailById(id));
|
||||
}
|
||||
|
||||
|
|
@ -85,9 +81,12 @@ public class SltProjectMonthDetailController extends BaseController
|
|||
@RequiresPermissions("settlement:detail:add")
|
||||
@SysLog(title = "月结算费用详情", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增月结算费用详情")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SltProjectMonthDetail sltProjectMonthDetail)
|
||||
{
|
||||
return toAjax(sltProjectMonthDetailService.insertSltProjectMonthDetail(sltProjectMonthDetail));
|
||||
public AjaxResult add(@RequestBody SltProjectMonthDetail sltProjectMonthDetail) {
|
||||
try {
|
||||
return toAjax(sltProjectMonthDetailService.insertSltProjectMonthDetail(sltProjectMonthDetail));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -98,9 +97,12 @@ public class SltProjectMonthDetailController extends BaseController
|
|||
@RequiresPermissions("settlement:detail:edit")
|
||||
@SysLog(title = "月结算费用详情", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改月结算费用详情")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SltProjectMonthDetail sltProjectMonthDetail)
|
||||
{
|
||||
return toAjax(sltProjectMonthDetailService.updateSltProjectMonthDetail(sltProjectMonthDetail));
|
||||
public AjaxResult edit(@RequestBody SltProjectMonthDetail sltProjectMonthDetail) {
|
||||
try {
|
||||
return toAjax(sltProjectMonthDetailService.updateSltProjectMonthDetail(sltProjectMonthDetail));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +113,7 @@ public class SltProjectMonthDetailController extends BaseController
|
|||
@RequiresPermissions("settlement:detail:remove")
|
||||
@SysLog(title = "月结算费用详情", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除月结算费用详情")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(sltProjectMonthDetailService.deleteSltProjectMonthDetailByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,14 +13,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 结算协议申请对象 slt_agreement_apply
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class SltAgreementApply extends BaseEntity
|
||||
{
|
||||
public class SltAgreementApply extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
|
|
|
|||
|
|
@ -13,14 +13,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 结算协议详情对象 slt_agreement_details
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class SltAgreementDetails extends BaseEntity
|
||||
{
|
||||
public class SltAgreementDetails extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
|
|
|
|||
|
|
@ -13,14 +13,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 结算信息对象 slt_agreement_info
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class SltAgreementInfo extends BaseEntity
|
||||
{
|
||||
public class SltAgreementInfo extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
|
|
|
|||
|
|
@ -11,14 +11,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 计算关系对象 slt_agreement_relation
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class SltAgreementRelation extends BaseEntity
|
||||
{
|
||||
public class SltAgreementRelation extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
|
|
|
|||
|
|
@ -10,14 +10,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 月结算任务索引对象 slt_project_month
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class SltProjectMonth extends BaseEntity
|
||||
{
|
||||
public class SltProjectMonth extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键id */
|
||||
|
|
|
|||
|
|
@ -11,14 +11,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 月结算费用对象 slt_project_month_costs
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class SltProjectMonthCosts extends BaseEntity
|
||||
{
|
||||
public class SltProjectMonthCosts extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键id */
|
||||
|
|
|
|||
|
|
@ -13,14 +13,13 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* 月结算费用详情对象 slt_project_month_detail
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class SltProjectMonthDetail extends BaseEntity
|
||||
{
|
||||
public class SltProjectMonthDetail extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键id */
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltAgreementApply;
|
|||
* 结算协议申请Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface SltAgreementApplyMapper
|
||||
{
|
||||
public interface SltAgreementApplyMapper {
|
||||
/**
|
||||
* 查询结算协议申请
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltAgreementDetails;
|
|||
* 结算协议详情Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface SltAgreementDetailsMapper
|
||||
{
|
||||
public interface SltAgreementDetailsMapper {
|
||||
/**
|
||||
* 查询结算协议详情
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltAgreementInfo;
|
|||
* 结算信息Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface SltAgreementInfoMapper
|
||||
{
|
||||
public interface SltAgreementInfoMapper {
|
||||
/**
|
||||
* 查询结算信息
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltAgreementRelation;
|
|||
* 计算关系Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface SltAgreementRelationMapper
|
||||
{
|
||||
public interface SltAgreementRelationMapper {
|
||||
/**
|
||||
* 查询计算关系
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltProjectMonthCosts;
|
|||
* 月结算费用Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface SltProjectMonthCostsMapper
|
||||
{
|
||||
public interface SltProjectMonthCostsMapper {
|
||||
/**
|
||||
* 查询月结算费用
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltProjectMonthDetail;
|
|||
* 月结算费用详情Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface SltProjectMonthDetailMapper
|
||||
{
|
||||
public interface SltProjectMonthDetailMapper {
|
||||
/**
|
||||
* 查询月结算费用详情
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltProjectMonth;
|
|||
* 月结算任务索引Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface SltProjectMonthMapper
|
||||
{
|
||||
public interface SltProjectMonthMapper {
|
||||
/**
|
||||
* 查询月结算任务索引
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltAgreementApply;
|
|||
* 结算协议申请Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface ISltAgreementApplyService
|
||||
{
|
||||
public interface ISltAgreementApplyService {
|
||||
/**
|
||||
* 查询结算协议申请
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltAgreementDetails;
|
|||
* 结算协议详情Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface ISltAgreementDetailsService
|
||||
{
|
||||
public interface ISltAgreementDetailsService {
|
||||
/**
|
||||
* 查询结算协议详情
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltAgreementInfo;
|
|||
* 结算信息Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface ISltAgreementInfoService
|
||||
{
|
||||
public interface ISltAgreementInfoService {
|
||||
/**
|
||||
* 查询结算信息
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltAgreementRelation;
|
|||
* 计算关系Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface ISltAgreementRelationService
|
||||
{
|
||||
public interface ISltAgreementRelationService {
|
||||
/**
|
||||
* 查询计算关系
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltProjectMonthCosts;
|
|||
* 月结算费用Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface ISltProjectMonthCostsService
|
||||
{
|
||||
public interface ISltProjectMonthCostsService {
|
||||
/**
|
||||
* 查询月结算费用
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltProjectMonthDetail;
|
|||
* 月结算费用详情Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface ISltProjectMonthDetailService
|
||||
{
|
||||
public interface ISltProjectMonthDetailService {
|
||||
/**
|
||||
* 查询月结算费用详情
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@ import com.bonus.material.settlement.domain.SltProjectMonth;
|
|||
* 月结算任务索引Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
public interface ISltProjectMonthService
|
||||
{
|
||||
public interface ISltProjectMonthService {
|
||||
/**
|
||||
* 查询月结算任务索引
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.settlement.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.settlement.service.ISltAgreementApplyService;
|
|||
* 结算协议申请Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class SltAgreementApplyServiceImpl implements ISltAgreementApplyService
|
||||
{
|
||||
public class SltAgreementApplyServiceImpl implements ISltAgreementApplyService {
|
||||
@Autowired
|
||||
private SltAgreementApplyMapper sltAgreementApplyMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class SltAgreementApplyServiceImpl implements ISltAgreementApplyService
|
|||
* @return 结算协议申请
|
||||
*/
|
||||
@Override
|
||||
public SltAgreementApply selectSltAgreementApplyById(Long id)
|
||||
{
|
||||
public SltAgreementApply selectSltAgreementApplyById(Long id) {
|
||||
return sltAgreementApplyMapper.selectSltAgreementApplyById(id);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class SltAgreementApplyServiceImpl implements ISltAgreementApplyService
|
|||
* @return 结算协议申请
|
||||
*/
|
||||
@Override
|
||||
public List<SltAgreementApply> selectSltAgreementApplyList(SltAgreementApply sltAgreementApply)
|
||||
{
|
||||
public List<SltAgreementApply> selectSltAgreementApplyList(SltAgreementApply sltAgreementApply) {
|
||||
return sltAgreementApplyMapper.selectSltAgreementApplyList(sltAgreementApply);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class SltAgreementApplyServiceImpl implements ISltAgreementApplyService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSltAgreementApply(SltAgreementApply sltAgreementApply)
|
||||
{
|
||||
public int insertSltAgreementApply(SltAgreementApply sltAgreementApply) {
|
||||
sltAgreementApply.setCreateTime(DateUtils.getNowDate());
|
||||
return sltAgreementApplyMapper.insertSltAgreementApply(sltAgreementApply);
|
||||
try {
|
||||
return sltAgreementApplyMapper.insertSltAgreementApply(sltAgreementApply);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class SltAgreementApplyServiceImpl implements ISltAgreementApplyService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSltAgreementApply(SltAgreementApply sltAgreementApply)
|
||||
{
|
||||
public int updateSltAgreementApply(SltAgreementApply sltAgreementApply) {
|
||||
sltAgreementApply.setUpdateTime(DateUtils.getNowDate());
|
||||
return sltAgreementApplyMapper.updateSltAgreementApply(sltAgreementApply);
|
||||
try {
|
||||
return sltAgreementApplyMapper.updateSltAgreementApply(sltAgreementApply);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class SltAgreementApplyServiceImpl implements ISltAgreementApplyService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltAgreementApplyByIds(Long[] ids)
|
||||
{
|
||||
public int deleteSltAgreementApplyByIds(Long[] ids) {
|
||||
return sltAgreementApplyMapper.deleteSltAgreementApplyByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class SltAgreementApplyServiceImpl implements ISltAgreementApplyService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltAgreementApplyById(Long id)
|
||||
{
|
||||
public int deleteSltAgreementApplyById(Long id) {
|
||||
return sltAgreementApplyMapper.deleteSltAgreementApplyById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.settlement.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.material.settlement.mapper.SltAgreementDetailsMapper;
|
||||
|
|
@ -11,11 +12,10 @@ import com.bonus.material.settlement.service.ISltAgreementDetailsService;
|
|||
* 结算协议详情Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class SltAgreementDetailsServiceImpl implements ISltAgreementDetailsService
|
||||
{
|
||||
public class SltAgreementDetailsServiceImpl implements ISltAgreementDetailsService {
|
||||
@Autowired
|
||||
private SltAgreementDetailsMapper sltAgreementDetailsMapper;
|
||||
|
||||
|
|
@ -26,8 +26,7 @@ public class SltAgreementDetailsServiceImpl implements ISltAgreementDetailsServi
|
|||
* @return 结算协议详情
|
||||
*/
|
||||
@Override
|
||||
public SltAgreementDetails selectSltAgreementDetailsById(Long id)
|
||||
{
|
||||
public SltAgreementDetails selectSltAgreementDetailsById(Long id) {
|
||||
return sltAgreementDetailsMapper.selectSltAgreementDetailsById(id);
|
||||
}
|
||||
|
||||
|
|
@ -38,8 +37,7 @@ public class SltAgreementDetailsServiceImpl implements ISltAgreementDetailsServi
|
|||
* @return 结算协议详情
|
||||
*/
|
||||
@Override
|
||||
public List<SltAgreementDetails> selectSltAgreementDetailsList(SltAgreementDetails sltAgreementDetails)
|
||||
{
|
||||
public List<SltAgreementDetails> selectSltAgreementDetailsList(SltAgreementDetails sltAgreementDetails) {
|
||||
return sltAgreementDetailsMapper.selectSltAgreementDetailsList(sltAgreementDetails);
|
||||
}
|
||||
|
||||
|
|
@ -50,9 +48,12 @@ public class SltAgreementDetailsServiceImpl implements ISltAgreementDetailsServi
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSltAgreementDetails(SltAgreementDetails sltAgreementDetails)
|
||||
{
|
||||
return sltAgreementDetailsMapper.insertSltAgreementDetails(sltAgreementDetails);
|
||||
public int insertSltAgreementDetails(SltAgreementDetails sltAgreementDetails) {
|
||||
try {
|
||||
return sltAgreementDetailsMapper.insertSltAgreementDetails(sltAgreementDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -62,9 +63,12 @@ public class SltAgreementDetailsServiceImpl implements ISltAgreementDetailsServi
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSltAgreementDetails(SltAgreementDetails sltAgreementDetails)
|
||||
{
|
||||
return sltAgreementDetailsMapper.updateSltAgreementDetails(sltAgreementDetails);
|
||||
public int updateSltAgreementDetails(SltAgreementDetails sltAgreementDetails) {
|
||||
try {
|
||||
return sltAgreementDetailsMapper.updateSltAgreementDetails(sltAgreementDetails);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -74,8 +78,7 @@ public class SltAgreementDetailsServiceImpl implements ISltAgreementDetailsServi
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltAgreementDetailsByIds(Long[] ids)
|
||||
{
|
||||
public int deleteSltAgreementDetailsByIds(Long[] ids) {
|
||||
return sltAgreementDetailsMapper.deleteSltAgreementDetailsByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -86,8 +89,7 @@ public class SltAgreementDetailsServiceImpl implements ISltAgreementDetailsServi
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltAgreementDetailsById(Long id)
|
||||
{
|
||||
public int deleteSltAgreementDetailsById(Long id) {
|
||||
return sltAgreementDetailsMapper.deleteSltAgreementDetailsById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.settlement.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.settlement.service.ISltAgreementInfoService;
|
|||
* 结算信息Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService
|
||||
{
|
||||
public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
|
||||
@Autowired
|
||||
private SltAgreementInfoMapper sltAgreementInfoMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService
|
|||
* @return 结算信息
|
||||
*/
|
||||
@Override
|
||||
public SltAgreementInfo selectSltAgreementInfoById(Long id)
|
||||
{
|
||||
public SltAgreementInfo selectSltAgreementInfoById(Long id) {
|
||||
return sltAgreementInfoMapper.selectSltAgreementInfoById(id);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService
|
|||
* @return 结算信息
|
||||
*/
|
||||
@Override
|
||||
public List<SltAgreementInfo> selectSltAgreementInfoList(SltAgreementInfo sltAgreementInfo)
|
||||
{
|
||||
public List<SltAgreementInfo> selectSltAgreementInfoList(SltAgreementInfo sltAgreementInfo) {
|
||||
return sltAgreementInfoMapper.selectSltAgreementInfoList(sltAgreementInfo);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSltAgreementInfo(SltAgreementInfo sltAgreementInfo)
|
||||
{
|
||||
public int insertSltAgreementInfo(SltAgreementInfo sltAgreementInfo) {
|
||||
sltAgreementInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return sltAgreementInfoMapper.insertSltAgreementInfo(sltAgreementInfo);
|
||||
try {
|
||||
return sltAgreementInfoMapper.insertSltAgreementInfo(sltAgreementInfo);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSltAgreementInfo(SltAgreementInfo sltAgreementInfo)
|
||||
{
|
||||
public int updateSltAgreementInfo(SltAgreementInfo sltAgreementInfo) {
|
||||
sltAgreementInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return sltAgreementInfoMapper.updateSltAgreementInfo(sltAgreementInfo);
|
||||
try {
|
||||
return sltAgreementInfoMapper.updateSltAgreementInfo(sltAgreementInfo);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltAgreementInfoByIds(Long[] ids)
|
||||
{
|
||||
public int deleteSltAgreementInfoByIds(Long[] ids) {
|
||||
return sltAgreementInfoMapper.deleteSltAgreementInfoByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltAgreementInfoById(Long id)
|
||||
{
|
||||
public int deleteSltAgreementInfoById(Long id) {
|
||||
return sltAgreementInfoMapper.deleteSltAgreementInfoById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.settlement.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.settlement.service.ISltAgreementRelationService;
|
|||
* 计算关系Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class SltAgreementRelationServiceImpl implements ISltAgreementRelationService
|
||||
{
|
||||
public class SltAgreementRelationServiceImpl implements ISltAgreementRelationService {
|
||||
@Autowired
|
||||
private SltAgreementRelationMapper sltAgreementRelationMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class SltAgreementRelationServiceImpl implements ISltAgreementRelationSer
|
|||
* @return 计算关系
|
||||
*/
|
||||
@Override
|
||||
public SltAgreementRelation selectSltAgreementRelationById(Long id)
|
||||
{
|
||||
public SltAgreementRelation selectSltAgreementRelationById(Long id) {
|
||||
return sltAgreementRelationMapper.selectSltAgreementRelationById(id);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class SltAgreementRelationServiceImpl implements ISltAgreementRelationSer
|
|||
* @return 计算关系
|
||||
*/
|
||||
@Override
|
||||
public List<SltAgreementRelation> selectSltAgreementRelationList(SltAgreementRelation sltAgreementRelation)
|
||||
{
|
||||
public List<SltAgreementRelation> selectSltAgreementRelationList(SltAgreementRelation sltAgreementRelation) {
|
||||
return sltAgreementRelationMapper.selectSltAgreementRelationList(sltAgreementRelation);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class SltAgreementRelationServiceImpl implements ISltAgreementRelationSer
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSltAgreementRelation(SltAgreementRelation sltAgreementRelation)
|
||||
{
|
||||
public int insertSltAgreementRelation(SltAgreementRelation sltAgreementRelation) {
|
||||
sltAgreementRelation.setCreateTime(DateUtils.getNowDate());
|
||||
return sltAgreementRelationMapper.insertSltAgreementRelation(sltAgreementRelation);
|
||||
try {
|
||||
return sltAgreementRelationMapper.insertSltAgreementRelation(sltAgreementRelation);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class SltAgreementRelationServiceImpl implements ISltAgreementRelationSer
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSltAgreementRelation(SltAgreementRelation sltAgreementRelation)
|
||||
{
|
||||
public int updateSltAgreementRelation(SltAgreementRelation sltAgreementRelation) {
|
||||
sltAgreementRelation.setUpdateTime(DateUtils.getNowDate());
|
||||
return sltAgreementRelationMapper.updateSltAgreementRelation(sltAgreementRelation);
|
||||
try {
|
||||
return sltAgreementRelationMapper.updateSltAgreementRelation(sltAgreementRelation);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class SltAgreementRelationServiceImpl implements ISltAgreementRelationSer
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltAgreementRelationByIds(Long[] ids)
|
||||
{
|
||||
public int deleteSltAgreementRelationByIds(Long[] ids) {
|
||||
return sltAgreementRelationMapper.deleteSltAgreementRelationByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class SltAgreementRelationServiceImpl implements ISltAgreementRelationSer
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltAgreementRelationById(Long id)
|
||||
{
|
||||
public int deleteSltAgreementRelationById(Long id) {
|
||||
return sltAgreementRelationMapper.deleteSltAgreementRelationById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.settlement.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.settlement.service.ISltProjectMonthCostsService;
|
|||
* 月结算费用Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class SltProjectMonthCostsServiceImpl implements ISltProjectMonthCostsService
|
||||
{
|
||||
public class SltProjectMonthCostsServiceImpl implements ISltProjectMonthCostsService {
|
||||
@Autowired
|
||||
private SltProjectMonthCostsMapper sltProjectMonthCostsMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class SltProjectMonthCostsServiceImpl implements ISltProjectMonthCostsSer
|
|||
* @return 月结算费用
|
||||
*/
|
||||
@Override
|
||||
public SltProjectMonthCosts selectSltProjectMonthCostsById(Long id)
|
||||
{
|
||||
public SltProjectMonthCosts selectSltProjectMonthCostsById(Long id) {
|
||||
return sltProjectMonthCostsMapper.selectSltProjectMonthCostsById(id);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class SltProjectMonthCostsServiceImpl implements ISltProjectMonthCostsSer
|
|||
* @return 月结算费用
|
||||
*/
|
||||
@Override
|
||||
public List<SltProjectMonthCosts> selectSltProjectMonthCostsList(SltProjectMonthCosts sltProjectMonthCosts)
|
||||
{
|
||||
public List<SltProjectMonthCosts> selectSltProjectMonthCostsList(SltProjectMonthCosts sltProjectMonthCosts) {
|
||||
return sltProjectMonthCostsMapper.selectSltProjectMonthCostsList(sltProjectMonthCosts);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class SltProjectMonthCostsServiceImpl implements ISltProjectMonthCostsSer
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSltProjectMonthCosts(SltProjectMonthCosts sltProjectMonthCosts)
|
||||
{
|
||||
public int insertSltProjectMonthCosts(SltProjectMonthCosts sltProjectMonthCosts) {
|
||||
sltProjectMonthCosts.setCreateTime(DateUtils.getNowDate());
|
||||
return sltProjectMonthCostsMapper.insertSltProjectMonthCosts(sltProjectMonthCosts);
|
||||
try {
|
||||
return sltProjectMonthCostsMapper.insertSltProjectMonthCosts(sltProjectMonthCosts);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class SltProjectMonthCostsServiceImpl implements ISltProjectMonthCostsSer
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSltProjectMonthCosts(SltProjectMonthCosts sltProjectMonthCosts)
|
||||
{
|
||||
public int updateSltProjectMonthCosts(SltProjectMonthCosts sltProjectMonthCosts) {
|
||||
sltProjectMonthCosts.setUpdateTime(DateUtils.getNowDate());
|
||||
return sltProjectMonthCostsMapper.updateSltProjectMonthCosts(sltProjectMonthCosts);
|
||||
try {
|
||||
return sltProjectMonthCostsMapper.updateSltProjectMonthCosts(sltProjectMonthCosts);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class SltProjectMonthCostsServiceImpl implements ISltProjectMonthCostsSer
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltProjectMonthCostsByIds(Long[] ids)
|
||||
{
|
||||
public int deleteSltProjectMonthCostsByIds(Long[] ids) {
|
||||
return sltProjectMonthCostsMapper.deleteSltProjectMonthCostsByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class SltProjectMonthCostsServiceImpl implements ISltProjectMonthCostsSer
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltProjectMonthCostsById(Long id)
|
||||
{
|
||||
public int deleteSltProjectMonthCostsById(Long id) {
|
||||
return sltProjectMonthCostsMapper.deleteSltProjectMonthCostsById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.settlement.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.settlement.service.ISltProjectMonthDetailService;
|
|||
* 月结算费用详情Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class SltProjectMonthDetailServiceImpl implements ISltProjectMonthDetailService
|
||||
{
|
||||
public class SltProjectMonthDetailServiceImpl implements ISltProjectMonthDetailService {
|
||||
@Autowired
|
||||
private SltProjectMonthDetailMapper sltProjectMonthDetailMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class SltProjectMonthDetailServiceImpl implements ISltProjectMonthDetailS
|
|||
* @return 月结算费用详情
|
||||
*/
|
||||
@Override
|
||||
public SltProjectMonthDetail selectSltProjectMonthDetailById(Long id)
|
||||
{
|
||||
public SltProjectMonthDetail selectSltProjectMonthDetailById(Long id) {
|
||||
return sltProjectMonthDetailMapper.selectSltProjectMonthDetailById(id);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class SltProjectMonthDetailServiceImpl implements ISltProjectMonthDetailS
|
|||
* @return 月结算费用详情
|
||||
*/
|
||||
@Override
|
||||
public List<SltProjectMonthDetail> selectSltProjectMonthDetailList(SltProjectMonthDetail sltProjectMonthDetail)
|
||||
{
|
||||
public List<SltProjectMonthDetail> selectSltProjectMonthDetailList(SltProjectMonthDetail sltProjectMonthDetail) {
|
||||
return sltProjectMonthDetailMapper.selectSltProjectMonthDetailList(sltProjectMonthDetail);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class SltProjectMonthDetailServiceImpl implements ISltProjectMonthDetailS
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSltProjectMonthDetail(SltProjectMonthDetail sltProjectMonthDetail)
|
||||
{
|
||||
public int insertSltProjectMonthDetail(SltProjectMonthDetail sltProjectMonthDetail) {
|
||||
sltProjectMonthDetail.setCreateTime(DateUtils.getNowDate());
|
||||
return sltProjectMonthDetailMapper.insertSltProjectMonthDetail(sltProjectMonthDetail);
|
||||
try {
|
||||
return sltProjectMonthDetailMapper.insertSltProjectMonthDetail(sltProjectMonthDetail);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class SltProjectMonthDetailServiceImpl implements ISltProjectMonthDetailS
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSltProjectMonthDetail(SltProjectMonthDetail sltProjectMonthDetail)
|
||||
{
|
||||
public int updateSltProjectMonthDetail(SltProjectMonthDetail sltProjectMonthDetail) {
|
||||
sltProjectMonthDetail.setUpdateTime(DateUtils.getNowDate());
|
||||
return sltProjectMonthDetailMapper.updateSltProjectMonthDetail(sltProjectMonthDetail);
|
||||
try {
|
||||
return sltProjectMonthDetailMapper.updateSltProjectMonthDetail(sltProjectMonthDetail);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class SltProjectMonthDetailServiceImpl implements ISltProjectMonthDetailS
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltProjectMonthDetailByIds(Long[] ids)
|
||||
{
|
||||
public int deleteSltProjectMonthDetailByIds(Long[] ids) {
|
||||
return sltProjectMonthDetailMapper.deleteSltProjectMonthDetailByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class SltProjectMonthDetailServiceImpl implements ISltProjectMonthDetailS
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltProjectMonthDetailById(Long id)
|
||||
{
|
||||
public int deleteSltProjectMonthDetailById(Long id) {
|
||||
return sltProjectMonthDetailMapper.deleteSltProjectMonthDetailById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.material.settlement.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -12,11 +13,10 @@ import com.bonus.material.settlement.service.ISltProjectMonthService;
|
|||
* 月结算任务索引Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-27
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
@Service
|
||||
public class SltProjectMonthServiceImpl implements ISltProjectMonthService
|
||||
{
|
||||
public class SltProjectMonthServiceImpl implements ISltProjectMonthService {
|
||||
@Autowired
|
||||
private SltProjectMonthMapper sltProjectMonthMapper;
|
||||
|
||||
|
|
@ -27,8 +27,7 @@ public class SltProjectMonthServiceImpl implements ISltProjectMonthService
|
|||
* @return 月结算任务索引
|
||||
*/
|
||||
@Override
|
||||
public SltProjectMonth selectSltProjectMonthById(Long id)
|
||||
{
|
||||
public SltProjectMonth selectSltProjectMonthById(Long id) {
|
||||
return sltProjectMonthMapper.selectSltProjectMonthById(id);
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,7 @@ public class SltProjectMonthServiceImpl implements ISltProjectMonthService
|
|||
* @return 月结算任务索引
|
||||
*/
|
||||
@Override
|
||||
public List<SltProjectMonth> selectSltProjectMonthList(SltProjectMonth sltProjectMonth)
|
||||
{
|
||||
public List<SltProjectMonth> selectSltProjectMonthList(SltProjectMonth sltProjectMonth) {
|
||||
return sltProjectMonthMapper.selectSltProjectMonthList(sltProjectMonth);
|
||||
}
|
||||
|
||||
|
|
@ -51,10 +49,13 @@ public class SltProjectMonthServiceImpl implements ISltProjectMonthService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSltProjectMonth(SltProjectMonth sltProjectMonth)
|
||||
{
|
||||
public int insertSltProjectMonth(SltProjectMonth sltProjectMonth) {
|
||||
sltProjectMonth.setCreateTime(DateUtils.getNowDate());
|
||||
return sltProjectMonthMapper.insertSltProjectMonth(sltProjectMonth);
|
||||
try {
|
||||
return sltProjectMonthMapper.insertSltProjectMonth(sltProjectMonth);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -64,10 +65,13 @@ public class SltProjectMonthServiceImpl implements ISltProjectMonthService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSltProjectMonth(SltProjectMonth sltProjectMonth)
|
||||
{
|
||||
public int updateSltProjectMonth(SltProjectMonth sltProjectMonth) {
|
||||
sltProjectMonth.setUpdateTime(DateUtils.getNowDate());
|
||||
return sltProjectMonthMapper.updateSltProjectMonth(sltProjectMonth);
|
||||
try {
|
||||
return sltProjectMonthMapper.updateSltProjectMonth(sltProjectMonth);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -77,8 +81,7 @@ public class SltProjectMonthServiceImpl implements ISltProjectMonthService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltProjectMonthByIds(Long[] ids)
|
||||
{
|
||||
public int deleteSltProjectMonthByIds(Long[] ids) {
|
||||
return sltProjectMonthMapper.deleteSltProjectMonthByIds(ids);
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +92,7 @@ public class SltProjectMonthServiceImpl implements ISltProjectMonthService
|
|||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSltProjectMonthById(Long id)
|
||||
{
|
||||
public int deleteSltProjectMonthById(Long id) {
|
||||
return sltProjectMonthMapper.deleteSltProjectMonthById(id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue