| | |
| | | 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.exception.InitConfigDataException; |
| | | import com.java110.utils.exception.InitDataFlowContextException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.DateUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | * @path /app/feeApi/listOweFees |
| | | */ |
| | | @RequestMapping(value = "/listOweFees", method = RequestMethod.GET) |
| | | public ResponseEntity<String> listOweFees( |
| | | @RequestParam(value = "payObjId") String payObjId, |
| | | @RequestParam(value = "payObjType") String payObjType, |
| | | @RequestParam(value = "communityId") String communityId) { |
| | | public ResponseEntity<String> listOweFees(@RequestParam(value = "payObjId", required = false) String payObjId, |
| | | @RequestParam(value = "payObjType", required = false) String payObjType, |
| | | @RequestParam(value = "ownerId", required = false) String ownerId, |
| | | @RequestParam(value = "targetEndTime", required = false) String targetEndTime, |
| | | @RequestParam(value = "communityId") String communityId) { |
| | | // if (StringUtil.isEmpty(payObjId) && StringUtil.isEmpty(ownerId)) { |
| | | // throw new IllegalArgumentException("费用对象或者业主不能都为空"); |
| | | // } |
| | | FeeDto feeDto = new FeeDto(); |
| | | feeDto.setPayerObjId(payObjId); |
| | | if (!StringUtil.isEmpty(payObjId)) { |
| | | if (payObjId.contains(",")) { |
| | | feeDto.setPayerObjIds(payObjId.split(",")); |
| | | } else { |
| | | feeDto.setPayerObjId(payObjId); |
| | | } |
| | | } |
| | | if (!StringUtil.isEmpty(targetEndTime)) { |
| | | targetEndTime = targetEndTime + " 23:59:59"; |
| | | feeDto.setTargetEndTime(targetEndTime); |
| | | } |
| | | feeDto.setPayerObjType(payObjType); |
| | | feeDto.setOwnerId(ownerId); |
| | | feeDto.setCommunityId(communityId); |
| | | return queryOweFeeImpl.query(feeDto); |
| | | } |
| | |
| | | feeDto.setPayerObjType(FeeDto.PAYER_OBJ_TYPE_ROOM); |
| | | feeDto.setCommunityId(communityId); |
| | | return queryOweFeeImpl.querys(feeDto); |
| | | } |
| | | |
| | | /** |
| | | * 查询欠费费用 |
| | | * |
| | | * @param feeId 费用ID |
| | | * @param communityId 小区ID |
| | | * @param cycle 周期 |
| | | * @return |
| | | * @path /app/feeApi/listFeeObj |
| | | */ |
| | | @RequestMapping(value = "/listFeeObj", method = RequestMethod.GET) |
| | | public ResponseEntity<String> listFeeObj( |
| | | @RequestParam(value = "feeId") String feeId, |
| | | @RequestParam(value = "cycle", required = false) String cycle, |
| | | @RequestParam(value = "communityId") String communityId) { |
| | | FeeDto feeDto = new FeeDto(); |
| | | feeDto.setFeeId(feeId); |
| | | feeDto.setCommunityId(communityId); |
| | | if (!StringUtil.isEmpty(cycle)) { |
| | | feeDto.setCycle(cycle); |
| | | } |
| | | return queryOweFeeImpl.listFeeObj(feeDto); |
| | | } |
| | | |
| | | |