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

Commit 8e1927ff authored by 胡佳晨's avatar 胡佳晨

增加拦截

parent cd1dd8b6
...@@ -119,6 +119,12 @@ public class GoblinZhengzaiServiceImpl implements IGoblinZhengzaiService { ...@@ -119,6 +119,12 @@ public class GoblinZhengzaiServiceImpl implements IGoblinZhengzaiService {
LinkedList<String> sqls = CollectionUtil.linkedListString(); LinkedList<String> sqls = CollectionUtil.linkedListString();
sqls.add(SqlMapping.get("goblin.self.market.insertRelation")); sqls.add(SqlMapping.get("goblin.self.market.insertRelation"));
LinkedList<Object[]> sqlsData = CollectionUtil.linkedListObjectArr(); LinkedList<Object[]> sqlsData = CollectionUtil.linkedListObjectArr();
List<GoblinStoreMarketIsConfigVo> isConfigVos = redisUtils.getStoreMarketIsConfig(params.getSelfMarketId(), params.getStoreId());
for (GoblinStoreMarketIsConfigVo item:isConfigVos) {
if(item.getSpuId().equals(params.getSpuId())){
return ResponseDto.failure("该商品已经配置");
}
}
for (GoblinStoreZhengzaiItemParam item : params.getGoblinStoreZhengzaiItemParams()) { for (GoblinStoreZhengzaiItemParam item : params.getGoblinStoreZhengzaiItemParams()) {
String zhengzaiId = IDGenerator.nextMilliId2(); String zhengzaiId = IDGenerator.nextMilliId2();
GoblinMarketingZhengzai bean = GoblinMarketingZhengzai.getNew(); GoblinMarketingZhengzai bean = GoblinMarketingZhengzai.getNew();
......
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