|
@@ -2,6 +2,7 @@ package modules.swappath;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.jfinal.aop.Before;
|
|
import com.jfinal.aop.Before;
|
|
|
|
|
+import com.jfinal.aop.Inject;
|
|
|
import com.jfinal.core.Controller;
|
|
import com.jfinal.core.Controller;
|
|
|
import com.jfinal.kit.StrKit;
|
|
import com.jfinal.kit.StrKit;
|
|
|
import common.model.SwapPath;
|
|
import common.model.SwapPath;
|
|
@@ -9,7 +10,8 @@ import common.utils.http.MyRet;
|
|
|
|
|
|
|
|
@Before(common.interceptor.AuthInterceptor.class)
|
|
@Before(common.interceptor.AuthInterceptor.class)
|
|
|
public class SwapPathController extends Controller {
|
|
public class SwapPathController extends Controller {
|
|
|
- SwapPathService service = new SwapPathService();
|
|
|
|
|
|
|
+ @Inject
|
|
|
|
|
+ SwapPathService service;
|
|
|
|
|
|
|
|
public void appendOrUpdate() {
|
|
public void appendOrUpdate() {
|
|
|
if (StrKit.isBlank(getPara("sum_value"))
|
|
if (StrKit.isBlank(getPara("sum_value"))
|