代码备份

cert
anthonywj 2 years ago
parent e07ed0bb70
commit cfbc361efb

@ -4,93 +4,11 @@ public class Constant {
public static String SYSTEM_CUSTOMER_ID = "110";
public static final String INV_PRE_IN_CODE = "1000001";//默认预验收仓库号
public static final String INV_PRE_CODE = "1000002";//默认寄售仓库号
public static String MUTI = "MUTI";
public static final String SERIAL_CACHE_PREFIX = "serial_";
public static final String SERIAL_CACHE_PREFIX_ST = "serialst_";
public static final String SERIAL_CACHE_PREFIX_STAT = "serialstat_";
public static final String SERIAL_CACHE_PREFIX_PLACE = "serialplace_";
public static final String SERIAL_CACHE_SYNC_UDI = "syncUdi";
/**
* Key
*/
public static final String DEPT_CACHE_CODE = "deptDeviceCode";
public static final String SCAN_ORDER = "MS"; //出入库单据
public static final String BUS_ORDER = "MY";
public static final String LIN_YONG = "ML"; //领用
public static final String SG_ORDER = "SG"; //申购
public static final String JH_ORDER = "JH"; //计划
public static final String NBM_ORDER = "NBM"; //内部码
public static final String CG_ORDER = "CG"; //采购订单
public static final String SH_ORDER = "SH"; //送货单
public static final String DH_ORDER = "DH"; //到货
public static final String TH_ORDER = "TH"; //退货
/**
*
*/
public static final String COUNT_ORDER = "MP";
/**
*
*/
public static final String MA_ORDER = "MA";
/**
*
*/
public static final String DEVICE_RECEIVE_ORDER = "DRO";
/**
*
*/
public static final String DEVICE_MA_ORDER = "DMA";
/**
*
*/
public static final String DEVICE_INSPECT_PLAN_ORDER = "DIP";
/**
*
*/
public static final String DEVICE_REPAIR_ORDER = "DRA";
/**
*
*/
public static final String DEVICE_INSPECT_ORDER = "DIO";
/**
*
*/
public static final String INV_PLACE_ORDER = "PO";
public static final String dlThrProducts = "THR_DOWNLOAD_PRODUCTS";
public static final String dlThrInvProducts = "THR_DOWNLOAD_INV_PRODUCTS";
public static final String dlThrOrders = "THR_DOWNLOAD_ORDERS";
public static final String dlThrCorps = "THR_DOWNLOAD_CORPS";
public static final String SPS_SYNC_DOWNLOAD_INFO = "SPS_SYNC_DOWNLOAD_INFO";
public static String SPTM_TO_DI = "sptm_to_di";
public static String DELAY_SYNC_TIME = "DELAY_SYNC_TIME";
public static String LAST_THIRD_UPLOAD_TIME = "LAST_THIRD_UPLOAD_TIME"; //最后一次上传第三方单据时间
public static final int DB_CHECK_ED = 1; //已校驗
public static final int DB_CHECK_UN = 0; //未校驗
public static final int CHECK_EXIT = 1; //校驗成功,存在
public static final int CHECK_REPEAT = 2; //重複校驗
public static final int CHECK_NULL = 3; //校驗失敗,不存在
/**
@ -191,105 +109,16 @@ public class Constant {
*/
public static final String LOGIN_FAIL = "Error";
//-------------前端页面查询单据列表标识类型------------------
/**
* --
*/
public static final String ORDER_STATUS_SCAN_CODEE = "scan_code";
/**
* --
*/
public static final String ORDER_STATUS_NEW_BIZ = "new_biz";
/**
* -稿
*/
public static final String ORDER_STATUS_DRAFT = "draft";
/**
* -
*/
public static final String ORDER_STATUS_PROCESSED_ERROR = "processedError";
/**
* -稿
*/
public static final String ORDER_STATUS_NEW_ORDER = "newOrder";
/**
* -/
*/
public static final String ORDER_STATUS_UN_CHECK = "unCheck";
/**
* -/
*/
public static final String ORDER_STATUS_UN_ALLOCATE = "unAllocate";
/**
* -
*/
public static final String ORDER_STATUS_CHECKED_ERROR = "checkedError";
/**
* -
*/
public static final String ORDER_STATUS_CHECK_SUCCESS = "checkSuccess";
/**
* -
*/
public static final String ORDER_STATUS_AUDITED = "audited";
/**
*
*/
public static final String ORDER_STATUS_WAIT_AUDITED = "waitAudited";
/**
* -
*
*/
public static final String ORDER_STATUS_SUP_SEARCH = "supSearch";
public static final String ORDER_STATUS_INVOICE = "supInvoice";
public static final String ORDER_STATUS_INCODE = "supInCode";
/**前端页面查询相关单据类型标识*/
public static final String CAPTCHAS = "captchas:";
/**
* supDelivery
* supDelAudit
* supInout
* supArrival
* 退 supReturned
* supPurchase
* supInvoice
* norDetail
* preDetail
* preInDetail
*
*/
public static final String ORDER_ACTION_NOR_DETAIL = "norDetail";
public static final String ORDER_ACTION_PRE_DETAIL = "preDetail";
public static final String ORDER_ACTION_PREIN_DETAIL = "preInDetail";
public static final String ORDER_ACTION_SUP_DELIVERY = "supDelivery";
public static final String ORDER_ACTION_SUP_INVOICE = "supInvoice";
public static final String ORDER_ACTION_SUP_DELAUDIT = "supDelAudit";
public static final String ORDER_ACTION_SUP_INOUT = "supInout";
public static final String ORDER_ACTION_SUP_PREIN = "preInOrder";
public static final String SYNC_REMARK = "syncRemark";
/**
*
*/
public static final String CAPTCHAS = "captchas:";
public static final Integer UDI_TRACE = 1;
public static final Integer UDI_BATCHNO = 2;
}

@ -1,17 +1,69 @@
package com.glxp.api.controller.trace;
import com.glxp.api.annotation.AuthRuleAnnotation;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.constant.Constant;
import com.glxp.api.controller.BaseController;
import com.glxp.api.req.trace.TraceRecordRequest;
import com.glxp.api.service.trace.TraceRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
import javax.annotation.Resource;
@ApiIgnore
@RestController
@Slf4j
public class UdiTraceController extends BaseController {
@Resource
TraceRecordService traceRecordService;
/**
*
*
* @param traceRecordRequest
* @return
*/
@AuthRuleAnnotation("udi/trace/source/search")
@GetMapping("udi/trace/source/search")
public BaseResponse createTrace(TraceRecordRequest traceRecordRequest) {
if (traceRecordRequest.getTraceType() == Constant.UDI_TRACE) {
} else if (traceRecordRequest.getTraceType() == Constant.UDI_BATCHNO) {
} else {
return ResultVOUtils.error(500, "请选择查询方式!");
}
return ResultVOUtils.error(500, "查询失败");
}
/**
*
*
* @param traceRecordRequest
* @return
*/
@AuthRuleAnnotation("udi/trace/scene/search")
@GetMapping("udi/trace/scene/search")
public BaseResponse sceneTrace(TraceRecordRequest traceRecordRequest) {
if (traceRecordRequest.getTraceType() == Constant.UDI_TRACE) {
} else if (traceRecordRequest.getTraceType() == Constant.UDI_BATCHNO) {
} else {
return ResultVOUtils.error(500, "请选择查询方式!");
}
return ResultVOUtils.error(500, "查询失败");
}
}

Loading…
Cancel
Save