| | |
| | | import com.java110.vo.ResultVo; |
| | | import org.slf4j.Logger; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.text.ParseException; |
| | |
| | | Assert.hasLength(reqJson.getString("cycles"), "周期不能为空"); |
| | | Assert.hasLength(reqJson.getString("receivedAmount"), "实收金额不能为空"); |
| | | Assert.hasLength(reqJson.getString("feeId"), "费用ID不能为空"); |
| | | |
| | | //当支付方式为转账时,需要校验转账人是否为空 |
| | | String primeRate = reqJson.getString("primeRate"); |
| | | if(!StringUtils.isEmpty(primeRate) && primeRate.equals("7")){ |
| | | String transferorName = reqJson.getString("transferorName"); |
| | | if(StringUtils.isEmpty(transferorName)){ |
| | | Assert.hasLength(reqJson.getString("transferorName"), "支付方式为转账时,转账人不能为空"); |
| | | } |
| | | } |
| | | //判断是否 费用状态为缴费结束 |
| | | FeeDto feeDto = new FeeDto(); |
| | | feeDto.setFeeId(reqJson.getString("feeId")); |