费控付款申请接口增加转账附言
This commit is contained in:
parent
959ad0585f
commit
c3e14c6f03
|
|
@ -1,5 +1,8 @@
|
|||
package shjh.jhzj7.fi.fi.webapi;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONException;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.drew.lang.annotations.NotNull;
|
||||
import kd.bos.context.RequestContext;
|
||||
import kd.bos.dataentity.OperateOption;
|
||||
|
|
@ -37,7 +40,7 @@ import java.util.Map;
|
|||
|
||||
@ApiController(value = "ApplyBillControler",desc = "应付付款申请单接口,自定义插件")
|
||||
public class ApplyBillControler {
|
||||
private static final String entityName = "bos_costcenter";//系统库 表名 t_bas_costcenter
|
||||
// private static final String entityName = "bos_costcenter";//系统库 表名 t_bas_costcenter
|
||||
public static final String orgEntName = "bos_org";//系统库 表名 t_org_org
|
||||
public static final String BD_CURRENCY = "bd_currency";//币种 表名 t_bd_currency
|
||||
public static final String BD_SUPPLIER = "bd_supplier";//供应商 表名 t_bd_supplier
|
||||
|
|
@ -55,19 +58,19 @@ public class ApplyBillControler {
|
|||
|
||||
@ApiPostMapping(value = apimenthod, desc = "应付付款申请单接口")
|
||||
public CustomApiResult<ApiResultPayApplyExt> applybill_sync (@NotNull @Valid @ApiRequestBody(value="入参json格式数据") ApplyBillModel applybill) {
|
||||
// JSONObject json_body;
|
||||
JSONObject json_body;
|
||||
String jsonBodyString = null;
|
||||
|
||||
//返回值
|
||||
ApiResultPayApplyExt apiResultExt = new ApiResultPayApplyExt();
|
||||
// try {
|
||||
// // 解析入参,如果格式不正确,日志记录,并反馈esb
|
||||
// json_body = (JSONObject) JSON.toJSON(applybill);
|
||||
// jsonBodyString = JSON.toJSONString(json_body);
|
||||
// } catch (JSONException e) {
|
||||
// handleError("应付付款申请单接口入参异常:" + e.getMessage(), Apimenthod, "费控", null);
|
||||
// return handleErrorAndReturn(apiResultExt, "接口入参异常");
|
||||
// }
|
||||
try {
|
||||
// 解析入参,如果格式不正确,日志记录,并反馈esb
|
||||
json_body = (JSONObject) JSON.toJSON(applybill);
|
||||
jsonBodyString = JSON.toJSONString(json_body);
|
||||
} catch (JSONException e) {
|
||||
handleError("应付付款申请单接口入参异常:" + e.getMessage(), Apimenthod, "费控", null);
|
||||
return handleErrorAndReturn(apiResultExt, "接口入参异常");
|
||||
}
|
||||
// 费控单据编号
|
||||
String fkBillNum = applybill.getFkBillNum();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue