瀏覽代碼

添加机器所属商户

xubh 5 年之前
父節點
當前提交
e55408587f
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/main/java/com/minpay/mt/machine/action/MachineManageAction.java

+ 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);