| | |
| | | package com.java110.acct.api; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.acct.bmo.account.IGetAccountBMO; |
| | | import com.java110.acct.bmo.account.IOwnerPrestoreAccountBMO; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.account.AccountDto; |
| | | import com.java110.dto.accountDetail.AccountDetailDto; |
| | | import com.java110.dto.owner.OwnerDto; |
| | | import com.java110.po.accountDetail.AccountDetailPo; |
| | | import com.java110.utils.util.Assert; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.RequestHeader; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * @ClassName AccountApi |
| | |
| | | |
| | | @Autowired |
| | | private IGetAccountBMO getAccountBMOImpl; |
| | | |
| | | @Autowired |
| | | private IOwnerPrestoreAccountBMO ownerPrestoreAccountBMOImpl; |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | |
| | | accountDto.setAcctId(acctId); |
| | | return getAccountBMOImpl.getDetail(accountDto); |
| | | } |
| | | |
| | | /** |
| | | * 业主账户预存 |
| | | * |
| | | * @param reqJson 小区ID |
| | | * @return |
| | | * @serviceCode /account/ownerPrestoreAccount |
| | | * @path /app/account/ownerPrestoreAccount |
| | | */ |
| | | @RequestMapping(value = "/ownerPrestoreAccount", method = RequestMethod.POST) |
| | | public ResponseEntity<String> queryAccountDetail(@RequestBody JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "小区ID不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "ownerId", "业主不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "amount", "金额不能为空"); |
| | | |
| | | AccountDetailPo accountDetailPo = new AccountDetailPo(); |
| | | accountDetailPo.setRemark(reqJson.getString("remark")); |
| | | accountDetailPo.setObjId(reqJson.getString("ownerId")); |
| | | accountDetailPo.setAmount(reqJson.getString("amount")); |
| | | return ownerPrestoreAccountBMOImpl.prestore(accountDetailPo,reqJson); |
| | | } |
| | | } |