要求:修改good表,添加 organization 基础定义 用于引发和调度事件的延迟方法 AddDomainEvent Domain\SeedWork\Entity.cs 聚合根 Goods.cs 请注意 AddDomainEvent 方法的唯一功能是将事件添加到列表。 尚未调度任何事件,尚未调 ...
分类:
其他好文 时间:
2019-01-02 15:01:59
阅读次数:
179
mysql 初级篇(三) 触发器、存储过程、游标 触发器triggerCreat trigger buggoodAfterInsertOn ordFor each rowBeginUpdate goods set num=num-new.much where id=new.gidEnd New in ...
分类:
数据库 时间:
2018-12-29 00:14:59
阅读次数:
288
1.范围日期的查询: select * from goods where g_time betweento_date('2018/12/26 10:01:59','yyyy-MM-dd hh:mi:ss') and to_date('2018/12/26 10:05:17',' yyyy-MM-dd ...
分类:
数据库 时间:
2018-12-27 19:03:15
阅读次数:
219
列如: select * from goods where g_time between to_date('2018/12/26 10:01:59','yyyy-MM-dd hh:mm:ss') and to_date('2018/12/26 10:05:17',' yyyy-MM-dd hh:mm ...
分类:
其他好文 时间:
2018-12-27 18:32:07
阅读次数:
172
一、异常出现的场景 Spring Cloud 服务A通过feign调用服务B;之前是好好的,但今天突然就不好了,抛以下异常 服务A中定义的feign接口如下: 二、解决方法: 在调用方接口方法,指定消费类型就可以了。 将 @PostMapping(value = "/goods/delivery/s ...
分类:
Web程序 时间:
2018-12-24 02:41:34
阅读次数:
1874
/// <summary> /// 盘古分词搜索 /// </summary> /// <param name="keyWords">关键字</param> [HttpGet] public IEnumerable<Goods> Search(string keyWord) { IList<stri ...
分类:
其他好文 时间:
2018-12-14 22:51:23
阅读次数:
201
1.python3 manage.py startapp goods 2.startapp users 3.启动django服务器 # make new migrationspython3 manage.py makemigrations # apply all migrationspython3 ...
分类:
移动开发 时间:
2018-12-11 00:34:58
阅读次数:
200
悲观锁:获取数据时对数据行锁定,其他事务要想获取锁,必须等原事务结束。 在mysql中如何添加锁: 查找df_goods_sku中id为12的货物信息,并拿到锁 这里要配置事务一起进行操作 当事务结束时,锁就会释放。 在django中如何加锁呢: 乐观锁:在查询数据的时候不会加锁,但是在更新是会进行 ...
分类:
其他好文 时间:
2018-12-10 19:38:27
阅读次数:
245
if (is_array($goods_ids) && !empty($goods_ids)){ $goods_ids = array_unique($goods_ids); $goods_ids = "'" . implode("','", $goods_ids) . "'"; // 拼接字符} ...
分类:
其他好文 时间:
2018-12-09 12:17:38
阅读次数:
150