| | |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.AbstractServiceCmdListener; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.fee.PayFeeDto; |
| | |
| | | import com.java110.dto.owner.OwnerDto; |
| | | import com.java110.dto.parkingSpaceApply.ParkingSpaceApplyDto; |
| | | import com.java110.intf.community.IParkingSpaceApplyV1InnerServiceSMO; |
| | | import com.java110.intf.fee.IPayFeeNewV1InnerServiceSMO; |
| | | import com.java110.intf.fee.IPayFeeV1InnerServiceSMO; |
| | | import com.java110.intf.user.IBuildingOwnerV1InnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerCarV1InnerServiceSMO; |
| | | import com.java110.po.parkingSpaceApply.ParkingSpaceApplyPo; |
| | |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | | import com.java110.core.log.LoggerFactory; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "parkingSpaceApply.saveParkingSpaceApply") |
| | | public class SaveParkingSpaceApplyCmd extends AbstractServiceCmdListener { |
| | | public class SaveParkingSpaceApplyCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(SaveParkingSpaceApplyCmd.class); |
| | | |
| | |
| | | @Autowired |
| | | private IOwnerCarV1InnerServiceSMO ownerCarV1InnerServiceSMOImpl; |
| | | @Autowired |
| | | private IPayFeeNewV1InnerServiceSMO payFeeNewV1InnerServiceSMOImpl; |
| | | private IPayFeeV1InnerServiceSMO payFeeV1InnerServiceSMOImpl; |
| | | @Autowired |
| | | private IBuildingOwnerV1InnerServiceSMO buildingOwnerV1InnerServiceSMOImpl; |
| | | |
| | |
| | | PayFeeDto payFeeDto = new PayFeeDto(); |
| | | payFeeDto.setPayerObjId(ownerCarDtos.get(0).getCarId()); |
| | | payFeeDto.setState("2008001"); |
| | | List<PayFeeDto> payFeeDtos = payFeeNewV1InnerServiceSMOImpl.queryPayFeeNews(payFeeDto); |
| | | List<PayFeeDto> payFeeDtos = payFeeV1InnerServiceSMOImpl.queryPayFees(payFeeDto); |
| | | if (payFeeDtos != null && payFeeDtos.size() > 0) { |
| | | throw new CmdException("该车辆已经有相关费用,请到停车费中续费。或者联系管理员"); |
| | | } |