| | |
| | | return casual.getDeclaredMethod(OrderMethodVo.REMOVE.getCode(), Long.class); |
| | | case SELECT_COMPLETE: |
| | | return casual.getDeclaredMethod(OrderMethodVo.SELECT_COMPLETE.getCode()); |
| | | case SELECT_COMPLETE9: |
| | | return casual.getDeclaredMethod(OrderMethodVo.SELECT_COMPLETE9.getCode()); |
| | | case SELECT_COMPLETE10: |
| | | return casual.getDeclaredMethod(OrderMethodVo.SELECT_COMPLETE10.getCode()); |
| | | case SELECT_COMPLETE8: |
| | | return casual.getDeclaredMethod(OrderMethodVo.SELECT_COMPLETE8.getCode()); |
| | | case ADD_TO_LOG_TABLE_ORDER: |
| | |
| | | throw new CoolException(e.getCause().getMessage()); |
| | | } |
| | | } |
| | | public static List<Order> selectComplete9(boolean sign){ |
| | | try{ |
| | | Object invoke = implement(OrderMethodVo.SELECT_COMPLETE9).invoke(getOrderInAndOutType(sign)); |
| | | if (Cools.isEmpty(invoke)){ |
| | | return new ArrayList<>(); |
| | | } else if (invoke instanceof List) { |
| | | return (List<Order>) invoke; |
| | | } else { |
| | | throw new CoolException("Unexpected return type"); |
| | | } |
| | | } catch (Exception e) { |
| | | throw new CoolException(e.getCause().getMessage()); |
| | | } |
| | | } |
| | | |
| | | public static List<Order> selectComplete9(String sign){ |
| | | try{ |
| | | Object invoke = implement(OrderMethodVo.SELECT_COMPLETE9).invoke(getOrderInAndOutType(sign)); |
| | | if (Cools.isEmpty(invoke)){ |
| | | return new ArrayList<>(); |
| | | } else if (invoke instanceof List) { |
| | | return (List<Order>) invoke; |
| | | } else { |
| | | throw new CoolException("Unexpected return type"); |
| | | } |
| | | } catch (Exception e) { |
| | | throw new CoolException(e.getCause().getMessage()); |
| | | } |
| | | } |
| | | public static List<Order> selectComplete10(boolean sign){ |
| | | try{ |
| | | Object invoke = implement(OrderMethodVo.SELECT_COMPLETE10).invoke(getOrderInAndOutType(sign)); |
| | | if (Cools.isEmpty(invoke)){ |
| | | return new ArrayList<>(); |
| | | } else if (invoke instanceof List) { |
| | | return (List<Order>) invoke; |
| | | } else { |
| | | throw new CoolException("Unexpected return type"); |
| | | } |
| | | } catch (Exception e) { |
| | | throw new CoolException(e.getCause().getMessage()); |
| | | } |
| | | } |
| | | |
| | | public static List<Order> selectComplete10(String sign){ |
| | | try{ |
| | | Object invoke = implement(OrderMethodVo.SELECT_COMPLETE10).invoke(getOrderInAndOutType(sign)); |
| | | if (Cools.isEmpty(invoke)){ |
| | | return new ArrayList<>(); |
| | | } else if (invoke instanceof List) { |
| | | return (List<Order>) invoke; |
| | | } else { |
| | | throw new CoolException("Unexpected return type"); |
| | | } |
| | | } catch (Exception e) { |
| | | throw new CoolException(e.getCause().getMessage()); |
| | | } |
| | | } |
| | | |
| | | public static List<Order> selectComplete8(boolean sign){ |
| | | try{ |