Commit aab021b6 authored by shiyu's avatar shiyu

数据同步完成

parent 87d39627
......@@ -110,7 +110,7 @@ public class ShiroConfig {
filterChainDefinitionMap.put("/admin/auth/index", "anon");
filterChainDefinitionMap.put("/admin/auth/403", "anon");
filterChainDefinitionMap.put("/actuator/health", "anon");
filterChainDefinitionMap.put("/admin/item/syn", "anon");
// filterChainDefinitionMap.put("/admin/item/syn", "anon");
// filterChainDefinitionMap.put("/admin/**", "anon");
filterChainDefinitionMap.put("/admin/**", "authc");
......
......@@ -74,13 +74,11 @@ public class AdminKeywordController {
@PostMapping("/create")
public Object create(@RequestBody Keyword keywords) {
logger.info("【请求开始】操作人:[" + AuthSupport.userName()+ "] 商场管理->关键词->添加,请求参数:{}", JSONObject.toJSONString(keywords));
Object error = validate(keywords);
if (error != null) {
return error;
}
keywordService.add(keywords);
logger.info("【请求结束】商场管理->关键词->添加,响应结果:{}", JSONObject.toJSONString(keywords));
return ResponseUtil.ok(keywords);
}
......
......@@ -49,7 +49,7 @@ public class ItemController {
return result;
}
@GetMapping("/syn")
// @GetMapping("/syn")
public void syn() {
synCoinJob.execute();
}
......
......@@ -198,7 +198,7 @@
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into item_temp (`name`, cid, is_on_sale,
insert into item (`name`, cid, is_on_sale,
is_std, sort, share_image,
top_image, price, create_time,
source_type, update_time, is_deleted,
......
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