绑定 开票信息

This commit is contained in:
wangw 2024-11-20 16:19:46 +08:00
parent 105671347a
commit f3cac2b5d5
2 changed files with 16 additions and 17 deletions

View File

@ -36,7 +36,6 @@ public class TbShopShareController {
private TbShopShareRecordService tbShopShareRecordService; private TbShopShareRecordService tbShopShareRecordService;
@PostMapping("byShare") @PostMapping("byShare")
@AnonymousPostMapping
@ApiOperation("分页查询") @ApiOperation("分页查询")
public ResponseEntity<Object> selectAllByShare(@RequestBody TbShopShareRecordQueryCriteria criteria) { public ResponseEntity<Object> selectAllByShare(@RequestBody TbShopShareRecordQueryCriteria criteria) {
return new ResponseEntity<>(tbShopShareRecordService.selectAllByShare(criteria), HttpStatus.OK); return new ResponseEntity<>(tbShopShareRecordService.selectAllByShare(criteria), HttpStatus.OK);

View File

@ -91,17 +91,17 @@ public class TbShopInfoServiceImpl implements TbShopInfoService {
@Override @Override
public JSONObject binding(BindingDto bindingDto) { public JSONObject binding(BindingDto bindingDto) {
// TbShopInfo tbShopInfo = tbShopInfoRepository.findById(bindingDto.getShopId()).orElseGet(null); TbShopInfo tbShopInfo = tbShopInfoRepository.findById(bindingDto.getShopId()).orElseGet(null);
// TbMerchantAccount account = merchantAccountRepository.findByAccount(tbShopInfo.getAccount()); TbMerchantAccount account = merchantAccountRepository.findByAccount(tbShopInfo.getAccount());
// if (org.apache.commons.lang3.StringUtils.isBlank(bindingDto.getAccount())) { if (org.apache.commons.lang3.StringUtils.isBlank(bindingDto.getAccount())) {
// if (tbShopInfo != null) { if (tbShopInfo != null) {
// if (org.apache.commons.lang3.StringUtils.isNotBlank(account.getBindAccount())) { if (org.apache.commons.lang3.StringUtils.isNotBlank(account.getBindAccount())) {
// bindingDto.setAccount(account.getBindAccount()); bindingDto.setAccount(account.getBindAccount());
// } else { } else {
// return null; return null;
// } }
// } }
// } }
Map<String, Object> param = new HashMap<>(); Map<String, Object> param = new HashMap<>();
//超掌柜生活-用户端 //超掌柜生活-用户端
param.put("account", bindingDto.getAccount()); param.put("account", bindingDto.getAccount());
@ -110,11 +110,11 @@ public class TbShopInfoServiceImpl implements TbShopInfoService {
JSONObject jsonObject = JSONObject.parseObject(result); JSONObject jsonObject = JSONObject.parseObject(result);
if (jsonObject.getInteger("code").equals(1)) { if (jsonObject.getInteger("code").equals(1)) {
JSONObject data = jsonObject.getJSONObject("data"); JSONObject data = jsonObject.getJSONObject("data");
// if (org.apache.commons.lang3.StringUtils.isNotBlank(bindingDto.getAccount())) { if (org.apache.commons.lang3.StringUtils.isNotBlank(bindingDto.getAccount())) {
// String bindAccount = data.getJSONObject("store").getString("account"); String bindAccount = data.getJSONObject("store").getString("account");
// account.setBindAccount(bindAccount); account.setBindAccount(bindAccount);
// merchantAccountRepository.save(account); merchantAccountRepository.save(account);
// } }
return data; return data;
} else { } else {
throw new BadRequestException(jsonObject.getString("msg")); throw new BadRequestException(jsonObject.getString("msg"));