zjh
2024-06-03 54180822617097359aa63b48a7cbe3bf1b079caa
ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjOrderController.java
@@ -59,6 +59,7 @@
import com.ltkj.system.service.ISysConfigService;
import com.ltkj.system.service.ISysDeptService;
import com.ltkj.system.service.ISysUserService;
import com.ltkj.web.controller.his.HisApiMethod;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
@@ -169,6 +170,9 @@
    private TjvLtkjvtjpatService tjvLtkjvtjpatService;
    @Autowired
    private ThreadPoolConfig threadPoolConfig;
    @Autowired
    private HisApiMethod hisApiMethod;
    /**
@@ -906,6 +910,7 @@
        tjOrder.setStatus(TjConstants.TJ_BEGIN);
        tjOrder.setCardId(tjCustomer.getCardId());
        if (tjOrderService.save(tjOrder)) {
            //保存收货地址
            if ("2".equals(tjOrder.getGetType())) {
                final TjReportGetAddress address = tjOrder.getAddAddress();
@@ -1015,6 +1020,8 @@
//            }
            tjCustomer.setCardId("0");
            tjCustomerService.updateById(tjCustomer);
            //调用his接口
            hisApiMethod.HisApiMethods(tjCustomer,tjOrder.getOrderId());
            return AjaxResult.success(tjNumber);
        }
        return AjaxResult.error();