|
@@ -845,4 +845,23 @@ public class WmDaAgentController {
|
|
|
|
|
|
return R.ok(wmDaAgentService.listByDept());
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * MAH支付-权限配置
|
|
|
+ *
|
|
|
+ * @param wmDaAgent 参数
|
|
|
+ * @return 结果
|
|
|
+ */
|
|
|
+ @PostMapping("/mah-settle-config")
|
|
|
+ public R<?> mahSettleConfig(@RequestBody WmDaAgent wmDaAgent) {
|
|
|
+ if (wmDaAgent.getId() == null || wmDaAgent.getMahSettleFlag() == null) {
|
|
|
+ return R.failed("必填参数不能为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ WmDaAgent update = new WmDaAgent();
|
|
|
+ update.setId(wmDaAgent.getId());
|
|
|
+ update.setMahSettleFlag(wmDaAgent.getMahSettleFlag());
|
|
|
+
|
|
|
+ return R.ok(wmDaAgentService.updateById(update));
|
|
|
+ }
|
|
|
}
|