|
|
@ -10,6 +10,7 @@ import com.dxhy.common.utils.R; |
|
|
|
import com.dxhy.extend.model.SNSAPObject; |
|
|
|
import com.dxhy.extend.model.SNSAPObject; |
|
|
|
import com.dxhy.extend.service.bb.VouncherSyncService; |
|
|
|
import com.dxhy.extend.service.bb.VouncherSyncService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.http.ResponseEntity; |
|
|
|
import org.springframework.http.ResponseEntity; |
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
@ -29,6 +30,8 @@ import java.util.*; |
|
|
|
public class VouncherSyncController { |
|
|
|
public class VouncherSyncController { |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private VouncherSyncService vouncherSyncService; |
|
|
|
private VouncherSyncService vouncherSyncService; |
|
|
|
|
|
|
|
@Value("${sdny.record.environment}") |
|
|
|
|
|
|
|
private String environment; |
|
|
|
@PostMapping("getSapData") |
|
|
|
@PostMapping("getSapData") |
|
|
|
public Object getSapData(@RequestBody Map<String,String> map){ |
|
|
|
public Object getSapData(@RequestBody Map<String,String> map){ |
|
|
|
//是否全量 X为全量推送,空为增量推送。
|
|
|
|
//是否全量 X为全量推送,空为增量推送。
|
|
|
@ -70,7 +73,7 @@ public class VouncherSyncController { |
|
|
|
// object.setZFILED2("");
|
|
|
|
// object.setZFILED2("");
|
|
|
|
// object.setZFILED3("");
|
|
|
|
// object.setZFILED3("");
|
|
|
|
// object.setZFILED4("");
|
|
|
|
// object.setZFILED4("");
|
|
|
|
object.setZFILED5("200"); |
|
|
|
object.setZFILED5(environment); |
|
|
|
Map<String,String> requestMap = new HashMap<>(); |
|
|
|
Map<String,String> requestMap = new HashMap<>(); |
|
|
|
List<Object> list = new ArrayList<>(); |
|
|
|
List<Object> list = new ArrayList<>(); |
|
|
|
requestMap.put("ZGSDM",str); |
|
|
|
requestMap.put("ZGSDM",str); |
|
|
|