/** * 添加收益信息表画面中:保存按钮的实现 * @param coreEnterpriseId * 核心企业 * @param financialInstitutionsId * 计划管理人ID * @param periods * 期数id * @param subjectlist * table信息:费用名称,备注,金额 * @param financeOpinion * 意见 * @param releaseDate * 发行日期 */ @Rest(method = RestMethod.POST) @ActionKey(value = "/api/finance/biz/abs/profit/save/subject/info") fun saveWays( @Parameter("核心企业ID" ,optional = false) coreEnterpriseId: String, @Parameter("计划管理人ID",optional = false) financialInstitutionsId: String, @Parameter("期数",optional = false) periods: String, @Parameter("费用金额备注", optional = false) subjectlist: MutableList, @Parameter("意见",optional = false) financeOpinion: String? =null , @Parameter("发行日期",optional = false) releaseDate :String? =null ): Return { val subjectlists:MutableList = mutableListOf() for (subject in subjectlist!!.listIterator() ){ // 解析字符窜转对象 var obj= JsonUtils.parseJson2T(subject,AddOrRevisionIncomePoJo::class.java) subjectlists.add(obj) } var r = this.initService ().saveWays(iwebReq = getIwebRequest(), subjectlist = subjectlists, financeOpinion = financeOpinion ,releaseDate = releaseDate , coreEnterpriseId = coreEnterpriseId , financialInstitutionsId = financialInstitutionsId , periods = periods) return this.buildReturn(data = r) }