三维人员修改

This commit is contained in:
lvleigang 2025-04-01 15:53:15 +08:00
parent 910f81a931
commit d56cc9facb
9 changed files with 183 additions and 36 deletions

1
.gitignore vendored
View File

@ -53,6 +53,7 @@ $RECYCLE.BIN/
# Windows shortcuts # Windows shortcuts
*.lnk *.lnk
./idea/ ./idea/
/idea/
/buildpackage/src/main/resources/banner.txt /buildpackage/src/main/resources/banner.txt
/webapp/target/ /webapp/target/
/service/target/ /service/target/

View File

@ -55,6 +55,18 @@
<profile.active>xel</profile.active> <profile.active>xel</profile.active>
</properties> </properties>
</profile> </profile>
<profile>
<id>zhouju</id> <!--zj-->
<properties>
<profile.active>zhouju</profile.active>
</properties>
</profile>
<profile>
<id>zhoujutest</id> <!--zjtest-->
<properties>
<profile.active>zhoujutest</profile.active>
</properties>
</profile>
</profiles> </profiles>
<build> <build>
<finalName>kangarooDataCenterV3</finalName> <finalName>kangarooDataCenterV3</finalName>

View File

@ -67,6 +67,8 @@ public class ZjMaterielSynchronizationEventEntity extends BaseEntity {
private String field0047code;//物料类别 private String field0047code;//物料类别
private String field0048;//计量单位 private String field0048;//计量单位
private String field0048code;//计量单位 private String field0048code;//计量单位
private String accName;//
private String caccId;//
public String getFormmain_id() { public String getFormmain_id() {
@ -500,5 +502,21 @@ public class ZjMaterielSynchronizationEventEntity extends BaseEntity {
public void setField0043code(String field0043code) { public void setField0043code(String field0043code) {
this.field0043code = field0043code; this.field0043code = field0043code;
} }
public String getAccName() {
return accName;
}
public void setAccName(String accName) {
this.accName = accName;
}
public String getCaccId() {
return caccId;
}
public void setCaccId(String caccId) {
this.caccId = caccId;
}
} }

View File

@ -86,7 +86,7 @@ public class ZjMaterielSynchronizationEventServiceImpl extends BaseService<ZjMat
@Override @Override
@DSTransactional() @DSTransactional()
public JsonResultEntity materielSynchronization(JSONObject requestJson) { public JsonResultEntity materielSynchronization(JSONObject requestJson) {
requestJson = setdata(); //requestJson = setdata();
JSONObject reqJson = new JSONObject(); JSONObject reqJson = new JSONObject();
JSONObject jsonStr = requestJson.getJSONObject("jsonStr"); JSONObject jsonStr = requestJson.getJSONObject("jsonStr");
JSONObject businessDataStr = jsonStr.getJSONObject("businessDataStr"); JSONObject businessDataStr = jsonStr.getJSONObject("businessDataStr");
@ -304,7 +304,7 @@ public class ZjMaterielSynchronizationEventServiceImpl extends BaseService<ZjMat
inventorySubEntity.setDataSourceCode(zju8); inventorySubEntity.setDataSourceCode(zju8);
inventorySubEntity.setcInvSubCode(entity.getField0005()); inventorySubEntity.setcInvSubCode(entity.getField0005());
inventorySubEntity = iInventorySubService.getInvSub(inventorySubEntity); inventorySubEntity = iInventorySubService.getInvSub(inventorySubEntity);
inventoryExtEntity.setDataSourceCode(zju8); inventorySubEntity.setDataSourceCode(zju8);
}else { }else {
for (int i1 = 0; i1 < inventoryEntities.size(); i1++) { for (int i1 = 0; i1 < inventoryEntities.size(); i1++) {
@ -316,18 +316,20 @@ public class ZjMaterielSynchronizationEventServiceImpl extends BaseService<ZjMat
inventoryExtEntity.setDataSourceCode(zju8); inventoryExtEntity.setDataSourceCode(zju8);
inventoryExtEntity.setcInvCode(entity.getField0043code()); inventoryExtEntity.setcInvCode(entity.getField0043code());
inventoryExtEntity = inventoryExtService.getInvExt(inventoryExtEntity); inventoryExtEntity = inventoryExtService.getInvExt(inventoryExtEntity);
inventoryExtEntity.setDataSourceCode(zju8);
inventorySubEntity.setDataSourceCode(zju8); inventorySubEntity.setDataSourceCode(zju8);
inventorySubEntity.setcInvSubCode(entity.getField0043code()); inventorySubEntity.setcInvSubCode(entity.getField0043code());
inventorySubEntity = iInventorySubService.getInvSub(inventorySubEntity); inventorySubEntity = iInventorySubService.getInvSub(inventorySubEntity);
inventorySubEntity.setDataSourceCode(zju8);
} }
inventoryExtEntity.setcInvCode(wlcode.toString()); inventoryExtEntity.setcInvCode(wlcode.toString());
inventorySubEntity.setcInvSubCode(wlcode.toString()); inventorySubEntity.setcInvSubCode(wlcode.toString());
entity.setField0005(wlcode.toString()); entity.setField0005(wlcode.toString());
//定制化字段 //定制化字段
inventoryEntity.setDataSourceCode(zju8); inventoryEntity.setDataSourceCode(zju8);
inventoryEntity.setAcc_name("UFDATA_999_2025.dbo."); inventoryEntity.setAcc_name(entity.getAccName());
inventoryEntity.setCacc_id("025"); inventoryEntity.setCacc_id(entity.getCaccId());
logger.error("物料编码"+wlcode); logger.error("物料编码"+wlcode);
//inventoryEntity.setAcc_name("UFDATA_998_2014.dbo."); //inventoryEntity.setAcc_name("UFDATA_998_2014.dbo.");
//inventoryEntity.setCacc_id("998"); //inventoryEntity.setCacc_id("998");

View File

@ -0,0 +1,53 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: GBK
file:
# 日志保存路径
path: D:\yongansystem\log\zs
spring:
data:
mongodb:
# host: 192.168.2.237
# port: 27017
# database: businesscenter
# auto-index-creation: true
# password: hzya1314
# username: hzya
flyway:
# 启动flyway migration, 默认为true
enabled: false
datasource:
dynamic:
druid:
filters: stat,log4j2
datasource:
master:
url: jdbc:mysql://127.0.0.1:3306/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: bd993088e8a7c3dc5f44441617f9b4bf
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: D:\yongansystem\file
tomcatpath: D:\yongansystem\apache-tomcat-9.0.97
pluginpath: D:\yongansystem\apache-tomcat-9.0.97\webapps\kangarooDataCenterV3\WEB-INF\classes
zt:
url: http://127.0.0.1:10086/kangarooDataCenterV3/entranceController/externalCallInterface
database:
# databaseName: businesscenter
# host: 192.168.2.237
# port: 3306
# username: root
# password: hzya@1314
# filePase: /Users/apple/Desktop/log
# fileName: data.sql
#sftp:
# host: 192.168.2.237
# port: 9091
# username: cs237
# password: hzya@1314
# filePase: /databaseBack

View File

@ -0,0 +1,53 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: GBK
file:
# 日志保存路径
path: D:\yongansystem\log\test
spring:
data:
mongodb:
# host: 192.168.2.237
# port: 27017
# database: businesscenter
# auto-index-creation: true
# password: hzya1314
# username: hzya
flyway:
# 启动flyway migration, 默认为true
enabled: false
datasource:
dynamic:
druid:
filters: stat,log4j2
datasource:
master:
url: jdbc:mysql://127.0.0.1:3306/businesscenter_test?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: bd993088e8a7c3dc5f44441617f9b4bf
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: D:\yongansystem\file
tomcatpath: D:\yongansystem\apache-tomcat-9.0.97
pluginpath: D:\yongansystem\apache-tomcat-9.0.97\webapps\kangarooDataCenterV3\WEB-INF\classes
zt:
url: http://127.0.0.1:10086/kangarooDataCenterV3/entranceController/externalCallInterface
database:
# databaseName: businesscenter
# host: 192.168.2.237
# port: 3306
# username: root
# password: hzya@1314
# filePase: /Users/apple/Desktop/log
# fileName: data.sql
#sftp:
# host: 192.168.2.237
# port: 9091
# username: cs237
# password: hzya@1314
# filePase: /databaseBack

View File

@ -40,7 +40,7 @@ public class temButtom {
@Test @Test
public void test01() { public void test01() {
String a = AESUtil.encrypt("hzya@1314"); String a = AESUtil.encrypt("hzya1314");
System.out.println(a); System.out.println(a);
String b = AESUtil.decrypt("62e4295b615a30dbf3b8ee96f41c820b"); String b = AESUtil.decrypt("62e4295b615a30dbf3b8ee96f41c820b");
System.out.println(b); System.out.println(b);

View File

@ -16,6 +16,16 @@
<result property="cidefine7" column="cidefine7" /> <result property="cidefine7" column="cidefine7" />
</resultMap> </resultMap>
<!-- <sql id="InventoryExtEntity_Base_Column_List">-->
<!-- cInvCode,-->
<!-- cidefine1,-->
<!-- cidefine2,-->
<!-- cidefine3,-->
<!-- cidefine4,-->
<!-- cidefine5,-->
<!-- cidefine6,-->
<!-- cidefine7-->
<!-- </sql>-->
<sql id="InventoryExtEntity_Base_Column_List"> <sql id="InventoryExtEntity_Base_Column_List">
cInvCode, cInvCode,
cidefine1, cidefine1,
@ -23,10 +33,8 @@
cidefine3, cidefine3,
cidefine4, cidefine4,
cidefine5, cidefine5,
cidefine6, cidefine6
cidefine7
</sql> </sql>
<!--通过ID获取数据 --> <!--通过ID获取数据 -->
<select id="entity_get" resultMap="get-InventoryExtEntity-result"> <select id="entity_get" resultMap="get-InventoryExtEntity-result">
select select

54
pom.xml
View File

@ -470,33 +470,33 @@
<artifactId>maven-war-plugin</artifactId> <artifactId>maven-war-plugin</artifactId>
<configuration> <configuration>
<webResources> <webResources>
<resource> <!-- <resource>-->
<directory>${basedir}/../base-service/src/main/webapp/WEB-INF/lib</directory> <!-- <directory>${basedir}/../base-service/src/main/webapp/WEB-INF/lib</directory>-->
<targetPath>WEB-INF/lib/</targetPath> <!-- <targetPath>WEB-INF/lib/</targetPath>-->
<filtering>false</filtering> <!-- <filtering>false</filtering>-->
<includes> <!-- <includes>-->
<!-- 匹配所有jar包 --> <!-- &lt;!&ndash; 匹配所有jar包 &ndash;&gt;-->
<include>**/*.jar</include> <!-- <include>**/*.jar</include>-->
</includes> <!-- </includes>-->
</resource> <!-- </resource>-->
<resource> <!-- <resource>-->
<directory>${basedir}/../fw-bip/src/main/webapp/WEB-INF/lib</directory> <!-- <directory>${basedir}/../fw-bip/src/main/webapp/WEB-INF/lib</directory>-->
<targetPath>WEB-INF/lib/</targetPath> <!-- <targetPath>WEB-INF/lib/</targetPath>-->
<filtering>false</filtering> <!-- <filtering>false</filtering>-->
<includes> <!-- <includes>-->
<!-- 匹配所有jar包 --> <!-- &lt;!&ndash; 匹配所有jar包 &ndash;&gt;-->
<include>**/*.jar</include> <!-- <include>**/*.jar</include>-->
</includes> <!-- </includes>-->
</resource> <!-- </resource>-->
<resource> <!-- <resource>-->
<directory>${basedir}/../fw-ningbobank/src/main/webapp/WEB-INF/lib</directory> <!-- <directory>${basedir}/../fw-ningbobank/src/main/webapp/WEB-INF/lib</directory>-->
<targetPath>WEB-INF/lib/</targetPath> <!-- <targetPath>WEB-INF/lib/</targetPath>-->
<filtering>false</filtering> <!-- <filtering>false</filtering>-->
<includes> <!-- <includes>-->
<!-- 匹配所有jar包 --> <!-- &lt;!&ndash; 匹配所有jar包 &ndash;&gt;-->
<include>**/*.jar</include> <!-- <include>**/*.jar</include>-->
</includes> <!-- </includes>-->
</resource> <!-- </resource>-->
</webResources> </webResources>
</configuration> </configuration>
</plugin> </plugin>