|
|
|
|
@ -51,10 +51,12 @@ import org.springblade.system.feign.IDictClient; |
|
|
|
|
import org.springblade.system.feign.ISysClient; |
|
|
|
|
import org.springblade.system.feign.IUserClient; |
|
|
|
|
import org.springblade.system.pojo.entity.UserInfo; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
|
import org.springframework.cloud.context.config.annotation.RefreshScope; |
|
|
|
|
import org.springframework.http.HttpEntity; |
|
|
|
|
import org.springframework.http.ResponseEntity; |
|
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
@ -71,15 +73,14 @@ import org.springframework.http.MediaType; |
|
|
|
|
*/ |
|
|
|
|
@Service |
|
|
|
|
@Data |
|
|
|
|
@AllArgsConstructor |
|
|
|
|
//@AllArgsConstructor
|
|
|
|
|
@EqualsAndHashCode(callSuper = true) |
|
|
|
|
@Slf4j |
|
|
|
|
//@RefreshScope
|
|
|
|
|
public class ReviewSheetServiceImpl extends EnBaseServiceImpl<ReviewSheetMapper, ReviewSheet> |
|
|
|
|
implements IReviewSheetService { |
|
|
|
|
// @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
|
|
|
|
|
// @Value("${request.newErp.url}")
|
|
|
|
|
// private String newErpUrl;
|
|
|
|
|
@Value("${request.newErp.url}") |
|
|
|
|
private String newErpUrl; |
|
|
|
|
@Resource |
|
|
|
|
private IInspectionTaskService taskService; |
|
|
|
|
@Resource |
|
|
|
|
@ -433,11 +434,11 @@ public class ReviewSheetServiceImpl extends EnBaseServiceImpl<ReviewSheetMapper, |
|
|
|
|
ResponseEntity<JSONObject> responseEntity; |
|
|
|
|
JSONObject responseBody; |
|
|
|
|
try { |
|
|
|
|
responseEntity = httpClientTemplate.postForEntity("http://192.168.119.68:10113" + |
|
|
|
|
"/api/mms/qms/qmsrepairapply/qmsRepairApplyRest/saveQmsRepairApply/v1", entity, JSONObject.class); |
|
|
|
|
|
|
|
|
|
// responseEntity = httpClientTemplate.postForEntity(newErpUrl +
|
|
|
|
|
// responseEntity = httpClientTemplate.postForEntity("http://192.168.119.68:10113" +
|
|
|
|
|
// "/api/mms/qms/qmsrepairapply/qmsRepairApplyRest/saveQmsRepairApply/v1", entity, JSONObject.class);
|
|
|
|
|
|
|
|
|
|
responseEntity = httpClientTemplate.postForEntity(newErpUrl + |
|
|
|
|
"/api/mms/qms/qmsrepairapply/qmsRepairApplyRest/saveQmsRepairApply/v1", entity, JSONObject.class); |
|
|
|
|
JSONObject result = responseEntity.getBody(); |
|
|
|
|
|
|
|
|
|
responseBody = result.getJSONObject("responseBody"); |
|
|
|
|
|