Merge branch 'dev' into test

pro
wj 2 years ago
commit 596f11a597

@ -49,6 +49,7 @@ import com.glxp.api.util.*;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.session.ExecutorType; import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session.SqlSessionFactory;
@ -74,6 +75,7 @@ import java.util.List;
@RestController @RestController
@Api(tags = "同步下载相关") @Api(tags = "同步下载相关")
@RequiredArgsConstructor @RequiredArgsConstructor
@Slf4j
public class SpsSyncDownloadController { public class SpsSyncDownloadController {
@Resource @Resource
@ -341,10 +343,10 @@ public class SpsSyncDownloadController {
JSONObject obj = JSONUtil.parseObj(upLoadRequest.getData()); JSONObject obj = JSONUtil.parseObj(upLoadRequest.getData());
switch (upLoadRequest.getExportType()) { switch (upLoadRequest.getExportType()) {
case BASIC_DATA: case BASIC_DATA:
saveUploadBasicData(JSONUtil.toBean(obj, SpsSyncBasicDataResponse.class)); // saveUploadBasicData(JSONUtil.toBean(obj, SpsSyncBasicDataResponse.class));
break; break;
case OTHER_DATA: case OTHER_DATA:
saveUploadOtherData(JSONUtil.toBean(obj, SpsSyncOtherDataResponse.class)); // saveUploadOtherData(JSONUtil.toBean(obj, SpsSyncOtherDataResponse.class));
break; break;
case DOCUMENT_TYPE_DATA: case DOCUMENT_TYPE_DATA:
saveUploadDocumentTypeData(JSONUtil.toBean(obj, SpsSyncBusResponse.class)); saveUploadDocumentTypeData(JSONUtil.toBean(obj, SpsSyncBusResponse.class));
@ -376,6 +378,7 @@ public class SpsSyncDownloadController {
basicDownloadService.insertDownloadStatus(downloadStatus); basicDownloadService.insertDownloadStatus(downloadStatus);
return ResultVOUtils.success(); return ResultVOUtils.success();
} catch (Exception e) { } catch (Exception e) {
log.error("",e);
e.printStackTrace(); e.printStackTrace();
return ResultVOUtils.error(ResultEnum.NOT_NETWORK, e.getMessage()); return ResultVOUtils.error(ResultEnum.NOT_NETWORK, e.getMessage());
} }

@ -18,7 +18,7 @@ public class BasicBusTypePreEntity {
/** /**
* id * id
*/ */
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
/** /**

@ -17,7 +17,7 @@ import java.util.Date;
public class UdiRlSupEntity { public class UdiRlSupEntity {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
/** /**

@ -14,7 +14,7 @@ import lombok.Data;
@Data @Data
@TableName(value = "io_order_invoice") @TableName(value = "io_order_invoice")
public class IoOrderInvoiceEntity { public class IoOrderInvoiceEntity {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
/** /**

@ -12,7 +12,7 @@ import lombok.Data;
@Data @Data
@TableName(value = "pur_receive") @TableName(value = "pur_receive")
public class PurReceiveEntity { public class PurReceiveEntity {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
/** /**

@ -38,7 +38,7 @@ public class CustomerContactEntity{
@TableField("comments") @TableField("comments")
private String comments; private String comments;
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
/** /**

@ -15,7 +15,7 @@ import java.util.Date;
@TableName(value = "pur_arrival") @TableName(value = "pur_arrival")
public class PurArrivalEntity { public class PurArrivalEntity {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
/** /**

@ -16,7 +16,7 @@ import java.util.Date;
@TableName(value = "pur_delivery") @TableName(value = "pur_delivery")
public class PurDeliveryEntity { public class PurDeliveryEntity {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
/** /**

@ -12,7 +12,7 @@ import lombok.Data;
@Data @Data
@TableName(value = "pur_order") @TableName(value = "pur_order")
public class PurOrderEntity { public class PurOrderEntity {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
/** /**

@ -16,7 +16,7 @@ import java.util.Date;
public class PurReturnedEntity { public class PurReturnedEntity {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
/** /**

@ -12,7 +12,7 @@ import lombok.Data;
@Data @Data
@TableName(value = "sync_data_bustypes") @TableName(value = "sync_data_bustypes")
public class SyncDataBustypeEntity { public class SyncDataBustypeEntity {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
@TableField(value = "`action`") @TableField(value = "`action`")
private String action; private String action;

@ -20,7 +20,7 @@ public class ThrBusTypeOriginEntity {
/** /**
* id * id
*/ */
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
/** /**
* *

@ -18,7 +18,7 @@ import java.util.Date;
@TableName("thr_corp") @TableName("thr_corp")
public class ThrCorpEntity{ public class ThrCorpEntity{
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
@TableField("unitId") @TableField("unitId")

@ -17,7 +17,7 @@ import java.util.Date;
@Data @Data
public class ThrCorpExportLogEntity{ public class ThrCorpExportLogEntity{
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Integer id; private Integer id;
/** /**

@ -20,7 +20,7 @@ import java.util.Date;
@TableName("thr_products") @TableName("thr_products")
public class ThrProductsEntity{ public class ThrProductsEntity{
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.INPUT)
private Long id; private Long id;
/** /**

Loading…
Cancel
Save