|
|
@@ -344,4 +344,29 @@ public class ExpenseAccountController extends CertifyApiController {
|
|
|
return res.data(expenseAccountService.updateMain(in));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 修改实报金额
|
|
|
+ * @param type 类型 1报销与费用 2费用详细
|
|
|
+ * @param id 编号
|
|
|
+ * @param amount 金额
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/updateRealAmount",method = RequestMethod.POST)
|
|
|
+ public Result updateRealAmount(Integer type ,Integer id,BigDecimal amount){
|
|
|
+ Result res =new Result();
|
|
|
+ if (id==null){
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"编号"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ if (type==null){
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"分类"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ if (amount==null){
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"金额"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ return res.data(expenseAccountService.updateRealAmount( type , id, amount));
|
|
|
+ }
|
|
|
+
|
|
|
}
|