Commit 3b0afeb9 authored by 顾俭's avatar 顾俭

fcn -> aship

parent 56b41129
...@@ -32,7 +32,7 @@ flyway { ...@@ -32,7 +32,7 @@ flyway {
url = 'jdbc:mysql://localhost:3306/' url = 'jdbc:mysql://localhost:3306/'
user = 'root' user = 'root'
password = '' password = ''
schemas = ['srm_fcn'] schemas = ['srm_aship']
locations = ['filesystem:upgrade/sql/mysql'] locations = ['filesystem:upgrade/sql/mysql']
outOfOrder = true outOfOrder = true
......
#!/usr/bin/env bash
GROUP_NAME=fcn
PROJECT_NAME=srm
ISSUE_ID=prod
PORT=57002
MEMORY=1024
DOCKER_NAME=${GROUP_NAME}-${PROJECT_NAME}-${ISSUE_ID}
echo "============================================="
echo GROUP_NAME=${GROUP_NAME}
echo PROJECT_NAME=${PROJECT_NAME}
echo PORT=${PORT}
echo MEMORY=${MEMORY}
echo DOCKER_NAME=${DOCKER_NAME}
echo "============================================="
echo "stop docker ${DOCKER_NAME}"
docker rm -f ${DOCKER_NAME}
echo "Update code..."
git checkout "master"
git branch -d "#${ISSUE_ID}"
git fetch
git checkout -b "#${ISSUE_ID}" "origin/#${ISSUE_ID}"
echo "Checkout branch origin/"${ISSUE_ID}
cp /alidata1/dev/bq/gradle-cache-fcn /alidata1/dev/bq/gradle-cache-fcn-${ISSUE_ID} -R
echo "start docker ${DOCKER_NAME}"
docker run -d \
--user $UID \
--name ${DOCKER_NAME} \
-v "$PWD":/${PROJECT_NAME} \
-v /alidata1/dev/bq/gradle-cache-fcn-${ISSUE_ID}:/root/.gradle \
-p ${PORT}:1098 \
-w /${PROJECT_NAME} \
gradle:alpine \
bash -c "gradle flywayRepair -Pflyway.url=jdbc:mysql://project.benchmarkchina.com:3306/srm_fcn -Pflyway.user=root -Pflyway.password=benchmark123 -Pflyway.locations=filesystem:upgrade/sql/mysql; gradle flywayMigrate -Pflyway.url=jdbc:mysql://project.benchmarkchina.com:3306/srm -Pflyway.user=root -Pflyway.password=benchmark123 -Pflyway.locations=filesystem:upgrade/sql/mysql -Pflyway.outOfOrder=true -Pflyway.validateOnMigrate=false -Pflyway.ignoreMissingMigrations=true -Pflyway.ignoreFutureMigrations=true; gradle build; gradle bootRun"
...@@ -7,10 +7,10 @@ if [ -z "$1" ] ...@@ -7,10 +7,10 @@ if [ -z "$1" ]
fi fi
GROUP_NAME=fcn GROUP_NAME=aship
PROJECT_NAME=srm PROJECT_NAME=srm
ISSUE_ID=$1 ISSUE_ID=$1
PORT=57001 PORT=58001
MEMORY=1024 MEMORY=1024
DOCKER_NAME=${GROUP_NAME}-${PROJECT_NAME}-ISSUE DOCKER_NAME=${GROUP_NAME}-${PROJECT_NAME}-ISSUE
...@@ -33,7 +33,7 @@ git checkout -b "#${ISSUE_ID}" "origin/#${ISSUE_ID}" ...@@ -33,7 +33,7 @@ git checkout -b "#${ISSUE_ID}" "origin/#${ISSUE_ID}"
echo "Checkout branch origin/"${ISSUE_ID} echo "Checkout branch origin/"${ISSUE_ID}
cp /alidata1/dev/bq/gradle-cache-fcn /alidata1/dev/bq/gradle-cache-fcn-new -R cp /alidata1/dev/bq/gradle-cache-aship /alidata1/dev/bq/gradle-cache-aship-new -R
echo "start docker ${DOCKER_NAME}" echo "start docker ${DOCKER_NAME}"
...@@ -41,10 +41,10 @@ docker run -d \ ...@@ -41,10 +41,10 @@ docker run -d \
--user $UID \ --user $UID \
--name ${DOCKER_NAME} \ --name ${DOCKER_NAME} \
-v "$PWD":/${PROJECT_NAME} \ -v "$PWD":/${PROJECT_NAME} \
-v /alidata1/dev/bq/gradle-cache-fcn-new:/root/.gradle \ -v /alidata1/dev/bq/gradle-cache-aship-new:/root/.gradle \
-v /etc/localtime:/etc/localtime:ro \ -v /etc/localtime:/etc/localtime:ro \
-p ${PORT}:1098 \ -p ${PORT}:1098 \
-w /${PROJECT_NAME} \ -w /${PROJECT_NAME} \
gradle:alpine \ gradle:alpine \
bash -c "gradle flywayRepair -Pflyway.url=jdbc:mysql://project.benchmarkchina.com:3306/srm_fcn -Pflyway.user=root -Pflyway.password=benchmark123 -Pflyway.locations=filesystem:upgrade/sql/mysql; gradle flywayMigrate -Pflyway.url=jdbc:mysql://project.benchmarkchina.com:3306/srm -Pflyway.user=root -Pflyway.password=benchmark123 -Pflyway.locations=filesystem:upgrade/sql/mysql -Pflyway.outOfOrder=true -Pflyway.validateOnMigrate=false -Pflyway.ignoreMissingMigrations=true -Pflyway.ignoreFutureMigrations=true; gradle bootRun" bash -c "gradle flywayRepair -Pflyway.url=jdbc:mysql://project.benchmarkchina.com:3306/srm_aship -Pflyway.user=root -Pflyway.password=benchmark123 -Pflyway.locations=filesystem:upgrade/sql/mysql; gradle flywayMigrate -Pflyway.url=jdbc:mysql://project.benchmarkchina.com:3306/srm -Pflyway.user=root -Pflyway.password=benchmark123 -Pflyway.locations=filesystem:upgrade/sql/mysql -Pflyway.outOfOrder=true -Pflyway.validateOnMigrate=false -Pflyway.ignoreMissingMigrations=true -Pflyway.ignoreFutureMigrations=true; gradle bootRun"
SIT: SIT:
URL: http://project.benchmarkchina.com:57000/ URL: http://project.benchmarkchina.com:58000/
Database:jdbc:mysql://project.benchmarkchina.com:3306/srm_fcn?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull Database:jdbc:mysql://project.benchmarkchina.com:3306/srm_aship?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
环境启动:目录:/alidata1/dev/fcn/srm 脚本:run-docker.sh 环境启动:目录:/alidata1/dev/aship/srm 脚本:run-docker.sh
ISSUE: ISSUE:
URL: http://project.benchmarkchina.com:57001/ URL: http://project.benchmarkchina.com:58001/
Database:jdbc:mysql://project.benchmarkchina.com:3306/srm_fcn?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull Database:jdbc:mysql://project.benchmarkchina.com:3306/srm_aship?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
环境启动:目录:/alidata1/dev/launcher/fcn/srm 脚本:issue.sh issueNo(如执行:sh issue.sh 2) 环境启动:目录:/alidata1/dev/launcher/aship/srm 脚本:issue.sh issueNo(如执行:sh issue.sh 2)
Staging: Staging:
URL: http://58.210.204.82:1098/ URL: http://58.210.204.82:1098/
......
#!/usr/bin/env bash #!/usr/bin/env bash
GROUP_NAME=fcn GROUP_NAME=aship
PROJECT_NAME=srm PROJECT_NAME=srm
PORT=57000 PORT=58000
PROFILE=default PROFILE=default
MEMORY=1024 MEMORY=1024
...@@ -29,10 +29,10 @@ docker run -d \ ...@@ -29,10 +29,10 @@ docker run -d \
--user $UID \ --user $UID \
--name ${DOCKER_NAME} \ --name ${DOCKER_NAME} \
-v "$PWD":/${PROJECT_NAME} \ -v "$PWD":/${PROJECT_NAME} \
-v /alidata1/dev/bq/gradle-cache-fcn:/root/.gradle \ -v /alidata1/dev/bq/gradle-cache-aship:/root/.gradle \
-v /etc/localtime:/etc/localtime:ro \ -v /etc/localtime:/etc/localtime:ro \
-p ${PORT}:1098 \ -p ${PORT}:1098 \
-w /${PROJECT_NAME} \ -w /${PROJECT_NAME} \
gradle:alpine \ gradle:alpine \
bash -c "gradle flywayRepair -Pflyway.url=jdbc:mysql://project.benchmarkchina.com:3306/srm_fcn -Pflyway.user=root -Pflyway.password=benchmark123 -Pflyway.locations=filesystem:upgrade/sql/mysql; gradle flywayMigrate -Pflyway.url=jdbc:mysql://project.benchmarkchina.com:3306/srm -Pflyway.user=root -Pflyway.password=benchmark123 -Pflyway.locations=filesystem:upgrade/sql/mysql -Pflyway.outOfOrder=true -Pflyway.validateOnMigrate=false -Pflyway.ignoreMissingMigrations=true -Pflyway.ignoreFutureMigrations=true; gradle build;gradle bootRun" bash -c "gradle flywayRepair -Pflyway.url=jdbc:mysql://project.benchmarkchina.com:3306/srm_aship -Pflyway.user=root -Pflyway.password=benchmark123 -Pflyway.locations=filesystem:upgrade/sql/mysql; gradle flywayMigrate -Pflyway.url=jdbc:mysql://project.benchmarkchina.com:3306/srm -Pflyway.user=root -Pflyway.password=benchmark123 -Pflyway.locations=filesystem:upgrade/sql/mysql -Pflyway.outOfOrder=true -Pflyway.validateOnMigrate=false -Pflyway.ignoreMissingMigrations=true -Pflyway.ignoreFutureMigrations=true; gradle build;gradle bootRun"
...@@ -106,20 +106,20 @@ srm: ...@@ -106,20 +106,20 @@ srm:
supplierErpSend: false supplierErpSend: false
email: email:
enable: false enable: false
recipients: srm@mail.forcecon.com,gujian@benchmarkchina.com,raven@benchmarkchina.com recipients: gujian@benchmarkchina.com,raven@benchmarkchina.com
--- # default profile --- # default profile
spring: spring:
profiles: default profiles: default
datasource: datasource:
driverClassName: com.mysql.jdbc.Driver driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://project.benchmarkchina.com:3306/srm_fcn?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull url: jdbc:mysql://project.benchmarkchina.com:3306/srm_aship?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
username: root username: root
password: benchmark123 password: benchmark123
srm: srm:
dev: false dev: false
aclSchema: srm_fcn aclSchema: srm_aship
companyName: 聚力 companyName: 一舟
logging: logging:
level: level:
...@@ -147,14 +147,7 @@ spring: ...@@ -147,14 +147,7 @@ spring:
max-file-size: 20MB max-file-size: 20MB
max-request-size: 20MB max-request-size: 20MB
location: /home/srm/SRM/IOne-SRM-Prod/upload location: /home/srm/SRM/IOne-SRM-Prod/upload
mail:
host: mail.forcecon.com
password: 1m7tc10p
port: 25
username: srm@mail.forcecon.com
properties.mail.smtp.auth: true
properties.mail.smtp.starttls.enable: false
properties.mail.debug: true
server: server:
port: 1099 port: 1099
session: session:
...@@ -162,7 +155,7 @@ server: ...@@ -162,7 +155,7 @@ server:
srm: srm:
dev: false dev: false
aclSchema: srm aclSchema: srm
companyName: 聚力 companyName: 一舟
bannerInfo: bannerInfo:
print: print:
printInSrm: false printInSrm: false
...@@ -193,7 +186,7 @@ srm: ...@@ -193,7 +186,7 @@ srm:
defaultPoChgReturnType: 0 defaultPoChgReturnType: 0
email: email:
enable: true enable: true
recipients: srm@mail.forcecon.com,gujian@benchmarkchina.com,raven@benchmarkchina.com recipients: gujian@benchmarkchina.com,raven@benchmarkchina.com
logoImg: logoImg:
logging: logging:
level: level:
...@@ -228,7 +221,7 @@ server: ...@@ -228,7 +221,7 @@ server:
srm: srm:
dev: false dev: false
aclSchema: srm_staging aclSchema: srm_staging
companyName: 聚力 companyName: 一舟
bannerInfo: 测试数据! 请勿送货! bannerInfo: 测试数据! 请勿送货!
print: print:
printInSrm: false printInSrm: false
...@@ -282,7 +275,7 @@ server: ...@@ -282,7 +275,7 @@ server:
srm: srm:
dev: true dev: true
aclSchema: srm_staging aclSchema: srm_staging
companyName: 聚力 companyName: 一舟
bannerInfo: 测试数据! 请勿送货! bannerInfo: 测试数据! 请勿送货!
print: print:
printInSrm: false printInSrm: false
...@@ -329,7 +322,7 @@ server: ...@@ -329,7 +322,7 @@ server:
srm: srm:
dev: true dev: true
aclSchema: srm aclSchema: srm
companyName: 聚力 companyName: 一舟
bannerInfo: 正式区 bannerInfo: 正式区
print: print:
printInSrm: false printInSrm: false
...@@ -374,25 +367,25 @@ spring: ...@@ -374,25 +367,25 @@ spring:
datasource: datasource:
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://project.benchmarkchina.com:3306/srm_fcn?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&useSSL=false url: jdbc:mysql://project.benchmarkchina.com:3306/srm_aship?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&useSSL=false
username: root username: root
password: benchmark123 password: benchmark123
http: http:
multipart: multipart:
max-file-size: 20MB max-file-size: 20MB
max-request-size: 20MB max-request-size: 20MB
location: /Users/TryXD/devRep/fcn location: /Users/TryXD/devRep/aship
resources: resources:
static-locations: file:/Users/TryXD/devRep/fcn/srm, classpath:/static/,classpath:/META-INF/resources/,classpath:/resources/,classpath:/public/ static-locations: file:/Users/TryXD/devRep/aship/srm, classpath:/static/,classpath:/META-INF/resources/,classpath:/resources/,classpath:/public/
mail: # mail:
host: mail.forcecon.com # host: mail.forcecon.com
password: 1m7tc10p # password: 1m7tc10p
port: 25 # port: 25
username: srm@mail.forcecon.com # username: srm@mail.forcecon.com
properties.mail.smtp.auth: true # properties.mail.smtp.auth: true
properties.mail.smtp.starttls.enable: false # properties.mail.smtp.starttls.enable: false
properties.mail.debug: true # properties.mail.debug: true
server: server:
port: 8080 port: 8080
...@@ -401,7 +394,7 @@ server: ...@@ -401,7 +394,7 @@ server:
srm: srm:
dev: true dev: true
aclSchema: srm_fcn aclSchema: srm_aship
companyName: 公司名 companyName: 公司名
bannerInfo: 测试数据! 请勿送货! bannerInfo: 测试数据! 请勿送货!
print: print:
...@@ -435,7 +428,7 @@ srm: ...@@ -435,7 +428,7 @@ srm:
supplierErpSend: false supplierErpSend: false
email: email:
enable: true enable: true
recipients: gujian@benchmarkchina.com,raven@benchmarkchina.com,srm@mail.forcecon.com recipients: gujian@benchmarkchina.com,raven@benchmarkchina.com
logging: logging:
level: level:
org.hibernate.SQL: DEBUG org.hibernate.SQL: DEBUG
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration> <hibernate-configuration>
<session-factory> <session-factory>
<property name="connection.url">jdbc:mysql://project.benchmarkchina.com:3306/srm_fcn</property> <property name="connection.url">jdbc:mysql://project.benchmarkchina.com:3306/srm_aship</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<mapping class="com.i1.srm.base.dao.entity.BaseDictFile"/> <mapping class="com.i1.srm.base.dao.entity.BaseDictFile"/>
......
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
item.dtlIndex = index + 1; item.dtlIndex = index + 1;
var temp1 = { var temp1 = {
index: index + 1, index: index + 1,
SupplierAndFacturer: '聚力', SupplierAndFacturer: '一舟',
productName: item.productName, productName: item.productName,
hscode: item.hscode, hscode: item.hscode,
currencyName: item.currency == null ? "" : item.currency.name, currencyName: item.currency == null ? "" : item.currency.name,
......
...@@ -292,7 +292,7 @@ ...@@ -292,7 +292,7 @@
item.dtlIndex = index + 1; item.dtlIndex = index + 1;
var temp1 = { var temp1 = {
index: index + 1, index: index + 1,
SupplierAndFacturer: '聚力', SupplierAndFacturer: '一舟',
productName: item.productName, productName: item.productName,
hscode: item.hscode, hscode: item.hscode,
currencyName: item.currency == null ? "" : item.currency.name, currencyName: item.currency == null ? "" : item.currency.name,
......
...@@ -1934,7 +1934,7 @@ ...@@ -1934,7 +1934,7 @@
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> <div class="form-group">
<label>聚力)商品名称</label> <label>一舟)商品名称</label>
<input type="text" class="form-control" maxlength="200" <input type="text" class="form-control" maxlength="200"
ng-model="currentInvestCustomsdoc.productName" ng-model="currentInvestCustomsdoc.productName"
required> required>
...@@ -1945,7 +1945,7 @@ ...@@ -1945,7 +1945,7 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> <div class="form-group">
<label>聚力)HSCODE</label> <label>一舟)HSCODE</label>
<input type="text" class="form-control" maxlength="100" <input type="text" class="form-control" maxlength="100"
ng-model="currentInvestCustomsdoc.hscode" required/> ng-model="currentInvestCustomsdoc.hscode" required/>
<span style="color: red;" <span style="color: red;"
...@@ -1955,7 +1955,7 @@ ...@@ -1955,7 +1955,7 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> <div class="form-group">
<label>聚力)币别</label> <label>一舟)币别</label>
<select class="form-control" style="width: 100%;" <select class="form-control" style="width: 100%;"
ng-model="currentInvestCustomsdoc.currency.id" required> ng-model="currentInvestCustomsdoc.currency.id" required>
<option ng-repeat="item in currencyData" <option ng-repeat="item in currencyData"
...@@ -1968,7 +1968,7 @@ ...@@ -1968,7 +1968,7 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> <div class="form-group">
<label>聚力)备案单价</label> <label>一舟)备案单价</label>
<input class="form-control" <input class="form-control"
ng-pattern="/^(\d{1,13}|\d{1,13}\.\d{1,5})$/" ng-pattern="/^(\d{1,13}|\d{1,13}\.\d{1,5})$/"
name="recodePrice" name="recodePrice"
...@@ -1980,7 +1980,7 @@ ...@@ -1980,7 +1980,7 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> <div class="form-group">
<label>聚力)备案单位</label> <label>一舟)备案单位</label>
<input type="text" class="form-control" maxlength="100" <input type="text" class="form-control" maxlength="100"
ng-model="currentInvestCustomsdoc.recodeComp" required/> ng-model="currentInvestCustomsdoc.recodeComp" required/>
<span style="color: red;" <span style="color: red;"
......
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
currency: item.currency, currency: item.currency,
supplierInvest: item.supplierInvest, supplierInvest: item.supplierInvest,
index: index + 1, index: index + 1,
SupplierAndFacturer: '聚力', SupplierAndFacturer: '一舟',
productName: item.productName, productName: item.productName,
hscode: item.hscode, hscode: item.hscode,
currencyName: item.currency == null ? "" : item.currency.name, currencyName: item.currency == null ? "" : item.currency.name,
...@@ -838,7 +838,7 @@ ...@@ -838,7 +838,7 @@
currency: $scope.currentInvestCustomsdoc.currency, currency: $scope.currentInvestCustomsdoc.currency,
index: $scope.currentInvestCustomsdoc.index, index: $scope.currentInvestCustomsdoc.index,
supplierInvest: $scope.currentSupplierInvestMain, supplierInvest: $scope.currentSupplierInvestMain,
SupplierAndFacturer: '聚力', SupplierAndFacturer: '一舟',
productName: $scope.currentInvestCustomsdoc.productName, productName: $scope.currentInvestCustomsdoc.productName,
hscode: $scope.currentInvestCustomsdoc.hscode, hscode: $scope.currentInvestCustomsdoc.hscode,
currencyName: $scope.currentInvestCustomsdoc.currency.name, currencyName: $scope.currentInvestCustomsdoc.currency.name,
......
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
item.dtlIndex = index + 1; item.dtlIndex = index + 1;
var temp1 = { var temp1 = {
index: index + 1, index: index + 1,
SupplierAndFacturer: '聚力', SupplierAndFacturer: '一舟',
productName: item.productName, productName: item.productName,
hscode: item.hscode, hscode: item.hscode,
currencyName: item.currency == null ? "" : item.currency.name, currencyName: item.currency == null ? "" : item.currency.name,
......
...@@ -13,10 +13,10 @@ import java.net.URL; ...@@ -13,10 +13,10 @@ import java.net.URL;
public class HttpURLConnectionTest { public class HttpURLConnectionTest {
@Ignore @Ignore
@Test @Test
public void fcnTest() { public void httpWsTest() {
try { try {
//第一步:创建服务地址,不是WSDL地址 //第一步:创建服务地址,不是WSDL地址
URL url = new URL("http://192.168.1.30:6394/ws/r/aws_ttsrv4_toptest");//聚力 URL url = new URL("http://192.168.1.30:6394/ws/r/aws_ttsrv4_toptest");//一舟
//第二步:打开一个通向服务地址的连接 //第二步:打开一个通向服务地址的连接
HttpURLConnection connection = (HttpURLConnection) url.openConnection(); HttpURLConnection connection = (HttpURLConnection) url.openConnection();
//第三步:设置参数 //第三步:设置参数
...@@ -40,7 +40,7 @@ public class HttpURLConnectionTest { ...@@ -40,7 +40,7 @@ public class HttpURLConnectionTest {
" <tip:request>123</tip:request>\n" + " <tip:request>123</tip:request>\n" +
" </tip:SRM_fahuoRequest>\n" + " </tip:SRM_fahuoRequest>\n" +
" </soapenv:Body>\n" + " </soapenv:Body>\n" +
"</soapenv:Envelope>"; //聚力 "</soapenv:Envelope>"; //一舟
OutputStream os = connection.getOutputStream(); OutputStream os = connection.getOutputStream();
os.write(soapXML.getBytes()); os.write(soapXML.getBytes());
......
...@@ -24,7 +24,7 @@ public class JaxWsProxyTest { ...@@ -24,7 +24,7 @@ public class JaxWsProxyTest {
" <tip:request>123</tip:request>\n" + " <tip:request>123</tip:request>\n" +
" </tip:SRM_fahuoRequest>\n" + " </tip:SRM_fahuoRequest>\n" +
" </soapenv:Body>\n" + " </soapenv:Body>\n" +
"</soapenv:Envelope>"; //聚力 "</soapenv:Envelope>"; //一舟
soapXML = "123"; soapXML = "123";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment