当前位置: 首页 > news >正文

开发微网站和小程序wordpress使用教程书

开发微网站和小程序,wordpress使用教程书,兰州需要做推广的公司,wordpress 安装要求一、背景 在mysql上定义了存储过程#xff0c;然后我想每1分钟调用一次存储过程。于是我设置了一个event#xff0c;但是这个事件默认的运行周期为天#xff0c;我尝试修改成minute却不生效。所以我决定通过java代码来调用存储过程。 二、mysql存储过程 CREATE DEFINERroot…一、背景 在mysql上定义了存储过程然后我想每1分钟调用一次存储过程。于是我设置了一个event但是这个事件默认的运行周期为天我尝试修改成minute却不生效。所以我决定通过java代码来调用存储过程。 二、mysql存储过程 CREATE DEFINERroot% PROCEDURE apporder.ord_shopping() begin truncate table ord_shopping_procedure; insert into ord_shopping_procedure select * from apporder.ord_shopping_order union all select * from apporder.ord_shopping_order_2 union all select * from apporder.ord_shopping_order_3 union all select * from apporder.ord_shopping_order_4 union all select * from apporder.ord_shopping_order_5 union all select * from apporder.ord_shopping_order_6 union all select * from apporder.ord_shopping_order_7 union all select * from apporder.ord_shopping_order_8 union all select * from apporder.ord_shopping_order_9 union all select * from apporder.ord_shopping_order_10 union all select * from apporder.ord_shopping_order_11 union all select * from apporder.ord_shopping_order_12 union all select * from apporder.ord_shopping_order_13 union all select * from apporder.ord_shopping_order_14 union all select * from apporder.ord_shopping_order_15 union all select * from apporder.ord_shopping_order_16 union all select * from apporder.ord_shopping_order_17 union all select * from apporder.ord_shopping_order_18 union all select * from apporder.ord_shopping_order_19 union all select * from apporder.ord_shopping_order_20 union all select * from apporder.ord_shopping_order_21 union all select * from apporder.ord_shopping_order_22 union all select * from apporder.ord_shopping_order_23 union all select * from apporder.ord_shopping_order_24 union all select * from apporder.ord_shopping_order_25 union all select * from apporder.ord_shopping_order_26 union all select * from apporder.ord_shopping_order_27 union all select * from apporder.ord_shopping_order_28 union all select * from apporder.ord_shopping_order_29 union all select * from apporder.ord_shopping_order_30 union all select * from apporder.ord_shopping_order_31 union all select * from apporder.ord_shopping_order_32 union all select * from apporder.ord_shopping_order_33 union all select * from apporder.ord_shopping_order_34 union all select * from apporder.ord_shopping_order_35 union all select * from apporder.ord_shopping_order_36 union all select * from apporder.ord_shopping_order_37 union all select * from apporder.ord_shopping_order_38 union all select * from apporder.ord_shopping_order_39 union all select * from apporder.ord_shopping_order_40 union all select * from apporder.ord_shopping_order_41 union all select * from apporder.ord_shopping_order_42 union all select * from apporder.ord_shopping_order_43 union all select * from apporder.ord_shopping_order_44 union all select * from apporder.ord_shopping_order_45 union all select * from apporder.ord_shopping_order_46 union all select * from apporder.ord_shopping_order_47 union all select * from apporder.ord_shopping_order_48 union all select * from apporder.ord_shopping_order_49 union all select * from apporder.ord_shopping_order_50 union all select * from apporder.ord_shopping_order_51 union all select * from apporder.ord_shopping_order_52 union all select * from apporder.ord_shopping_order_53 union all select * from apporder.ord_shopping_order_54 union all select * from apporder.ord_shopping_order_55 union all select * from apporder.ord_shopping_order_56 union all select * from apporder.ord_shopping_order_57 union all select * from apporder.ord_shopping_order_58 union all select * from apporder.ord_shopping_order_59 union all select * from apporder.ord_shopping_order_60 union all select * from apporder.ord_shopping_order_61 union all select * from apporder.ord_shopping_order_62 union all select * from apporder.ord_shopping_order_63;truncate table ord_shopping; insert into ord_shopping select t.*, JSON_EXTRACT(t.json, $.skuName) as sku_name from ( select id,order_type,order_mode,user_id,user_name,trade_no,state,total_amount, pay_amount, pay_time , ou_name ,mobile ,create_time, sale_amount, JSON_EXTRACT(item_abstract_json, $[0]) as json,store_ou_code,store_name ,mch_ou_code,mch_name,pay_mode from ord_shopping_procedure ) t;truncate table ctg_h5_pay_order; insert into ctg_h5_pay_order select id as order_no , total_amount as total_price , pay_time, trade_no, trade_no as pay_no, mobile as phone, store_ou_code as store_code , store_name, sku_name as product_id , user_id , case when state 1 then 未支付 when state 2 then 支付中 when state 3 then 已支付 when state 7 then 废弃 when state 8 then 已失效 end state, create_time, pay_mode, case when state 1 then 未支付 when state 2 then 支付中 when state 3 then 已支付 when state 7 then 废弃 when state 8 then 已失效 endtrade_status from ord_shopping;END 我定义的event其他定时执行存储过程 CREATE EVENT ord_shopping_event ON SCHEDULE EVERY 1 DAY STARTS 2023-11-28 04:51:22.000 ON COMPLETION PRESERVE ENABLE DO call ord_shopping() 但是 ON SCHEDULE EVERY 1 DAY 我改为 ON SCHEDULE EVERY 1 MINUTE 却修改不了。 于是我使用java来调用存储过程 三、通过java来调用存储过程 在 接口中定义 Repository public interface TransactionMapper extends BaseMapperTransaction{ /**      * 调用存储过程      */     Select(script call ord_shopping()              /script)     public  void callOrdShopping(); } /*** 调用存储过程*/Select(script call ord_shopping() /script)public void callOrdShopping(); 通过service调用 /**      * 调用存储过程      */     public void callOrdShopping() {                  transactionMapper.callOrdShopping();     }   /*** 调用存储过程*/public void callOrdShopping() {transactionMapper.callOrdShopping();}通过定时任务调用 Slf4j Service Transactional(rollbackFor Exception.class) public class ToolServiceThread implements ApplicationRunner { Autowired     private TransactionService transactionService;       /**      * 交易信息上链定时任务 早上2点10分      */     // Scheduled(cron 0 10 2 * * ?)     Scheduled(cron 0 0/1 * * * ?)     public void callOrdShopping() throws Exception {         log.info(调用交易信息存储过程);         transactionService.callOrdShopping();     }            }   /*** 1分钟调用一次*/// Scheduled(cron 0 0/1 * * * ?)public void callOrdShopping() throws Exception {log.info(调用交易信息存储过程);transactionService.callOrdShopping();}
http://www.zqtcl.cn/news/27540/

