bms2相关修改;
This commit is contained in:
@@ -80,6 +80,27 @@ public class BusinessDocumentApi extends BaseController{
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 保存业务单据
|
||||
*/
|
||||
@ApiOperation("保存业务单据")
|
||||
@PostMapping("/getEstimatedCost")
|
||||
public AjaxResult getEstimatedCost(@RequestBody BusinessDocumentDTO businessDocumentDTO)
|
||||
{
|
||||
try {
|
||||
//转换实体
|
||||
BusinessDocumentDO businessDocumentDO = businessDocumentAssembler.toDO(businessDocumentDTO);
|
||||
BusinessDocumentDO estimatedCost = businessDocumentApplicationService.getEstimatedCost(businessDocumentDO);
|
||||
return AjaxResult.success(estimatedCost);
|
||||
} catch (ServiceException e) {
|
||||
return AjaxResult.error(e.getMessage());
|
||||
} catch (Exception e){
|
||||
return AjaxResult.error("查询估价失败:" + e.getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 整租推送
|
||||
*/
|
||||
@@ -240,4 +261,4 @@ public class BusinessDocumentApi extends BaseController{
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user