|
@@ -31,7 +31,8 @@ import com.uas.search.b2b.model.SPage;
|
|
|
import com.uas.search.b2b.model.Sort;
|
|
import com.uas.search.b2b.model.Sort;
|
|
|
import com.uas.search.b2b.model.Sort.Type;
|
|
import com.uas.search.b2b.model.Sort.Type;
|
|
|
import com.uas.search.b2b.util.SearchConstants;
|
|
import com.uas.search.b2b.util.SearchConstants;
|
|
|
-import org.apache.log4j.Logger;
|
|
|
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
import org.springframework.http.ResponseEntity;
|
|
@@ -83,7 +84,7 @@ public class SaleInquiryController {
|
|
|
|
|
|
|
|
private final static UsageBufferedLogger logger = BufferedLoggerManager.getLogger(UsageBufferedLogger.class);
|
|
private final static UsageBufferedLogger logger = BufferedLoggerManager.getLogger(UsageBufferedLogger.class);
|
|
|
|
|
|
|
|
- private final static Logger LOGGER_INFO = Logger.getLogger(SaleInquiryController.class);
|
|
|
|
|
|
|
+ private final static Logger LOGGER_INFO = LoggerFactory.getLogger(SaleInquiryController.class);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 询价种类
|
|
* 询价种类
|
|
@@ -595,7 +596,6 @@ public class SaleInquiryController {
|
|
|
public ResponseEntity<String> replyInquiryItem(@RequestBody String json,
|
|
public ResponseEntity<String> replyInquiryItem(@RequestBody String json,
|
|
|
@PathVariable("inquiryItemId") Long inquiryItemId, String token) {
|
|
@PathVariable("inquiryItemId") Long inquiryItemId, String token) {
|
|
|
PurchaseInquiryItem item = FlexJsonUtils.fromJson(json, PurchaseInquiryItem.class);
|
|
PurchaseInquiryItem item = FlexJsonUtils.fromJson(json, PurchaseInquiryItem.class);
|
|
|
- LOGGER_INFO.info(item.getReplies());
|
|
|
|
|
if (item.getReplies().size() == 1) {
|
|
if (item.getReplies().size() == 1) {
|
|
|
item.getReplies().forEach(reply -> {
|
|
item.getReplies().forEach(reply -> {
|
|
|
if (null != reply.getLapQty() && reply.getLapQty() > 0) {
|
|
if (null != reply.getLapQty() && reply.getLapQty() > 0) {
|
|
@@ -625,7 +625,6 @@ public class SaleInquiryController {
|
|
|
public ResponseEntity<String> saveInquiryItem(@RequestBody String json,
|
|
public ResponseEntity<String> saveInquiryItem(@RequestBody String json,
|
|
|
@PathVariable("inquiryItemId") Long inquiryItemId, String token) {
|
|
@PathVariable("inquiryItemId") Long inquiryItemId, String token) {
|
|
|
PurchaseInquiryItem item = FlexJsonUtils.fromJson(json, PurchaseInquiryItem.class);
|
|
PurchaseInquiryItem item = FlexJsonUtils.fromJson(json, PurchaseInquiryItem.class);
|
|
|
- LOGGER_INFO.info(item.getReplies());
|
|
|
|
|
if (item.getReplies().size() == 1) {
|
|
if (item.getReplies().size() == 1) {
|
|
|
item.getReplies().forEach(reply -> {
|
|
item.getReplies().forEach(reply -> {
|
|
|
if (null != reply.getLapQty() && reply.getLapQty() > 0) {
|
|
if (null != reply.getLapQty() && reply.getLapQty() > 0) {
|