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

Commit 525b5fe2 authored by zhanggb's avatar zhanggb

~api:店铺管理:店铺ERP配置编辑;

parent fc1cbbd3
......@@ -331,7 +331,7 @@ public class GoblinStoreMgtController {
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "appSecret", value = "ERP店铺appSecret"),
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "shopNo", value = "ERP店铺shopNo"),
})
@GetMapping(value = {"erpConfig/edit"})
@PostMapping(value = {"erpConfig/edit"})
public ResponseDto<Object> erpConfigEdit(@NotNull(message = "ERP店铺sid不能为空") @RequestParam String sid,
@NotNull(message = "ERP店铺名称appKey不能为空") @RequestParam String appKey,
@NotNull(message = "ERP店铺appSecret不能为空") @RequestParam String appSecret,
......@@ -342,6 +342,7 @@ public class GoblinStoreMgtController {
return ResponseDto.failure(ErrorMapping.get("149002"));
}
GoblinStoreErpConfigVo storeErpConfigVo = goblinRedisUtils.getStoreErpConfigVoByStoreId(storeId);
storeErpConfigVo = null == storeErpConfigVo ? storeErpConfigVo.getNew() : storeErpConfigVo;
log.info("店铺管理:店铺ERP配置:编辑[UID:{},BEF:{}]", currentUid, JsonUtils.toJson(storeErpConfigVo));
storeErpConfigVo.setStoreId(storeId);
storeErpConfigVo.setSid(sid);
......
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