Bladeren bron

新增账户体系

xubh 5 jaren geleden
bovenliggende
commit
345dbea9c9

+ 2 - 1
src/main/java/com/minpay/common/pay/ShouhuoPay.java

@@ -449,7 +449,8 @@ public class ShouhuoPay implements IMINAction{
 			// 充值
 			else if("02".equals(orderInf.getProType())) {
 				// 00充值(CZ)
-				service.modfiyAccount(orderInf.getChannel(), orderInf.getPersonId(), "01", amt, "00", payMentList.get(0).getFlowno(), "充值");
+				//todo 添加机器编号
+				service.modfiyAccount(orderInf.getChannel(), orderInf.getPersonId(), "01", amt, "00", payMentList.get(0).getFlowno(), "充值","");
 			}
 		}
 	}

+ 1 - 1
src/main/java/com/minpay/common/service/IAccountService.java

@@ -30,7 +30,7 @@ public interface IAccountService extends IMINLocalService {
 	 * @throws BusinessCodeException
 	 * @throws MINBusinessException
 	 */
-	public void modfiyAccount(String channel, String userId, String accType, String amt, String transType, String payFlowNo, String remrk) throws BusinessCodeException, MINBusinessException;
+	public void modfiyAccount(String channel, String userId, String accType, String amt, String transType, String payFlowNo, String remrk,String equipmentId) throws BusinessCodeException, MINBusinessException;
 	
 	/**
 	 * 动账 --- 只改余额,可用余额不改变

+ 2 - 2
src/main/java/com/minpay/common/service/impl/AccountServiceImpl.java

@@ -78,11 +78,11 @@ public class AccountServiceImpl implements IAccountService {
 	 */
 	@Override
 	public void modfiyAccount(String channel, String userId, String accType,
-			String amt, String transType, String payFlowNo, String remrk)
+			String amt, String transType, String payFlowNo, String remrk,String equipmentId )
 			throws BusinessCodeException, MINBusinessException {
 		
 		VmAccountExample accExp = new VmAccountExample();
-		accExp.createCriteria().andChannelEqualTo(channel).andUsridEqualTo(userId).andTypeEqualTo(accType);
+		accExp.createCriteria().andChannelEqualTo(channel).andUsridEqualTo(userId).andTypeEqualTo(accType).andEquipmentIdEqualTo(equipmentId);
 		
 		List<VmAccount> accList = Service.lookup(IMINDataBaseService.class).getMybatisMapper(VmAccountMapper.class).selectByExample(accExp);
 		if(accList == null || accList.size() == 0) {