SQLSERVER测试

This commit is contained in:
刘名喜 2024-11-27 19:58:14 +08:00
parent d9992854e6
commit 4941a50de5
7 changed files with 697 additions and 1 deletions

View File

@ -16,7 +16,7 @@ spring:
# 从数据源开关/默认关闭
enabled: true
driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://192.168.8.60:5236:1433;DatabaseName=DPG_RH_YQ_20240711
url: jdbc:sqlserver://192.168.8.68:1433;DatabaseName=DPG_RH_YQ_20240711;encrypt=true;trustServerCertificate=true
username: sa
password: rh123456
# 初始连接数

View File

@ -1,5 +1,6 @@
package com.ktg.mes.md.controller;
import com.alibaba.fastjson.JSON;
import com.ktg.common.annotation.Log;
import com.ktg.common.constant.UserConstants;
import com.ktg.common.core.controller.BaseController;
@ -9,6 +10,7 @@ import com.ktg.common.enums.BusinessType;
import com.ktg.common.utils.poi.ExcelUtil;
import com.ktg.mes.md.domain.WmsOutPlan;
import com.ktg.mes.md.domain.WmsOutPlanDetailEntity;
import com.ktg.mes.md.service.IAP0AEService;
import com.ktg.mes.md.service.IWmsOutPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
@ -30,6 +32,9 @@ public class WmsOutPlanController extends BaseController {
@Autowired
private IWmsOutPlanService wmsOutPlanService;
@Autowired
private IAP0AEService aP0AEService;
/**
* 查询出库计划管理列表
*/
@ -46,6 +51,10 @@ public class WmsOutPlanController extends BaseController {
@PreAuthorize("@ss.hasPermi('md:PLAN:list')")
@GetMapping("/list")
public TableDataInfo list(WmsOutPlan wmsOutPlan) {
System.out.println("===================================================");
System.out.println(JSON.toJSONString(this.aP0AEService.selectAllAP0AE()));
System.out.println("===================================================");
startPage();
List<WmsOutPlan> list = wmsOutPlanService.selectWmsOutPlanList(wmsOutPlan);
return getDataTable(list);

View File

@ -0,0 +1,536 @@
package com.ktg.mes.md.domain;
import java.util.Date;
public class AP0AE {
private String AE001 = null;
private String AE002 = null;
private Date AE003 = null;
private String AE004 = null;
private String AE005 = null;
private String AE006 = null;
private String AE007 = null;
private String AE008 = null;
private String AE009 = null;
private String AE010 = null;
private String AE011 = null;
private String AE012 = null;
private String AE013 = null;
private String AE014 = null;
private String AE015 = null;
private String AE016 = null;
private Double AE017 = null;
private Double AE018 = null;
private Double AE019 = null;
private String AE020 = null;
private String AE021 = null;
private Double AE022 = null;
private String AE023 = null;
private String AE024 = null;
private String AE025 = null;
private String AE026 = null;
private String AE027 = null;
private String AE028 = null;
private String UDF01 = null;
private String UDF02 = null;
private String UDF03 = null;
private String UDF04 = null;
private String UDF05 = null;
private String UDF06 = null;
private String UDF07 = null;
private String UDF08 = null;
private String UDF09 = null;
private String UDF10 = null;
private Double UDF51 = null;
private Double UDF52 = null;
private Double UDF53 = null;
private Double UDF54 = null;
private Double UDF55 = null;
private String USER01 = null;
private String USER02 = null;
private Date DATE01 = null;
private Date DATE02 = null;
public AP0AE() {
super();
}
public AP0AE(String AE001, String AE002, Date AE003, String AE004, String AE005, String AE006, String AE007, String AE008, String AE009, String AE010, String AE011, String AE012, String AE013, String AE014, String AE015, String AE016, Double AE017, Double AE018, Double AE019, String AE020, String AE021, Double AE022, String AE023, String AE024, String AE025, String AE026, String AE027, String AE028, String UDF01, String UDF02, String UDF03, String UDF04, String UDF05, String UDF06, String UDF07, String UDF08, String UDF09, String UDF10, Double UDF51, Double UDF52, Double UDF53, Double UDF54, Double UDF55, String USER01, String USER02, Date DATE01, Date DATE02) {
this.AE001 = AE001;
this.AE002 = AE002;
this.AE003 = AE003;
this.AE004 = AE004;
this.AE005 = AE005;
this.AE006 = AE006;
this.AE007 = AE007;
this.AE008 = AE008;
this.AE009 = AE009;
this.AE010 = AE010;
this.AE011 = AE011;
this.AE012 = AE012;
this.AE013 = AE013;
this.AE014 = AE014;
this.AE015 = AE015;
this.AE016 = AE016;
this.AE017 = AE017;
this.AE018 = AE018;
this.AE019 = AE019;
this.AE020 = AE020;
this.AE021 = AE021;
this.AE022 = AE022;
this.AE023 = AE023;
this.AE024 = AE024;
this.AE025 = AE025;
this.AE026 = AE026;
this.AE027 = AE027;
this.AE028 = AE028;
this.UDF01 = UDF01;
this.UDF02 = UDF02;
this.UDF03 = UDF03;
this.UDF04 = UDF04;
this.UDF05 = UDF05;
this.UDF06 = UDF06;
this.UDF07 = UDF07;
this.UDF08 = UDF08;
this.UDF09 = UDF09;
this.UDF10 = UDF10;
this.UDF51 = UDF51;
this.UDF52 = UDF52;
this.UDF53 = UDF53;
this.UDF54 = UDF54;
this.UDF55 = UDF55;
this.USER01 = USER01;
this.USER02 = USER02;
this.DATE01 = DATE01;
this.DATE02 = DATE02;
}
public String getAE001() {
return AE001;
}
public void setAE001(String AE001) {
this.AE001 = AE001;
}
public String getAE002() {
return AE002;
}
public void setAE002(String AE002) {
this.AE002 = AE002;
}
public Date getAE003() {
return AE003;
}
public void setAE003(Date AE003) {
this.AE003 = AE003;
}
public String getAE004() {
return AE004;
}
public void setAE004(String AE004) {
this.AE004 = AE004;
}
public String getAE005() {
return AE005;
}
public void setAE005(String AE005) {
this.AE005 = AE005;
}
public String getAE006() {
return AE006;
}
public void setAE006(String AE006) {
this.AE006 = AE006;
}
public String getAE007() {
return AE007;
}
public void setAE007(String AE007) {
this.AE007 = AE007;
}
public String getAE008() {
return AE008;
}
public void setAE008(String AE008) {
this.AE008 = AE008;
}
public String getAE009() {
return AE009;
}
public void setAE009(String AE009) {
this.AE009 = AE009;
}
public String getAE010() {
return AE010;
}
public void setAE010(String AE010) {
this.AE010 = AE010;
}
public String getAE011() {
return AE011;
}
public void setAE011(String AE011) {
this.AE011 = AE011;
}
public String getAE012() {
return AE012;
}
public void setAE012(String AE012) {
this.AE012 = AE012;
}
public String getAE013() {
return AE013;
}
public void setAE013(String AE013) {
this.AE013 = AE013;
}
public String getAE014() {
return AE014;
}
public void setAE014(String AE014) {
this.AE014 = AE014;
}
public String getAE015() {
return AE015;
}
public void setAE015(String AE015) {
this.AE015 = AE015;
}
public String getAE016() {
return AE016;
}
public void setAE016(String AE016) {
this.AE016 = AE016;
}
public Double getAE017() {
return AE017;
}
public void setAE017(Double AE017) {
this.AE017 = AE017;
}
public Double getAE018() {
return AE018;
}
public void setAE018(Double AE018) {
this.AE018 = AE018;
}
public Double getAE019() {
return AE019;
}
public void setAE019(Double AE019) {
this.AE019 = AE019;
}
public String getAE020() {
return AE020;
}
public void setAE020(String AE020) {
this.AE020 = AE020;
}
public String getAE021() {
return AE021;
}
public void setAE021(String AE021) {
this.AE021 = AE021;
}
public Double getAE022() {
return AE022;
}
public void setAE022(Double AE022) {
this.AE022 = AE022;
}
public String getAE023() {
return AE023;
}
public void setAE023(String AE023) {
this.AE023 = AE023;
}
public String getAE024() {
return AE024;
}
public void setAE024(String AE024) {
this.AE024 = AE024;
}
public String getAE025() {
return AE025;
}
public void setAE025(String AE025) {
this.AE025 = AE025;
}
public String getAE026() {
return AE026;
}
public void setAE026(String AE026) {
this.AE026 = AE026;
}
public String getAE027() {
return AE027;
}
public void setAE027(String AE027) {
this.AE027 = AE027;
}
public String getAE028() {
return AE028;
}
public void setAE028(String AE028) {
this.AE028 = AE028;
}
public String getUDF01() {
return UDF01;
}
public void setUDF01(String UDF01) {
this.UDF01 = UDF01;
}
public String getUDF02() {
return UDF02;
}
public void setUDF02(String UDF02) {
this.UDF02 = UDF02;
}
public String getUDF03() {
return UDF03;
}
public void setUDF03(String UDF03) {
this.UDF03 = UDF03;
}
public String getUDF04() {
return UDF04;
}
public void setUDF04(String UDF04) {
this.UDF04 = UDF04;
}
public String getUDF05() {
return UDF05;
}
public void setUDF05(String UDF05) {
this.UDF05 = UDF05;
}
public String getUDF06() {
return UDF06;
}
public void setUDF06(String UDF06) {
this.UDF06 = UDF06;
}
public String getUDF07() {
return UDF07;
}
public void setUDF07(String UDF07) {
this.UDF07 = UDF07;
}
public String getUDF08() {
return UDF08;
}
public void setUDF08(String UDF08) {
this.UDF08 = UDF08;
}
public String getUDF09() {
return UDF09;
}
public void setUDF09(String UDF09) {
this.UDF09 = UDF09;
}
public String getUDF10() {
return UDF10;
}
public void setUDF10(String UDF10) {
this.UDF10 = UDF10;
}
public Double getUDF51() {
return UDF51;
}
public void setUDF51(Double UDF51) {
this.UDF51 = UDF51;
}
public Double getUDF52() {
return UDF52;
}
public void setUDF52(Double UDF52) {
this.UDF52 = UDF52;
}
public Double getUDF53() {
return UDF53;
}
public void setUDF53(Double UDF53) {
this.UDF53 = UDF53;
}
public Double getUDF54() {
return UDF54;
}
public void setUDF54(Double UDF54) {
this.UDF54 = UDF54;
}
public Double getUDF55() {
return UDF55;
}
public void setUDF55(Double UDF55) {
this.UDF55 = UDF55;
}
public String getUSER01() {
return USER01;
}
public void setUSER01(String USER01) {
this.USER01 = USER01;
}
public String getUSER02() {
return USER02;
}
public void setUSER02(String USER02) {
this.USER02 = USER02;
}
public Date getDATE01() {
return DATE01;
}
public void setDATE01(Date DATE01) {
this.DATE01 = DATE01;
}
public Date getDATE02() {
return DATE02;
}
public void setDATE02(Date DATE02) {
this.DATE02 = DATE02;
}
@Override
public String toString() {
return "AP0AE{" +
"AE001='" + AE001 + '\'' +
", AE002='" + AE002 + '\'' +
", AE003=" + AE003 +
", AE004='" + AE004 + '\'' +
", AE005='" + AE005 + '\'' +
", AE006='" + AE006 + '\'' +
", AE007='" + AE007 + '\'' +
", AE008='" + AE008 + '\'' +
", AE009='" + AE009 + '\'' +
", AE010='" + AE010 + '\'' +
", AE011='" + AE011 + '\'' +
", AE012='" + AE012 + '\'' +
", AE013='" + AE013 + '\'' +
", AE014='" + AE014 + '\'' +
", AE015='" + AE015 + '\'' +
", AE016='" + AE016 + '\'' +
", AE017=" + AE017 +
", AE018=" + AE018 +
", AE019=" + AE019 +
", AE020='" + AE020 + '\'' +
", AE021='" + AE021 + '\'' +
", AE022=" + AE022 +
", AE023='" + AE023 + '\'' +
", AE024='" + AE024 + '\'' +
", AE025='" + AE025 + '\'' +
", AE026='" + AE026 + '\'' +
", AE027='" + AE027 + '\'' +
", AE028='" + AE028 + '\'' +
", UDF01='" + UDF01 + '\'' +
", UDF02='" + UDF02 + '\'' +
", UDF03='" + UDF03 + '\'' +
", UDF04='" + UDF04 + '\'' +
", UDF05='" + UDF05 + '\'' +
", UDF06='" + UDF06 + '\'' +
", UDF07='" + UDF07 + '\'' +
", UDF08='" + UDF08 + '\'' +
", UDF09='" + UDF09 + '\'' +
", UDF10='" + UDF10 + '\'' +
", UDF51=" + UDF51 +
", UDF52=" + UDF52 +
", UDF53=" + UDF53 +
", UDF54=" + UDF54 +
", UDF55=" + UDF55 +
", USER01='" + USER01 + '\'' +
", USER02='" + USER02 + '\'' +
", DATE01=" + DATE01 +
", DATE02=" + DATE02 +
'}';
}
}

View File

@ -0,0 +1,9 @@
package com.ktg.mes.md.mapper;
import com.ktg.mes.md.domain.AP0AE;
import java.util.List;
public interface AP0AEMapper {
List<AP0AE> selectAll();
}

View File

@ -0,0 +1,9 @@
package com.ktg.mes.md.service;
import com.ktg.mes.md.domain.AP0AE;
import java.util.List;
public interface IAP0AEService {
public List<AP0AE> selectAllAP0AE();
}

View File

@ -0,0 +1,23 @@
package com.ktg.mes.md.service.impl;
import com.ktg.common.annotation.DataSource;
import com.ktg.common.enums.DataSourceType;
import com.ktg.mes.md.domain.AP0AE;
import com.ktg.mes.md.mapper.AP0AEMapper;
import com.ktg.mes.md.service.IAP0AEService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class AP0AEServiceImpl implements IAP0AEService {
@Autowired
private AP0AEMapper aP0AEMapper;
@DataSource(DataSourceType.SQLSERVER)
@Override
public List<AP0AE> selectAllAP0AE() {
return this.aP0AEMapper.selectAll();
}
}

View File

@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ktg.mes.md.mapper.AP0AEMapper">
<resultMap type="AP0AE" id="AP0AEResult">
<result property="AE001" column="AE001"/>
<result property="AE002" column="AE002"/>
<result property="AE003" column="AE003"/>
<result property="AE004" column="AE004"/>
<result property="AE005" column="AE005"/>
<result property="AE006" column="AE006"/>
<result property="AE007" column="AE007"/>
<result property="AE008" column="AE008"/>
<result property="AE009" column="AE009"/>
<result property="AE010" column="AE010"/>
<result property="AE011" column="AE011"/>
<result property="AE012" column="AE012"/>
<result property="AE013" column="AE013"/>
<result property="AE014" column="AE014"/>
<result property="AE015" column="AE015"/>
<result property="AE016" column="AE016"/>
<result property="AE017" column="AE017"/>
<result property="AE018" column="AE018"/>
<result property="AE019" column="AE019"/>
<result property="AE020" column="AE020"/>
<result property="AE021" column="AE021"/>
<result property="AE022" column="AE022"/>
<result property="AE023" column="AE023"/>
<result property="AE024" column="AE024"/>
<result property="AE025" column="AE025"/>
<result property="AE026" column="AE026"/>
<result property="AE027" column="AE027"/>
<result property="AE028" column="AE028"/>
<result property="UDF01" column="UDF01"/>
<result property="UDF02" column="UDF02"/>
<result property="UDF03" column="UDF03"/>
<result property="UDF04" column="UDF04"/>
<result property="UDF05" column="UDF05"/>
<result property="UDF06" column="UDF06"/>
<result property="UDF07" column="UDF07"/>
<result property="UDF08" column="UDF08"/>
<result property="UDF09" column="UDF09"/>
<result property="UDF10" column="UDF10"/>
<result property="UDF51" column="UDF51"/>
<result property="UDF52" column="UDF52"/>
<result property="UDF53" column="UDF53"/>
<result property="UDF54" column="UDF54"/>
<result property="UDF55" column="UDF55"/>
<result property="USER01" column="USER01"/>
<result property="USER02" column="USER02"/>
<result property="DATE01" column="DATE01"/>
<result property="DATE02" column="DATE02"/>
</resultMap>
<sql id="AP0AESelectAllCol">
select AE001,
AE002,
AE003,
AE004,
AE005,
AE006,
AE007,
AE008,
AE009,
AE010,
AE011,
AE012,
AE013,
AE014,
AE015,
AE016,
AE017,
AE018,
AE019,
AE020,
AE021,
AE022,
AE023,
AE024,
AE025,
AE026,
AE027,
AE028,
UDF01,
UDF02,
UDF03,
UDF04,
UDF05,
UDF06,
UDF07,
UDF08,
UDF09,
UDF10,
UDF51,
UDF52,
UDF53,
UDF54,
UDF55,
USER01,
USER02,
DATE01,
DATE02
from AP0AE
</sql>
<select id="selectAll" resultMap="AP0AEResult">
<include refid="AP0AESelectAllCol"/>
</select>
</mapper>