修改重复问题

master
whb 11 months ago
parent d4a3340972
commit bb879bca0e

@ -31,5 +31,5 @@ public interface StuSupplyOnchainMapper {
int updateByPrimaryKey(StuSupplyOnchain record);
StuSupplyOnchain selectByTime(String userId);
StuSupplyOnchain selectByTimeSupply(String userId);
}

@ -215,7 +215,7 @@ public class StuDigitalDebtVoucherServiceImpl implements StuDigitalDebtVoucherSe
//追加在上一个区块链后面
StuSupplyOnchain stuBlockOnChain1 = stuBlockOnChainMapper.selectByTime(dto.getUserId());
StuSupplyOnchain stuBlockOnChain1 = stuBlockOnChainMapper.selectByTimeSupply(dto.getUserId());
StuSupplyOnchain onChain = stuBlockOnChainMapper.selectByPrimaryKey(stuBlockOnChain1.getId());
Integer sequence = onChain.getSequence();

@ -138,7 +138,7 @@ public class StuEncryptOnChainServiceImpl implements StuEncryptOnChainService {
//追加在上一个区块链后面
StuSupplyOnchain stuBlockOnChain1 = stuBlockOnChainMapper.selectByTime(dto.getUserId());
StuSupplyOnchain stuBlockOnChain1 = stuBlockOnChainMapper.selectByTimeSupply(dto.getUserId());
StuSupplyOnchain onChain = stuBlockOnChainMapper.selectByPrimaryKey(stuBlockOnChain1.getId());
@ -157,7 +157,7 @@ public class StuEncryptOnChainServiceImpl implements StuEncryptOnChainService {
} else {
//追加在上一个区块链后面
StuSupplyOnchain stuBlockOnChain1 = stuBlockOnChainMapper.selectByTime(dto.getUserId());
StuSupplyOnchain stuBlockOnChain1 = stuBlockOnChainMapper.selectByTimeSupply(dto.getUserId());
StuSupplyOnchain onChain = stuBlockOnChainMapper.selectByPrimaryKey(stuBlockOnChain1.getId());

@ -201,7 +201,7 @@ public class StuSignFactorContractServiceImpl implements StuSignFactorContractSe
if (!blockOnChainList.isEmpty()){
//追加在上一个区块链后面
StuSupplyOnchain stuBlockOnChain1 = stuBlockOnChainMapper.selectByTime(dto.getUserId());
StuSupplyOnchain stuBlockOnChain1 = stuBlockOnChainMapper.selectByTimeSupply(dto.getUserId());
StuSupplyOnchain onChain = stuBlockOnChainMapper.selectByPrimaryKey(stuBlockOnChain1.getId());
Integer sequence = onChain.getSequence();

@ -306,7 +306,7 @@
<select id="selectByTime" resultType="com.sztzjy.block_finance.entity.StuSupplyOnchain">
<select id="selectByTimeSupply" resultType="com.sztzjy.block_finance.entity.StuSupplyOnchain">
select id, chain_name, block_hash, chain_time, pre_block_hash, buy_data, tax_number, sequence,
user_id, plan_number, block_index from stu_block_onchain order by chain_time desc limit 1;

Loading…
Cancel
Save