dev
wj 2 years ago
parent 1aa87121d8
commit 635b0c4fe5

@ -2,6 +2,7 @@ package com.glxp.mipsdl.config;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.glxp.mipsdl.dao.auth.AuthLicenseDao;
import com.glxp.mipsdl.dao.system.SysHospConfigDao;
@ -63,7 +64,7 @@ public class HospConfig {
@PostConstruct
public AuthLicenseEntity getAuthLicense() {
log.info("系统启动中,获取第三方服务授权信息");
AuthLicenseEntity authLicenseEntity = authLicenseDao.selectOne(new QueryWrapper<AuthLicenseEntity>().eq(AuthLicenseEntity.COL_NAME, "第三方服务"));
AuthLicenseEntity authLicenseEntity = authLicenseDao.selectOne(new LambdaQueryWrapper<AuthLicenseEntity>().eq(AuthLicenseEntity::getName, "第三方服务"));
if (null != authLicenseEntity && StrUtil.isNotBlank(authLicenseEntity.getApikey()) && StrUtil.isNotBlank(authLicenseEntity.getSecretkey())) {
log.info("获取第三方服务授权信息成功");
return authLicenseEntity;

@ -1,5 +1,6 @@
package com.glxp.mipsdl.config;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.glxp.mipsdl.constant.Constants;
import com.glxp.mipsdl.dao.thrsys.ThrSystemDao;
@ -30,7 +31,7 @@ public class ThirdSysConfig {
* @return
*/
public ThrSystemEntity getThirdSysConfig() {
return thrSystemDao.selectOne(new QueryWrapper<ThrSystemEntity>().eq(ThrSystemEntity.COL_THIRDID, thirdSys));
return thrSystemDao.selectOne(new LambdaQueryWrapper<ThrSystemEntity>().eq(ThrSystemEntity::getThirdId, thirdSys));
}
/**

@ -33,20 +33,4 @@ public class AuthLicenseEntity {
@TableField(value = "companyName")
private String companyName;
public static final String COL_ID = "id";
public static final String COL_APPID = "appid";
public static final String COL_NAME = "name";
public static final String COL_APIKEY = "apikey";
public static final String COL_SECRETKEY = "secretkey";
public static final String COL_CREATEDATE = "createDate";
public static final String COL_CUSTOMERID = "customerId";
public static final String COL_COMPANYNAME = "companyName";
}

@ -75,29 +75,6 @@ public class AuthUserEntity {
@TableField(value = "locInvCode")
private String locInvCode;
@TableField(exist = false)
public static final String COL_ID = "id";
public static final String COL_USERNAME = "userName";
public static final String COL_PASSWORD = "passWord";
public static final String COL_LASTLOGINIP = "lastLoginIp";
public static final String COL_CREATETIME = "createTime";
public static final String COL_USERFLAG = "userFlag";
public static final String COL_LASTMODIFYTIME = "lastModifyTime";
public static final String COL_COMMENTS = "comments";
public static final String COL_EMPLOYEENAME = "employeeName";
public static final String COL_CUSTOMERID = "CustomerId";
public static final String COL_LASTLOGINTIME = "lastLoginTime";
public static final String COL_LOCDEPTCODE = "locDeptCode";
public static final String COL_LOCINVCODE = "locInvCode";
}

@ -80,28 +80,4 @@ public class AuthWarehouseEntity {
*/
@TableField(value = "parentCode")
private String parentCode;
public static final String COL_ID = "id";
public static final String COL_CODE = "code";
public static final String COL_NAME = "name";
public static final String COL_PARENTID = "parentId";
public static final String COL_REMARK = "remark";
public static final String COL_DEFAULTINV = "defaultInv";
public static final String COL_THIRDID = "thirdId";
public static final String COL_THIRDID1 = "thirdId1";
public static final String COL_THIRDID2 = "thirdId2";
public static final String COL_THIRDID3 = "thirdId3";
public static final String COL_THIRDID4 = "thirdId4";
public static final String COL_PARENTCODE = "parentCode";
}

@ -339,111 +339,4 @@ public class BasicBussinessTypeEntity {
@TableField(value = "updateUser")
private String updateUser;
public static final String COL_ID = "id";
public static final String COL_MAINACTION = "mainAction";
public static final String COL_ACTION = "action";
public static final String COL_NAME = "name";
public static final String COL_ENABLE = "enable";
public static final String COL_REMARK = "remark";
public static final String COL_THIRDSYSFK = "thirdSysFk";
public static final String COL_GENUNIT = "genUnit";
public static final String COL_INNERORDER = "innerOrder";
public static final String COL_SECCHECKENABLE = "secCheckEnable";
public static final String COL_CHECKENABLE = "checkEnable";
public static final String COL_CHECKUDIMS = "checkUdims";
public static final String COL_CHECKPDAED = "checkPdaEd";
public static final String COL_CHECKPDAUN = "checkPdaUn";
public static final String COL_CHECKPC = "checkPc";
public static final String COL_CHECKWEBNEW = "checkWebNew";
public static final String COL_CHECKSP = "checkSp";
public static final String COL_CHECKCHANGE = "checkChange";
public static final String COL_SECCHECKUDIMS = "secCheckUdims";
public static final String COL_SECCHECKPDAED = "secCheckPdaEd";
public static final String COL_SECCHECKPDAUN = "secCheckPdaUn";
public static final String COL_SECCHECKPC = "secCheckPc";
public static final String COL_SECCHECKWEBNEW = "secCheckWebNew";
public static final String COL_SECCHECKCHANGE = "secCheckChange";
public static final String COL_SECCHECKSP = "secCheckSp";
public static final String COL_CORPTYPE = "corpType";
public static final String COL_SUPPLEMENTORDERTYPE = "supplementOrderType";
public static final String COL_CHECKBALANCE = "checkBalance";
public static final String COL_SECCHECKBALANCE = "secCheckBalance";
public static final String COL_USEDYCOUNT = "useDyCount";
public static final String COL_EXPIRETIP = "expireTip";
public static final String COL_UPDATETIME = "updateTime";
public static final String COL_DEFAULTUNIT = "defaultUnit";
public static final String COL_PREFIX = "prefix";
public static final String COL_OUTTOSPMS = "outToSpms";
public static final String COL_ULLAGEFILL = "ullageFill";
public static final String COL_SCANPREIN = "scanPreIn";
public static final String COL_VAILINV = "vailInv";
public static final String COL_ENTRUTSPMS = "entrutSpms";
public static final String COL_CODEFILLCHECK = "codeFillCheck";
public static final String COL_DEFAULTSUBINV = "defaultSubInv";
public static final String COL_DEFAULTINV = "defaultInv";
public static final String COL_ORDERVISIBLETYPE = "orderVisibleType";
public static final String COL_CHECKCOPY = "checkCopy";
public static final String COL_SECCHECKCOPY = "secCheckCopy";
public static final String COL_ORIGINACTION = "originAction";
public static final String COL_ADVANCETYPE = "advanceType";
public static final String COL_CHANGEENABLE = "changeEnable";
public static final String COL_SPUSE = "spUse";
public static final String COL_PREIN = "preIn";
public static final String COL_SUPPLEMENTALL = "supplementAll";
public static final String COL_CREATEUSER = "createUser";
public static final String COL_CREATETIME = "createTime";
public static final String COL_UPDATEUSER = "updateUser";
}

@ -143,58 +143,4 @@ public class BasicCorpEntity {
*/
@TableField(value = "remark")
private String remark;
public static final String COL_ID = "id";
public static final String COL_ERPID = "erpId";
public static final String COL_NAME = "name";
public static final String COL_SPELL = "spell";
public static final String COL_ADDR = "addr";
public static final String COL_STATUS = "status";
public static final String COL_TYPE = "type";
public static final String COL_CONTACT = "contact";
public static final String COL_MOBILE = "mobile";
public static final String COL_CREDITNO = "creditNo";
public static final String COL_THIRDID = "thirdId";
public static final String COL_THIRDID1 = "thirdId1";
public static final String COL_THIRDID2 = "thirdId2";
public static final String COL_THIRDID3 = "thirdId3";
public static final String COL_THIRDID4 = "thirdId4";
public static final String COL_THIRDNAME = "thirdName";
public static final String COL_THIRDNAME1 = "thirdName1";
public static final String COL_THIRDNAME2 = "thirdName2";
public static final String COL_THIRDNAME3 = "thirdName3";
public static final String COL_THIRDNAME4 = "thirdName4";
public static final String COL_CORPTYPE = "corpType";
public static final String COL_OUTTYPE = "outType";
public static final String COL_CREATEUSER = "createUser";
public static final String COL_CREATETIME = "createTime";
public static final String COL_UPDATEUSER = "updateUser";
public static final String COL_UPDATETIME = "updateTime";
public static final String COL_REMARK = "remark";
}

@ -351,117 +351,4 @@ public class BasicProductsEntity {
@TableField(value = "remark")
private String remark;
public static final String COL_ID = "id";
public static final String COL_UUID = "uuid";
public static final String COL_ORIGINUUID = "originUuid";
public static final String COL_NAMECODE = "nameCode";
public static final String COL_DEVICERECORDKEY = "deviceRecordKey";
public static final String COL_PACKRATIO = "packRatio";
public static final String COL_PACKUNIT = "packUnit";
public static final String COL_PACKLEVEL = "packLevel";
public static final String COL_BHXJSL = "bhxjsl";
public static final String COL_BHZXXSBZSL = "bhzxxsbzsl";
public static final String COL_ZXXSBZBHSYDYSL = "zxxsbzbhsydysl";
public static final String COL_BHXJCPBM = "bhxjcpbm";
public static final String COL_BZCJ = "bzcj";
public static final String COL_CPMCTYMC = "cpmctymc";
public static final String COL_CPLB = "cplb";
public static final String COL_FLBM = "flbm";
public static final String COL_GGXH = "ggxh";
public static final String COL_QXLB = "qxlb";
public static final String COL_TYSHXYDM = "tyshxydm";
public static final String COL_YLQXZCRBARMC = "ylqxzcrbarmc";
public static final String COL_ZCZBHHZBAPZBH = "zczbhhzbapzbh";
public static final String COL_YLQXZCRBARYWMC = "ylqxzcrbarywmc";
public static final String COL_SYDYCPBS = "sydycpbs";
public static final String COL_SJCPBM = "sjcpbm";
public static final String COL_VERSIONNUMBER = "versionNumber";
public static final String COL_DITYPE = "diType";
public static final String COL_YBBM = "ybbm";
public static final String COL_SPTM = "sptm";
public static final String COL_MANUFACTORY = "manufactory";
public static final String COL_MEASNAME = "measname";
public static final String COL_PRODUCTTYPE = "productType";
public static final String COL_SCBSSFBHPH = "scbssfbhph";
public static final String COL_SCBSSFBHXLH = "scbssfbhxlh";
public static final String COL_SCBSSFBHSCRQ = "scbssfbhscrq";
public static final String COL_SCBSSFBHSXRQ = "scbssfbhsxrq";
public static final String COL_CPMS = "cpms";
public static final String COL_ALLOWNOBATCH = "allowNoBatch";
public static final String COL_ALLOWNOEXPIRE = "allowNoExpire";
public static final String COL_ALLOWNOPRODUCT = "allowNoProduct";
public static final String COL_SPMC = "spmc";
public static final String COL_CPLX = "cplx";
public static final String COL_HCHZSB = "hchzsb";
public static final String COL_CPDLS = "cpdls";
public static final String COL_PRICE = "price";
public static final String COL_BASICPRDUCTREMAK1 = "basicPrductRemak1";
public static final String COL_BASICPRDUCTREMAK2 = "basicPrductRemak2";
public static final String COL_BASICPRDUCTREMAK3 = "basicPrductRemak3";
public static final String COL_BASICPRDUCTREMAK4 = "basicPrductRemak4";
public static final String COL_BASICPRDUCTREMAK5 = "basicPrductRemak5";
public static final String COL_BASICPRDUCTREMAK6 = "basicPrductRemak6";
public static final String COL_BASICPRDUCTREMAK7 = "basicPrductRemak7";
public static final String COL_BASICPRDUCTREMAK8 = "basicPrductRemak8";
public static final String COL_CREATETIME = "createTime";
public static final String COL_UPDATETIME = "updateTime";
public static final String COL_CREATEUSER = "createUser";
public static final String COL_UPDATEUSER = "updateUser";
public static final String COL_REMARK = "remark";
}

@ -147,49 +147,4 @@ public class BasicUdirelEntity {
@TableField(value = "remark")
private String remark;
public static final String COL_ID = "id";
public static final String COL_UUID = "uuid";
public static final String COL_MAINID = "mainId";
public static final String COL_THIRDID = "thirdId";
public static final String COL_THIRDID1 = "thirdId1";
public static final String COL_THIRDID2 = "thirdId2";
public static final String COL_THIRDID3 = "thirdId3";
public static final String COL_THIRDID4 = "thirdId4";
public static final String COL_UDPLATCODE = "udplatCode";
public static final String COL_ISUSEDY = "isUseDy";
public static final String COL_ISDISABLE = "isDisable";
public static final String COL_ISLOCK = "isLock";
public static final String COL_LOCKSTATUS = "lockStatus";
public static final String COL_ISADAVENCE = "isAdavence";
public static final String COL_USEMUTI = "useMuti";
public static final String COL_USENUM = "useNum";
public static final String COL_SUPNAME = "supName";
public static final String COL_CREATETIME = "createTime";
public static final String COL_UPDATETIME = "updateTime";
public static final String COL_MODIFYTIME = "modifyTime";
public static final String COL_CREATEUSER = "createUser";
public static final String COL_UPDATEUSER = "updateUser";
public static final String COL_REMARK = "remark";
}

@ -138,45 +138,4 @@ public class IoCodeEntity {
@TableField(value = "createTime")
private Date createTime;
public static final String COL_ID = "id";
public static final String COL_CODE = "code";
public static final String COL_MAINACTION = "mainAction";
public static final String COL_ACTION = "action";
public static final String COL_ORDERID = "orderId";
public static final String COL_CORPORDERID = "corpOrderId";
public static final String COL_NAMECODE = "nameCode";
public static final String COL_BATCHNO = "batchNo";
public static final String COL_PRODUCEDATE = "produceDate";
public static final String COL_EXPIREDATE = "expireDate";
public static final String COL_SERIALNO = "serialNo";
public static final String COL_PACKAGELEVEL = "packageLevel";
public static final String COL_SUPID = "supId";
public static final String COL_RELID = "relId";
public static final String COL_COUNT = "count";
public static final String COL_RECOUNT = "reCount";
public static final String COL_DEPTCODE = "deptCode";
public static final String COL_INVCODE = "invCode";
public static final String COL_WAREHOUSECODE = "warehouseCode";
public static final String COL_UPDATETIME = "updateTime";
public static final String COL_CREATETIME = "createTime";
}

@ -138,45 +138,4 @@ public class IoCodeTempEntity {
@TableField(value = "createTime")
private Date createTime;
public static final String COL_ID = "id";
public static final String COL_CODE = "code";
public static final String COL_MAINACTION = "mainAction";
public static final String COL_ACTION = "action";
public static final String COL_ORDERID = "orderId";
public static final String COL_CORPORDERID = "corpOrderId";
public static final String COL_NAMECODE = "nameCode";
public static final String COL_BATCHNO = "batchNo";
public static final String COL_PRODUCEDATE = "produceDate";
public static final String COL_EXPIREDATE = "expireDate";
public static final String COL_SERIALNO = "serialNo";
public static final String COL_PACKAGELEVEL = "packageLevel";
public static final String COL_SUPID = "supId";
public static final String COL_RELID = "relId";
public static final String COL_COUNT = "count";
public static final String COL_RECOUNT = "reCount";
public static final String COL_DEPTCODE = "deptCode";
public static final String COL_INVCODE = "invCode";
public static final String COL_WAREHOUSECODE = "warehouseCode";
public static final String COL_UPDATETIME = "updateTime";
public static final String COL_CREATETIME = "createTime";
}

@ -186,61 +186,5 @@ public class IoOrderDetailBizEntity {
@TableField(value = "remark5")
private String remark5;
public static final String COL_ID = "id";
public static final String COL_ORDERIDFK = "orderIdFk";
public static final String COL_BINDRLFK = "bindRlFk";
public static final String COL_UUIDFK = "uuidFk";
public static final String COL_NAMECODE = "nameCode";
public static final String COL_BATCHNO = "batchNo";
public static final String COL_PRODUCTDATE = "productDate";
public static final String COL_EXPIREDATE = "expireDate";
public static final String COL_CONAME = "coName";
public static final String COL_CERTCODE = "certCode";
public static final String COL_YLQXZCRBARMC = "ylqxzcrbarmc";
public static final String COL_MANUFACTURER = "manufacturer";
public static final String COL_MEASNAME = "measname";
public static final String COL_SPEC = "spec";
public static final String COL_PRICE = "price";
public static final String COL_SECSALESLISTNO = "secSalesListNo";
public static final String COL_FIRSTSALESINVNO = "firstSalesInvNo";
public static final String COL_SECSALESINVNO = "secSalesInvNo";
public static final String COL_INVOICEDATE = "invoiceDate";
public static final String COL_SUPID = "supId";
public static final String COL_BINDSUPSTATUS = "bindSupStatus";
public static final String COL_COUNT = "count";
public static final String COL_RECOUNT = "reCount";
public static final String COL_REMARK = "remark";
public static final String COL_REMARK1 = "remark1";
public static final String COL_REMARK2 = "remark2";
public static final String COL_REMARK3 = "remark3";
public static final String COL_REMARK4 = "remark4";
public static final String COL_REMARK5 = "remark5";
}

@ -186,61 +186,4 @@ public class IoOrderDetailCodeEntity {
@TableField(value = "remark5")
private String remark5;
public static final String COL_ID = "id";
public static final String COL_ORDERIDFK = "orderIdFk";
public static final String COL_BINDRLFK = "bindRlFk";
public static final String COL_UUIDFK = "uuidFk";
public static final String COL_NAMECODE = "nameCode";
public static final String COL_BATCHNO = "batchNo";
public static final String COL_PRODUCTDATE = "productDate";
public static final String COL_EXPIREDATE = "expireDate";
public static final String COL_CONAME = "coName";
public static final String COL_CERTCODE = "certCode";
public static final String COL_YLQXZCRBARMC = "ylqxzcrbarmc";
public static final String COL_MANUFACTURER = "manufacturer";
public static final String COL_MEASNAME = "measname";
public static final String COL_SPEC = "spec";
public static final String COL_PRICE = "price";
public static final String COL_SECSALESLISTNO = "secSalesListNo";
public static final String COL_FIRSTSALESINVNO = "firstSalesInvNo";
public static final String COL_SECSALESINVNO = "secSalesInvNo";
public static final String COL_INVOICEDATE = "invoiceDate";
public static final String COL_SUPID = "supId";
public static final String COL_BINDSUPSTATUS = "bindSupStatus";
public static final String COL_COUNT = "count";
public static final String COL_RECOUNT = "reCount";
public static final String COL_REMARK = "remark";
public static final String COL_REMARK1 = "remark1";
public static final String COL_REMARK2 = "remark2";
public static final String COL_REMARK3 = "remark3";
public static final String COL_REMARK4 = "remark4";
public static final String COL_REMARK5 = "remark5";
}

@ -186,61 +186,4 @@ public class IoOrderDetailResultEntity {
@TableField(value = "remark5")
private String remark5;
public static final String COL_ID = "id";
public static final String COL_ORDERIDFK = "orderIdFk";
public static final String COL_BINDRLFK = "bindRlFk";
public static final String COL_UUIDFK = "uuidFk";
public static final String COL_NAMECODE = "nameCode";
public static final String COL_BATCHNO = "batchNo";
public static final String COL_PRODUCTDATE = "productDate";
public static final String COL_EXPIREDATE = "expireDate";
public static final String COL_CONAME = "coName";
public static final String COL_CERTCODE = "certCode";
public static final String COL_YLQXZCRBARMC = "ylqxzcrbarmc";
public static final String COL_MANUFACTURER = "manufacturer";
public static final String COL_MEASNAME = "measname";
public static final String COL_SPEC = "spec";
public static final String COL_PRICE = "price";
public static final String COL_SECSALESLISTNO = "secSalesListNo";
public static final String COL_FIRSTSALESINVNO = "firstSalesInvNo";
public static final String COL_SECSALESINVNO = "secSalesInvNo";
public static final String COL_INVOICEDATE = "invoiceDate";
public static final String COL_SUPID = "supId";
public static final String COL_BINDSUPSTATUS = "bindSupStatus";
public static final String COL_COUNT = "count";
public static final String COL_RECOUNT = "reCount";
public static final String COL_REMARK = "remark";
public static final String COL_REMARK1 = "remark1";
public static final String COL_REMARK2 = "remark2";
public static final String COL_REMARK3 = "remark3";
public static final String COL_REMARK4 = "remark4";
public static final String COL_REMARK5 = "remark5";
}

@ -216,71 +216,5 @@ public class IoOrderEntity {
@TableField(value = "exportStatus")
private Integer exportStatus;
public static final String COL_ID = "id";
public static final String COL_BILLNO = "billNo";
public static final String COL_CORPORDERID = "corpOrderId";
public static final String COL_MAINACTION = "mainAction";
public static final String COL_ACTION = "action";
public static final String COL_FROMCORP = "fromCorp";
public static final String COL_FROMDEPTCODE = "fromDeptCode";
public static final String COL_FROMINVCODE = "fromInvCode";
public static final String COL_FROMTYPE = "fromType";
public static final String COL_STATUS = "status";
public static final String COL_DEALSTATUS = "dealStatus";
public static final String COL_CREATEUSER = "createUser";
public static final String COL_CREATETIME = "createTime";
public static final String COL_UPDATEUSER = "updateUser";
public static final String COL_UPDATETIME = "updateTime";
public static final String COL_REVIEWUSER = "reviewUser";
public static final String COL_AUDITTIME = "auditTime";
public static final String COL_CUSTOMERID = "customerId";
public static final String COL_DEPTCODE = "deptCode";
public static final String COL_INVCODE = "invCode";
public static final String COL_OUTCHANGEENABLE = "outChangeEnable";
public static final String COL_ORIGINULLAGESUPNO = "originUllageSupNo";
public static final String COL_ULLAGESUPNO = "ullageSupNo";
public static final String COL_SUPPLEMENTNO = "supplementNo";
public static final String COL_THIRDBILLNO = "thirdBillNo";
public static final String COL_REPLICATENO = "replicateNo";
public static final String COL_PREOUTBILLNO = "preOutBillNo";
public static final String COL_PREINBILLNO = "preInBillNo";
public static final String COL_ERRMSG = "errMsg";
public static final String COL_PRINTREMARK = "printRemark";
public static final String COL_REMARK = "remark";
public static final String COL_ORDERTYPE = "orderType";
public static final String COL_ENTRUSTEND = "entrustEnd";
public static final String COL_EXPORTSTATUS = "exportStatus";
}

@ -67,22 +67,4 @@ public class IoOrderUploadLogEntity {
*/
@TableField(value = "fromType")
private Integer fromType;
public static final String COL_ID = "id";
public static final String COL_BILLNO = "billNo";
public static final String COL_BILLDATE = "billDate";
public static final String COL_BILLTYPE = "billType";
public static final String COL_THRBILLNO = "thrBillNo";
public static final String COL_SUBMITTIME = "submitTime";
public static final String COL_STATUS = "status";
public static final String COL_RESULT = "result";
public static final String COL_FROMTYPE = "fromType";
}

@ -31,13 +31,4 @@ public class SysScheduledEntity {
@TableField(value = "remark")
private String remark;
public static final String COL_ID = "id";
public static final String COL_CRONNAME = "cronName";
public static final String COL_CRON = "cron";
public static final String COL_CUSTOMERID = "customerId";
public static final String COL_REMARK = "remark";
}

@ -31,15 +31,4 @@ public class SysThirdsysApiEntity {
@TableField(value = "`type`")
private String type;
public static final String COL_ID = "id";
public static final String COL_NAME = "name";
public static final String COL_APIURL = "apiUrl";
public static final String COL_GUIDEURL = "guideUrl";
public static final String COL_REMARK = "remark";
public static final String COL_TYPE = "type";
}

@ -81,25 +81,4 @@ public class ThrBustypeOriginEntity {
@TableField(value = "createTime")
private Date createTime;
public static final String COL_ID = "id";
public static final String COL_NAME = "name";
public static final String COL_ACTION = "action";
public static final String COL_THIRDSYS = "thirdSys";
public static final String COL_ENABLE = "enable";
public static final String COL_INOUTTYPE = "inoutType";
public static final String COL_UPDATETIME = "updateTime";
public static final String COL_REMARK = "remark";
public static final String COL_CREATEUSER = "createUser";
public static final String COL_UPDATEUSER = "updateUser";
public static final String COL_CREATETIME = "createTime";
}

@ -69,31 +69,4 @@ public class ThrCorpEntity {
@TableField(value = "remark")
private String remark;
public static final String COL_ID = "id";
public static final String COL_UNITID = "unitId";
public static final String COL_SPELL = "spell";
public static final String COL_ADDR = "addr";
public static final String COL_CREDITNO = "creditNo";
public static final String COL_CONTACT = "contact";
public static final String COL_MOBILE = "mobile";
public static final String COL_THIRDSYSFK = "thirdSysFk";
public static final String COL_NAME = "name";
public static final String COL_CREATEUSER = "createUser";
public static final String COL_CREATETIME = "createTime";
public static final String COL_UPDATEUSER = "updateUser";
public static final String COL_UPDATETIME = "updateTime";
public static final String COL_REMARK = "remark";
}

@ -48,27 +48,4 @@ public class ThrDeptEntity {
@TableField(value = "thirdSysFk")
private String thirdSysFk;
public static final String COL_ID = "id";
public static final String COL_PID = "pId";
public static final String COL_CODE = "code";
public static final String COL_NAME = "name";
public static final String COL_ADVANCETYPE = "advanceType";
public static final String COL_ISDEFAULT = "isDefault";
public static final String COL_STATUS = "status";
public static final String COL_UPDATETIME = "updateTime";
public static final String COL_REMARK = "remark";
public static final String COL_LEVEL = "level";
public static final String COL_PCODE = "pcode";
public static final String COL_THIRDSYSFK = "thirdSysFk";
}

@ -28,15 +28,4 @@ public class ThrInvWarehouseEntity {
@TableField(value = "thirdSysFk")
private String thirdSysFk;
public static final String COL_ID = "id";
public static final String COL_CODE = "code";
public static final String COL_NAME = "name";
public static final String COL_PARENTID = "parentId";
public static final String COL_REMARK = "remark";
public static final String COL_THIRDSYSFK = "thirdSysFk";
}

@ -195,67 +195,4 @@ public class ThrProductsEntity {
@TableField(value = "updateUser")
private String updateUser;
public static final String COL_ID = "id";
public static final String COL_CODE = "code";
public static final String COL_NAME = "name";
public static final String COL_MEASNAME = "measname";
public static final String COL_SPEC = "spec";
public static final String COL_REGISTERNO = "registerNo";
public static final String COL_MANUFACTORY = "manufactory";
public static final String COL_THIRDSYSFK = "thirdSysFk";
public static final String COL_CPLB = "cplb";
public static final String COL_FLBM = "flbm";
public static final String COL_QXLB = "qxlb";
public static final String COL_YBBM = "ybbm";
public static final String COL_SPTM = "sptm";
public static final String COL_TYSHXYDM = "tyshxydm";
public static final String COL_ZCZBHHZBAPZBH = "zczbhhzbapzbh";
public static final String COL_YLQXZCRBARMC = "ylqxzcrbarmc";
public static final String COL_YLQXZCRBARYWMC = "ylqxzcrbarywmc";
public static final String COL_CPMS = "cpms";
public static final String COL_UPDATETIME = "updateTime";
public static final String COL_SUPNAME = "supName";
public static final String COL_MODEL = "model";
public static final String COL_STANDARD = "standard";
public static final String COL_QTBM = "qtbm";
public static final String COL_ZCZYXQZ = "zczyxqz";
public static final String COL_REMARK = "remark";
public static final String COL_REMARK1 = "remark1";
public static final String COL_REMARK2 = "remark2";
public static final String COL_REMARK3 = "remark3";
public static final String COL_PRICE = "price";
public static final String COL_CREATEUSER = "createUser";
public static final String COL_CREATETIME = "createTime";
public static final String COL_UPDATEUSER = "updateUser";
}

@ -62,31 +62,4 @@ public class ThrSystemBusApiEntity {
private String thirdBuyName; //第三方系统单据类型名称
private static final long serialVersionUID = 1L;
public static final String COL_ID = "id";
public static final String COL_CODE = "code";
public static final String COL_NAME = "name";
public static final String COL_THIRDBUYCODE = "thirdBuyCode";
public static final String COL_THIRDSYS = "thirdSys";
public static final String COL_URL = "url";
public static final String COL_TYPE = "type";
public static final String COL_REMARK = "remark";
public static final String COL_FILED = "filed";
public static final String COL_FILED1 = "filed1";
public static final String COL_FILED2 = "filed2";
public static final String COL_FILED3 = "filed3";
public static final String COL_FILED4 = "filed4";
}

@ -46,23 +46,5 @@ public class ThrSystemDetailEntity {
@TableField(value = "fromType")
private Integer fromType;
public static final String COL_ID = "id";
public static final String COL_NAME = "name";
public static final String COL_KEY = "key";
public static final String COL_VALUE = "value";
public static final String COL_ENABLED = "enabled";
public static final String COL_GUIDEURL = "guideUrl";
public static final String COL_REMARK = "remark";
public static final String COL_THIRDSYSFK = "thirdSysFk";
public static final String COL_ITRCACHE = "itrCache";
public static final String COL_FROMTYPE = "fromType";
}

@ -73,25 +73,4 @@ public class ThrSystemEntity {
@TableField(value = "remark")
private String remark;
public static final String COL_ID = "id";
public static final String COL_THIRDID = "thirdId";
public static final String COL_THIRDNAME = "thirdName";
public static final String COL_APIKEY = "apikey";
public static final String COL_SECRETKEY = "secretkey";
public static final String COL_MAINSYS = "mainSys";
public static final String COL_ENABLED = "enabled";
public static final String COL_THRIDURL = "thridUrl";
public static final String COL_THIRDSYSURL = "thirdSysUrl";
public static final String COL_GUIDEURL = "guideUrl";
public static final String COL_REMARK = "remark";
}

@ -8,7 +8,7 @@ import lombok.Getter;
@Getter
public enum ResultEnum {
SUCCESS(0, "success"),
SUCCESS(20000, "success"),
NOT_NETWORK(1, "系统繁忙,请稍后再试。"),
LOGIN_VERIFY_FALL(2, "登录失效"),
PARAM_VERIFY_FALL(3, "参数验证错误"),

@ -2,6 +2,7 @@ package com.glxp.mipsdl.service.thrsys;
import cn.hutool.core.util.ReflectUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.glxp.mipsdl.config.ThirdSysConfig;
import com.glxp.mipsdl.dao.basic.BasicCorpDao;
@ -33,8 +34,8 @@ public class ThrCorpService {
public ThrCorpEntity getThrCorp(String corpId) {
if (StrUtil.isNotBlank(corpId)) {
ThrCorpEntity thrCorpEntity = new ThrCorpEntity();
BasicCorpEntity basicCorpEntity = basicCorpDao.selectOne(new QueryWrapper<BasicCorpEntity>()
.eq(BasicCorpEntity.COL_ERPID, corpId));
BasicCorpEntity basicCorpEntity = basicCorpDao.selectOne(new LambdaQueryWrapper<BasicCorpEntity>()
.eq(BasicCorpEntity::getErpId, corpId));
try {
//获取本服务配置的thirdId对应的第三方系统的往来单位名称和编码
String thirdCorpId = (String) ReflectUtil.getFieldValue(basicCorpEntity, basicCorpEntity.getClass().getField(thirdSysConfig.getThirdId()));

@ -1,6 +1,7 @@
package com.glxp.mipsdl.service.thrsys;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.glxp.mipsdl.config.ThirdSysConfig;
import com.glxp.mipsdl.dao.thrsys.ThrSystemBusApiDao;
@ -27,10 +28,10 @@ public class ThrSysBusTypeService {
*/
public String getThrBusTypeCode(String busType) {
if (StrUtil.isNotBlank(busType)) {
QueryWrapper<ThrSystemBusApiEntity> wrapper = new QueryWrapper<>();
wrapper.select(ThrSystemBusApiEntity.COL_THIRDBUYCODE)
.eq(ThrSystemBusApiEntity.COL_THIRDSYS, thirdSysConfig.getThirdSysConfig().getThirdId())
.eq(ThrSystemBusApiEntity.COL_CODE, busType);
LambdaQueryWrapper<ThrSystemBusApiEntity> wrapper = new LambdaQueryWrapper<>();
wrapper.select(ThrSystemBusApiEntity::getThirdBuyCode)
.eq(ThrSystemBusApiEntity::getThirdSys, thirdSysConfig.getThirdSysConfig().getThirdId())
.eq(ThrSystemBusApiEntity::getCode, busType);
ThrSystemBusApiEntity thrSystemBusApiEntity = thrSystemBusApiDao.selectOne(wrapper);
if (null != thrSystemBusApiEntity) {
log.info("单据类型转换成功,原类型:{},第三方单据类型:{}", busType, thrSystemBusApiEntity.getThirdBuyCode());
@ -51,9 +52,9 @@ public class ThrSysBusTypeService {
*/
public ThrSystemBusApiEntity getThrBusType(String busType) {
if (StrUtil.isNotBlank(busType)) {
QueryWrapper<ThrSystemBusApiEntity> wrapper = new QueryWrapper<>();
wrapper.eq(ThrSystemBusApiEntity.COL_THIRDSYS, thirdSysConfig.getThirdSysConfig().getThirdId())
.eq(ThrSystemBusApiEntity.COL_CODE, busType);
LambdaQueryWrapper<ThrSystemBusApiEntity> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(ThrSystemBusApiEntity::getThirdSys, thirdSysConfig.getThirdSysConfig().getThirdId())
.eq(ThrSystemBusApiEntity::getCode, busType);
ThrSystemBusApiEntity thrSystemBusApiEntity = thrSystemBusApiDao.selectOne(wrapper);
if (null != thrSystemBusApiEntity) {
log.info("单据类型转换成功,原类型:{},第三方单据类型:{}", busType, thrSystemBusApiEntity.getThirdBuyCode());

@ -19,7 +19,7 @@ public class ResultVOUtils {
*/
public static BaseResponse success(Object data) {
BaseResponse<Object> baseResponse = new BaseResponse<>();
baseResponse.setCode(20000);
baseResponse.setCode(ResultEnum.SUCCESS.getCode());
baseResponse.setMessage("success");
baseResponse.setData(data);
return baseResponse;

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<contextName>logback</contextName>
<property name="log.path" value="D:\\udiwms\\logs\\UDIC_UCLOUD_SERVER\\" />
<property name="log.path" value="../logs/UDIC_UCLOUD_SERVER/" />
<!--输出到控制台-->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<!-- <filter class="ch.qos.logback.classic.filter.ThresholdFilter">

Loading…
Cancel
Save