相关文章:

  • 东莞清溪镇做网站公司wordpress还是hexo
  • 影视网站开发php网站开发经理招聘
  • 公司注册网上申请网站做外贸进国外网站
  • 小说网站建设之前需求分析网站做造价
  • 网站如何防止攻击wordpress 安装的时候是英文
  • flash网站方案关键词查找网站
  • 沈阳做一个网站需要多少钱咸宁网站seo排名
  • 兼职做诚信网站认证移动端h5页面开发流程
  • 深圳优化网站公司网页制作题用什么软件
  • 数据录入网站开发深圳网站开发建设培训
  • 中学建设校园网站方案英文网站建设合同
  • 个人网站能百度推广吗wordpress文本编辑增强
  • 谷歌网站推广费用网站的商业授权
  • 鸿兴网站建设公司一个人开公司需要什么条件
  • 网站开发设计心得及体会网站cms系统排名
  • 做网站和做系统哪个难网站建设系统多少钱
  • 网站建设哪个语言好洛阳做网站找哪家
  • 品牌建设网站有哪些网站建设 麦肯趋势
  • 怎么看小企业网站建设麦客网做网站
  • 精美的php个人网站源码wordpress 功能开发
  • 东莞做网站制作电子商务网站有那些功能
  • 搭建平台网站有什么用wordpress图片异步延迟加载
  • 国家高新区网站建设水贝网站建设
  • 网络广告网站怎么做网站改不了分类
  • 做网站找哪家公司最好厦门建设局网站工程师评审
  • 微擎做网站费用肃宁县网站建设价格
  • wordpress建站不知道密码网站建设购买数据库的流程图
  • 南通网站快照优化公司wordpress importer
  • 扬州门户网站开发科技网站颜色
  • 想建设个网站怎么做网站排名优化