| | |
| | | import com.java110.core.base.controller.BaseController; |
| | | import com.java110.core.context.BusinessServiceDataFlow; |
| | | import com.java110.core.factory.DataTransactionFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import com.java110.dto.fee.FeeAttrDto; |
| | | import com.java110.dto.fee.FeeDto; |
| | | import com.java110.fee.bmo.*; |
| | |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | */ |
| | | @RequestMapping(value = "/listOweFees", method = RequestMethod.GET) |
| | | public ResponseEntity<String> listOweFees( |
| | | @RequestParam(value = "payObjId") String payObjId, |
| | | @RequestParam(value = "payObjType") String payObjType, |
| | | @RequestParam(value = "payObjId", required = false) String payObjId, |
| | | @RequestParam(value = "payObjType", required = false) String payObjType, |
| | | @RequestParam(value = "ownerId", required = false) String ownerId, |
| | | @RequestParam(value = "communityId") String communityId) { |
| | | |
| | | if (StringUtil.isEmpty(payObjId) && StringUtil.isEmpty(ownerId)) { |
| | | throw new IllegalArgumentException("费用对象或者业主不能都为空"); |
| | | } |
| | | FeeDto feeDto = new FeeDto(); |
| | | feeDto.setPayerObjId(payObjId); |
| | | feeDto.setPayerObjType(payObjType); |
| | | feeDto.setOwnerId(ownerId); |
| | | feeDto.setCommunityId(communityId); |
| | | return queryOweFeeImpl.query(feeDto); |
| | | } |
| | |
| | | Assert.hasKeyAndValue(reqJson, "feeTypeCd", "未包含费用类型"); |
| | | Assert.hasKeyAndValue(reqJson, "storeId", "未包含商户信息"); |
| | | Assert.hasKeyAndValue(reqJson, "userId", "未包含用户信息"); |
| | | Assert.hasKeyAndValue(reqJson, "batchId", "未包含用户信息"); |
| | | |
| | | return importRoomFeeImpl.importFee(reqJson); |
| | | } |
| | |
| | | Assert.hasKeyAndValue(reqJson, "feeTypeCd", "未包含费用类型"); |
| | | Assert.hasKeyAndValue(reqJson, "storeId", "未包含商户信息"); |
| | | Assert.hasKeyAndValue(reqJson, "userId", "未包含用户信息"); |
| | | Assert.hasKeyAndValue(reqJson, "batchId", "未包含批次信息"); |
| | | |
| | | return importRoomFeeImpl.importCarFee(reqJson); |
| | | } |
| | |
| | | Assert.hasKeyAndValue(reqJson, "feeTypeCd", "未包含费用类型"); |
| | | Assert.hasKeyAndValue(reqJson, "storeId", "未包含商户信息"); |
| | | Assert.hasKeyAndValue(reqJson, "userId", "未包含用户信息"); |
| | | Assert.hasKeyAndValue(reqJson, "batchId", "未包含批次信息"); |
| | | |
| | | return importRoomFeeImpl.importContractFees(reqJson); |
| | | } |