Commit d9cc4eb1 authored by wanghang's avatar wanghang

导入数据增加编码填写

parent de0e8818
package com.huigou.topsun.base.dictionary;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
public class GlobalCode {
private static AtomicReference<String> str = new AtomicReference<>("");
public static void set(String newValue) {
str.set(newValue);
}
public static String get() {
return str.get();
}
}
package com.huigou.topsun.base.dictionary.controller;
import com.huigou.topsun.base.dictionary.GlobalCode;
import com.huigou.uasp.annotation.ControllerMapping;
import com.huigou.uasp.client.CommonController;
import com.huigou.util.SDO;
import org.springframework.stereotype.Controller;
@Controller
@ControllerMapping("/globalCode")
public class GlobalCodeController extends CommonController {
public String revampGlobalCode(){
SDO sdo = this.getSDO();
String code = sdo.getString("code");
GlobalCode.set(code);
return success();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment