Browse Source

添加机器所属商户

xubh 5 years ago
parent
commit
e55408587f

+ 6 - 1
src/main/java/com/minpay/mt/machine/action/MachineManageAction.java

@@ -150,7 +150,12 @@ public class MachineManageAction implements IMINAction {
                 .getSystemProperties().get("WALLET_TO_METTING_PASSWORD_KEY").getKey();
         Map<String, String> map = new HashMap<String, String>();
         map.put("id", machineId);
-        map.put("mchntId", mchntId);
+        if(Constant.DEFAULT_INSTITUTIONS.equals( user.getBranchId())){
+            map.put("mchntId", mchntId);
+        }else{
+            map.put("mchntId",  user.getBranchId());
+        }
+
         map.put("equType", equType);
         map.put("machineName", machineName);
         map.put("createUser", createUser);