记得上下班打卡 | git大法好,push需谨慎

Commit 4ea36fda authored by 胡佳晨's avatar 胡佳晨

提交 sql

parent 168d63bb
...@@ -60,6 +60,7 @@ public class GoblinStorePurchasingServiceImpl implements IGoblinStorePurchasingS ...@@ -60,6 +60,7 @@ public class GoblinStorePurchasingServiceImpl implements IGoblinStorePurchasingS
case 0: case 0:
case 7: case 7:
bean.setStatus(status); bean.setStatus(status);
bean.setDelFlag(0);
GoblinStoreMarketVo vo = GoblinStoreMarketVo.getNew(); GoblinStoreMarketVo vo = GoblinStoreMarketVo.getNew();
vo.setStatus(status); vo.setStatus(status);
goblinMongoUtils.updateStoreMarket(marketId, storeId, vo); goblinMongoUtils.updateStoreMarket(marketId, storeId, vo);
...@@ -125,8 +126,10 @@ public class GoblinStorePurchasingServiceImpl implements IGoblinStorePurchasingS ...@@ -125,8 +126,10 @@ public class GoblinStorePurchasingServiceImpl implements IGoblinStorePurchasingS
bean.setIsPre(isPre); bean.setIsPre(isPre);
if (isPre == 1) { if (isPre == 1) {
bean.setPreTime(LocalDateTime.parse(preTime, DTF_YMD_HMS)); bean.setPreTime(LocalDateTime.parse(preTime, DTF_YMD_HMS));
}else{
bean.setPreTime(null);
} }
bean.setCreatedAt(LocalDateTime.now()); bean.setUpdatedAt(LocalDateTime.now());
GoblinStoreMarketVo vo = GoblinStoreMarketVo.getNew(); GoblinStoreMarketVo vo = GoblinStoreMarketVo.getNew();
BeanUtils.copyProperties(bean, vo); BeanUtils.copyProperties(bean, vo);
......
goblin.store.market.insert=INSERT INTO goblin_store_marketing (`store_market_id`,`name`,`type`,`status`,`store_id`,`start_time`,`end_time`,`del_flag`,`is_pre`,`pre_time`,`created_at`) VALUES (?,?,?,?,?,?,?,?,?,?,?)
goblin.store.market.status=UPDATE goblin_store_marketing SET status=? , del_flag=? WHERE store_market_id =? and store_id =?
goblin.store.market.update=UPDATE goblin_store_marketing SET name=?,type=?,status=?,store_id=?,describes=?,start_time=?,end_time=?,del_flag=?,is_pre=?,pre_time=?,updated_at=? WHERE store_market_id =? and store_id =?
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment