old mode 100644
new mode 100755
| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.dto.feeDiscount.FeeDiscountDto; |
| | | import com.java110.dto.feeDiscountRule.FeeDiscountRuleDto; |
| | | import com.java110.dto.feeDiscountRuleSpec.FeeDiscountRuleSpecDto; |
| | | import com.java110.dto.feeDiscount.FeeDiscountRuleDto; |
| | | import com.java110.dto.feeDiscount.FeeDiscountRuleSpecDto; |
| | | import com.java110.dto.payFeeDetailDiscount.PayFeeDetailDiscountDto; |
| | | import com.java110.fee.bmo.feeDiscount.IDeleteFeeDiscountBMO; |
| | | import com.java110.fee.bmo.feeDiscount.IGetFeeDiscountBMO; |
| | | import com.java110.fee.bmo.feeDiscount.ISaveFeeDiscountBMO; |
| | | import com.java110.fee.bmo.feeDiscount.IUpdateFeeDiscountBMO; |
| | | import com.java110.fee.bmo.feeDiscountRule.IGetFeeDiscountRuleBMO; |
| | | import com.java110.fee.bmo.feeDiscountRuleSpec.IComputeFeeDiscountBMO; |
| | | import com.java110.fee.bmo.feeDiscountRuleSpec.IGetFeeDiscountRuleSpecBMO; |
| | | import com.java110.po.feeDiscount.FeeDiscountPo; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | 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 java.text.ParseException; |
| | | |
| | | |
| | | @RestController |
| | |
| | | |
| | | @Autowired |
| | | private IGetFeeDiscountRuleSpecBMO getFeeDiscountRuleSpecBMOImpl; |
| | | |
| | | @Autowired |
| | | private IComputeFeeDiscountBMO computeFeeDiscountBMOImpl; |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | |
| | | @RequestMapping(value = "/queryFeeDiscount", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryFeeDiscount(@RequestParam(value = "communityId") String communityId, |
| | | @RequestParam(value = "discountType", required = false) String discountType, |
| | | @RequestParam(value = "discountName", required = false) String discountName, |
| | | @RequestParam(value = "discountId", required = false) String discountId, |
| | | @RequestParam(value = "ruleName", required = false) String ruleName, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | FeeDiscountDto feeDiscountDto = new FeeDiscountDto(); |
| | |
| | | feeDiscountDto.setRow(row); |
| | | feeDiscountDto.setCommunityId(communityId); |
| | | feeDiscountDto.setDiscountType(discountType); |
| | | feeDiscountDto.setDiscountName(discountName); |
| | | feeDiscountDto.setRuleName(ruleName); |
| | | feeDiscountDto.setDiscountId(discountId); |
| | | return getFeeDiscountBMOImpl.get(feeDiscountDto); |
| | | } |
| | | |
| | |
| | | feeDiscountRuleSpecDto.setRuleId(ruleId); |
| | | return getFeeDiscountRuleSpecBMOImpl.get(feeDiscountRuleSpecDto); |
| | | } |
| | | |
| | | /** |
| | | * 计算费用折扣 |
| | | * |
| | | * @param communityId 小区ID |
| | | * @return |
| | | * @serviceCode /feeDiscount/computeFeeDiscount |
| | | * @path /app/feeDiscount/computeFeeDiscount |
| | | */ |
| | | @RequestMapping(value = "/computeFeeDiscount", method = RequestMethod.GET) |
| | | public ResponseEntity<String> computeFeeDiscount(@RequestParam(value = "feeId") String feeId, |
| | | @RequestParam(value = "communityId") String communityId, |
| | | @RequestParam(value = "cycles") double cycles, |
| | | @RequestParam(value = "payerObjId") String payerObjId, |
| | | @RequestParam(value = "payerObjType") String payerObjType, |
| | | @RequestParam(value = "endTime") String endTime, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) throws ParseException { |
| | | return computeFeeDiscountBMOImpl.compute(feeId, communityId, cycles, payerObjId, payerObjType, endTime, page, row); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询 缴费优惠 |
| | | * |
| | | * @return |
| | | * @serviceCode /feeDiscount/queryFeeDetailDiscount |
| | | * @path /app/feeDiscount/queryFeeDetailDiscount |
| | | */ |
| | | @RequestMapping(value = "/queryFeeDetailDiscount", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryFeeDetailDiscount( |
| | | @RequestParam(value = "detailId") String detailId, |
| | | @RequestParam(value = "communityId") String communityId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | PayFeeDetailDiscountDto payFeeDetailDiscountDto = new PayFeeDetailDiscountDto(); |
| | | payFeeDetailDiscountDto.setPage(page); |
| | | payFeeDetailDiscountDto.setRow(row); |
| | | payFeeDetailDiscountDto.setDetailId(detailId); |
| | | payFeeDetailDiscountDto.setCommunityId(communityId); |
| | | return getFeeDiscountBMOImpl.getFeeDetailDiscount(payFeeDetailDiscountDto); |
| | | } |
| | | } |