| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | |
| | | |
| | | @Java110Cmd(serviceCode = "owner.deleteOwnerCars") |
| | | public class DeleteOwnerCarsCmd extends Cmd { |
| | | |
| | | @Autowired |
| | | private IFeeInnerServiceSMO feeInnerServiceSMOImpl; |
| | | |
| | |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException { |
| | | //Assert.hasKeyAndValue(reqJson, "xxx", "xxx"); |
| | | //Assert.hasKeyAndValue(reqJson, "xxx", "xxx"); |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "carId", "carId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "memberId", "memberId不能为空"); |
| | |
| | | } |
| | | |
| | | OwnerCarDto ownerCarDto = new OwnerCarDto(); |
| | | ownerCarDto.setCarId(reqJson.getString("carId")); |
| | | ownerCarDto.setMemberId(reqJson.getString("memberId")); |
| | | ownerCarDto.setCommunityId(reqJson.getString("communityId")); |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Java110Transactional |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException { |
| | | if (reqJson.containsKey("psId") && !StringUtil.isEmpty(reqJson.getString("psId"))) { |
| | | ParkingSpaceDto parkingSpaceDto = new ParkingSpaceDto(); |