| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- package com.malk.huagao.controller;
- import com.alibaba.fastjson.JSONObject;
- import com.malk.huagao.service.IKdYdCustomerService;
- import com.malk.huagao.service.IKdYdZpService;
- import com.malk.huagao.service.YdHuaGaoService;
- import com.malk.server.aliwork.YDConf;
- import com.malk.server.aliwork.YDParam;
- import com.malk.server.common.McR;
- import com.malk.service.aliwork.YDClient;
- import com.malk.utils.UtilMap;
- import org.slf4j.MDC;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.Map;
- /**
- * <p>
- * 前端控制器
- * </p>
- *
- * @author LQY
- * @since 2025-10-09
- */
- @RestController
- @RequestMapping("/hg")
- public class KdYdCustomerController {
- @Autowired
- private IKdYdCustomerService kdYdCustomerService;
- @Autowired
- private YdHuaGaoService ydHuaGaoService;
- @Autowired
- private IKdYdZpService kdYdZpService;
- @Autowired
- private YDClient ydClient;
- @PostMapping("/test30")
- McR test13(@RequestBody Map data) {
- MDC.put("MDC_KEY_PID","1003");
- // String ins = String.valueOf(data.get("formInstId"));
- //
- //
- //
- // ydClient.operateData(YDParam.builder()
- // .formInstanceId(ins)
- // .updateFormDataJson(JSONObject.toJSONString(UtilMap.map("numberField_mhirg0kz","156")))//xz04
- //// .updateFormDataJson(JSONObject.toJSONString(UtilMap.map(employ,id)))//xz04
- // .useLatestVersion(true)
- // .build(), YDConf.FORM_OPERATION.update);
- ydHuaGaoService.synckdYdMaterial();
- // ydHuaGaoService.synckdYdPayment();
- // ydHuaGaoService.syncKdYdReceivable();
- // kdYdZpService.insertkdYdZp(data);
- // ydHuaGaoService.synckdYdOutbound();
- return McR.success();
- }
- @PostMapping("/kdYdCustomer")
- McR insertCustomer(@RequestBody Map map) {
- kdYdCustomerService.insertCustomer(map);
- return McR.success();
- }
- }
|