Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
57ee976fc8
4 files changed
+13
-9
No files matched your search
+6
-6
@@ -113,10 +113,10 @@ public class HardSpuServiceImpl extends ServiceImpl<HardSpuMapper, HardSpuEntity
|
||||
if (ObjectUtil.equals(entity.getIsDefault(), YesNoEnum.NO.getCode())) {
|
||||
return entity.getId();
|
||||
}
|
||||
if (ObjectUtil.isEmpty(entity.getKsSkuId())) {
|
||||
getSelf().submitKsSpu(spuDetail);
|
||||
}
|
||||
if (ObjectUtil.notEqual(spuDetail.getStatus(), HardKsCheckStatusEnum.CHECK_DONE.getType())) {
|
||||
if (ObjectUtil.notEqual(spuDetail.getKsStatus(), HardKsCheckStatusEnum.CHECK_DONE.getType())) {
|
||||
if (ObjectUtil.isEmpty(entity.getKsSkuId())) {
|
||||
getSelf().submitKsSpu(spuDetail);
|
||||
}
|
||||
getSelf().editKsSpu(spuDetail);
|
||||
}
|
||||
return entity.getId();
|
||||
@@ -473,7 +473,7 @@ public class HardSpuServiceImpl extends ServiceImpl<HardSpuMapper, HardSpuEntity
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void submitKsSpu(HardSpuEntity entity) {
|
||||
String pic = entity.getPic();
|
||||
pic = "https://nasa-voyager.oss-cn-beijing.aliyuncs.com/release/merchant_sku_img/watermark/202412021517-173bee3f2637499cb6b46e9b23d286c5.jpg";
|
||||
// pic = "https://nasa-voyager.oss-cn-beijing.aliyuncs.com/release/merchant_sku_img/watermark/202412021517-173bee3f2637499cb6b46e9b23d286c5.jpg";
|
||||
List<String> picList = Arrays.asList(pic.split(","));
|
||||
String imageBaseUrl = ParamResolver.getStr("IMAGE_BASE_URL");
|
||||
if (ObjectUtil.isEmpty(imageBaseUrl)) throw new RuntimeException("请配置图片基础路径");
|
||||
@@ -509,7 +509,7 @@ public class HardSpuServiceImpl extends ServiceImpl<HardSpuMapper, HardSpuEntity
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void editKsSpu(HardSpuEntity entity) {
|
||||
String pic = entity.getPic();
|
||||
pic = "https://nasa-voyager.oss-cn-beijing.aliyuncs.com/release/merchant_sku_img/watermark/202412021517-173bee3f2637499cb6b46e9b23d286c5.jpg";
|
||||
// pic = "https://nasa-voyager.oss-cn-beijing.aliyuncs.com/release/merchant_sku_img/watermark/202412021517-173bee3f2637499cb6b46e9b23d286c5.jpg";
|
||||
List<String> picList = Arrays.asList(pic.split(","));
|
||||
String imageBaseUrl = ParamResolver.getStr("IMAGE_BASE_URL");
|
||||
if (ObjectUtil.isEmpty(imageBaseUrl)) throw new RuntimeException("请配置图片基础路径");
|
||||
|
||||
+5
-1
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.bsd.pjcloud.common.core.util.R;
|
||||
import com.bsd.pjcloud.common.security.annotation.Inner;
|
||||
import com.bsd.pjcloud.common.security.service.PjcloudUser;
|
||||
import com.bsd.pjcloud.common.security.util.SecurityUtils;
|
||||
import com.bsd.pjcloud.wallet.api.constant.WalletCodeBizEnum;
|
||||
import com.bsd.pjcloud.wallet.api.dto.WalletCodeUseDto;
|
||||
import com.bsd.pjcloud.wallet.api.entity.WalletCodeUseEntity;
|
||||
@@ -86,9 +88,11 @@ public class WalletCodeUseController {
|
||||
/* ************************************* end 远程调用 end ************************************* */
|
||||
|
||||
/* ************************************* start app start ************************************* */
|
||||
@Operation(summary = "app二维码列表", description = "app二维码列表")
|
||||
@Operation(summary = "app二维码列表(查询自己的用户)", description = "app二维码列表(查询自己的用户)")
|
||||
@GetMapping("/app/code-list")
|
||||
public R appCodeList(@ParameterObject Page page, @ParameterObject WalletCodeUseDto dto) {
|
||||
PjcloudUser user = SecurityUtils.getUser();
|
||||
dto.setUserId(user.getId());
|
||||
return R.ok(walletCodeUseService.pageJoin(page, dto));
|
||||
}
|
||||
/* ************************************* end app end ************************************* */
|
||||
|
||||
+1
-1
@@ -74,7 +74,7 @@ public class WalletForeignController {
|
||||
@Operation(summary = "app申请外来人员电子餐券表", description = "app申请外来人员电子餐券表")
|
||||
@SysLog("app申请外来人员电子餐券")
|
||||
@PostMapping("/app/apply")
|
||||
@Idempotent(expireTime = 10, info = "正在申请中,请勿重复操作")
|
||||
@Idempotent(expireTime = 3, info = "正在申请中,请勿重复操作")
|
||||
public R appSave(@RequestBody WalletForeignDto dto) {
|
||||
PjcloudUser loginUser = SecurityUtils.getUser();
|
||||
dto.setUserId(loginUser.getId());
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ public class WalletStrideController {
|
||||
@Operation(summary = "app申请", description = "app申请")
|
||||
@SysLog("app申请跨单位就餐")
|
||||
@PostMapping("/app/apply")
|
||||
@Idempotent(expireTime = 10, info = "正在申请中,请勿重复操作")
|
||||
@Idempotent(expireTime = 3, info = "正在申请中,请勿重复操作")
|
||||
public R appSave(@RequestBody WalletStrideDto dto) {
|
||||
PjcloudUser loginUser = SecurityUtils.getUser();
|
||||
dto.setUserId(loginUser.getId());
|
||||
|
||||
Reference in new issue
Block a user