|
@@ -1,6 +1,8 @@
|
|
|
package com.dgtly.order.controller;
|
|
package com.dgtly.order.controller;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
+import com.dgtly.sync.service.HanaOrderComponent;
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
@@ -34,6 +36,9 @@ public class CustomersStartController extends BaseController
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ICustomersStartService customersStartService;
|
|
private ICustomersStartService customersStartService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private HanaOrderComponent hanaOrderComponent;
|
|
|
|
|
+
|
|
|
@RequiresPermissions("order:customersStart:view")
|
|
@RequiresPermissions("order:customersStart:view")
|
|
|
@GetMapping()
|
|
@GetMapping()
|
|
|
public String customersStart()
|
|
public String customersStart()
|
|
@@ -90,6 +95,20 @@ public class CustomersStartController extends BaseController
|
|
|
return toAjax(customersStartService.addCustomersStart(ids));
|
|
return toAjax(customersStartService.addCustomersStart(ids));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 经销商解冻查询接口
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/addFreeCustomer")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public String addFreeCustomer(String customer) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ hanaOrderComponent.hanaFreezeCustomer(customer);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
|
+ }
|
|
|
|
|
+ return "";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 修改经销商启用
|
|
* 修改经销商启用
|
|
|
*/
|
|
*/
|