关务推送bug;
This commit is contained in:
+4
-2
@@ -923,8 +923,10 @@ public class PickingOrderApplicationService {
|
||||
CloseableHttpResponse response = httpClient.execute(httpPost);
|
||||
String responseString = EntityUtils.toString(response.getEntity());
|
||||
gwLogDTO.setResponseBody(responseString);
|
||||
|
||||
if (response.getStatusLine().getStatusCode() == 200) {
|
||||
// 直接转Map<String, Object>
|
||||
Map<String, Object> map = JSON.parseObject(responseString);
|
||||
Integer code = (Integer) map.get("code");
|
||||
if (response.getStatusLine().getStatusCode() == 200&&code==200) {
|
||||
gwLogDTO.setStatus(2);
|
||||
updatePushStatus(id, 3, new Date(), pushBy,pushByName);
|
||||
successCount++;
|
||||
|
||||
+4
-1
@@ -2405,8 +2405,11 @@ public class StockInOrderApplicationService {
|
||||
CloseableHttpResponse response = httpClient.execute(httpPost);
|
||||
String responseString = EntityUtils.toString(response.getEntity());
|
||||
gwLogDTO.setResponseBody(responseString);
|
||||
// 直接转Map<String, Object>
|
||||
Map<String, Object> map = JSON.parseObject(responseString);
|
||||
Integer code = (Integer) map.get("code");
|
||||
|
||||
if (response.getStatusLine().getStatusCode() == 200) {
|
||||
if (response.getStatusLine().getStatusCode() == 200&&code == 200) {
|
||||
gwLogDTO.setStatus(2);
|
||||
updatePushStatus(id, 3, new Date(), pushBy,pushByName);
|
||||
successCount++;
|
||||
|
||||
+4
-2
@@ -1682,8 +1682,10 @@ public class StockOutOrderApplicationService {
|
||||
CloseableHttpResponse response = httpClient.execute(httpPost);
|
||||
String responseString = EntityUtils.toString(response.getEntity());
|
||||
gwLogDTO.setResponseBody(responseString);
|
||||
|
||||
if (response.getStatusLine().getStatusCode() == 200) {
|
||||
// 直接转Map<String, Object>
|
||||
Map<String, Object> map = JSON.parseObject(responseString);
|
||||
Integer code = (Integer) map.get("code");
|
||||
if (response.getStatusLine().getStatusCode() == 200&&code==200) {
|
||||
gwLogDTO.setStatus(2);
|
||||
updatePushStatus(id, 3, new Date(), pushBy,pushByName);
|
||||
successCount++;
|
||||
|
||||
+4
-2
@@ -2859,8 +2859,10 @@ public class StockShelfOrderApplicationService {
|
||||
CloseableHttpResponse response = httpClient.execute(httpPost);
|
||||
String responseString = EntityUtils.toString(response.getEntity());
|
||||
gwLogDTO.setResponseBody(responseString);
|
||||
|
||||
if (response.getStatusLine().getStatusCode() == 200) {
|
||||
// 直接转Map<String, Object>
|
||||
Map<String, Object> map = JSON.parseObject(responseString);
|
||||
Integer code = (Integer) map.get("code");
|
||||
if (response.getStatusLine().getStatusCode() == 200&&code == 200) {
|
||||
gwLogDTO.setStatus(2);
|
||||
updatePushStatus(id, 3, new Date(), pushBy,pushByName);
|
||||
successCount++;
|
||||
|
||||
+9
@@ -410,4 +410,13 @@ public class StockInOrderDO extends BaseVOEntity {
|
||||
|
||||
@ApiModelProperty("推送人姓名")
|
||||
private String pushByName;
|
||||
@ApiModelProperty(value = "推送时间起")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date pushTimeStart;
|
||||
|
||||
@ApiModelProperty(value = "推送时间止")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date pushTimeEnd;
|
||||
}
|
||||
@@ -408,4 +408,13 @@ public class StockInOrderDTO extends StockInOrderBaseDTO {
|
||||
|
||||
@ApiModelProperty("推送人姓名")
|
||||
private String pushByName;
|
||||
@ApiModelProperty(value = "推送时间起")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date pushTimeStart;
|
||||
|
||||
@ApiModelProperty(value = "推送时间止")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date pushTimeEnd;
|
||||
}
|
||||
Reference in New Issue
Block a user