| | |
| | | import com.java110.common.bmo.machine.IMachineOpenDoorBMO; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | 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.dto.parkingBoxArea.ParkingBoxAreaDto; |
| | | import com.java110.dto.smallWeChat.SmallWeChatDto; |
| | | import com.java110.intf.community.IParkingBoxAreaV1InnerServiceSMO; |
| | | import com.java110.intf.store.ISmallWeChatInnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.StringUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | | import java.util.List; |
| | |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "machine.unlicensedCarMachineQrCodeUrl") |
| | | public class UnlicensedCarMachineQrCodeUrl extends AbstractServiceCmdListener { |
| | | public class UnlicensedCarMachineQrCodeUrl extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(UnlicensedCarMachineQrCodeUrl.class); |
| | | |
| | |
| | | smallWeChatDto.setObjId(reqJson.getString("communityId")); |
| | | smallWeChatDto.setWeChatType(SmallWeChatDto.WECHAT_TYPE_PUBLIC); |
| | | List<SmallWeChatDto> smallWeChatDtos = smallWeChatInnerServiceSMOImpl.querySmallWeChats(smallWeChatDto); |
| | | String ownerUrl = MappingCache.getValue("OWNER_WECHAT_URL"); |
| | | ownerUrl += ("/#/pages/tempParkingFee/tempParkingFee?communityId=" + |
| | | reqJson.getString("communityId") + "$machineId=" + |
| | | String ownerUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL"); |
| | | ownerUrl += ("/#/pages/unlicensedCarIn/unlicensedCarIn?communityId=" + |
| | | reqJson.getString("communityId") + "&machineId=" + |
| | | reqJson.getString("machineId")); |
| | | if (smallWeChatDtos != null && smallWeChatDtos.size() > 0) { |
| | | ownerUrl += ("&appId=" + smallWeChatDtos.get(0).getAppId()); |