Your Name 3 years ago
parent
commit
3adfe92b10

+ 0
- 5
deploy/bootstrap View File

1
-#!/bin/bash
2
-#
3
-#
4
-
5
-java -jar ./ubpa-0.0.7.jar

+ 0
- 35
deploy/s.yml View File

1
-edition: 1.0.0          #  命令行YAML规范版本,遵循语义化版本(Semantic Versioning)规范。
2
-name: ubpa-plat        #  项目名称。
3
-access: default         #  密钥别名。
4
-
5
-services:
6
-  dianyang: #  服务名称。
7
-    component: devsapp/fc
8
-    props: #  组件的属性值。
9
-      region: cn-shanghai
10
-      service:
11
-        name: ubpa-plat
12
-        description: 'ubpa-plat'
13
-        internetAccess: true
14
-      function:
15
-        name: ubpa-func
16
-        description: 'ubpa-func'
17
-        ossBucket: yz-serverless
18
-        ossKey: ubpa/ubpa-0.0.7.zip
19
-        handler: 'com.njyunzhi.ubpa.UbpaApplication::main'
20
-        memorySize: 1024
21
-        timeout: 30
22
-        runtime: custom
23
-        caPort: 9000
24
-        initializationTimeout: 30
25
-        instanceConcurrency: 10
26
-      triggers:
27
-        - name: httpUbpa
28
-          type: http
29
-          config:
30
-            authType: anonymous
31
-            methods:
32
-              - GET
33
-              - POST
34
-              - PUT
35
-              - DELETE

+ 24
- 0
deploy/start.sh View File

1
+#!/bin/sh
2
+#
3
+#
4
+#source /etc/profile
5
+
6
+JAVA_HOME=/opt/apps/jdk1.8.0_331
7
+JRE_HOME=$JAVA_HOME/jre
8
+PATH=$PATH:$JAVA_HOME/bin
9
+CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
10
+export JAVA_HOME
11
+export JRE_HOME
12
+export PATH
13
+export CLASSPATH
14
+
15
+SERVICE_HOME="/opt/apps/pet-identity/service"
16
+LOG="$SERVICE_HOME/logs/service.log"
17
+JAR=$(ls -lt ${SERVICE_HOME}/*.jar|head -n1|rev|cut -d" " -f1|rev)
18
+LIBS="$SERVICE_HOME/libs"
19
+CONFIG_PATH="$SERVICE_HOME/config/"
20
+
21
+nohup java -Dloader.path=$LIBS -jar $JAR --spring.config.location=$CONFIG_PATH > $LOG 2>&1 &
22
+
23
+tail -f $LOG
24
+

+ 1
- 1
pom.xml View File

10
 	</parent>
10
 	</parent>
11
 	<groupId>com.njyunzhi</groupId>
11
 	<groupId>com.njyunzhi</groupId>
12
 	<artifactId>pet_identity</artifactId>
12
 	<artifactId>pet_identity</artifactId>
13
-	<version>0.0.3</version>
13
+	<version>0.0.4</version>
14
 	<name>pet_identity</name>
14
 	<name>pet_identity</name>
15
 	<description>Demo project for Spring Boot</description>
15
 	<description>Demo project for Spring Boot</description>
16
 
16
 

+ 3
- 1
src/main/java/com/njyunzhi/pet_identity/controller/TaApplicationController.java View File

84
                                           @ApiParam("犬名") @RequestParam(value ="petName", required = false) String petName,
84
                                           @ApiParam("犬名") @RequestParam(value ="petName", required = false) String petName,
85
                                           @ApiParam("卡号") @RequestParam(value ="originCardNo", required = false) String originCardNo,
85
                                           @ApiParam("卡号") @RequestParam(value ="originCardNo", required = false) String originCardNo,
86
                                           @ApiParam("是否企业") @RequestParam(value ="isOrg", required = false) Boolean isOrg,
86
                                           @ApiParam("是否企业") @RequestParam(value ="isOrg", required = false) Boolean isOrg,
87
-                                          @ApiParam("企业名称") @RequestParam(value ="orgName", required = false) String orgName) throws Exception{
87
+                                          @ApiParam("企业名称") @RequestParam(value ="orgName", required = false) String orgName,
88
+                                          @ApiParam("状态") @RequestParam(value ="status", required = false) Integer status) throws Exception{
88
 
89
 
89
         SysUser sysUser = currentUser();
90
         SysUser sysUser = currentUser();
90
 
91
 
93
         queryWrapper.gt("status", Constants.STATUS_DELETE);
94
         queryWrapper.gt("status", Constants.STATUS_DELETE);
94
         queryWrapper.eq(!StringUtils.isEmpty(applyType), "apply_type", applyType);
95
         queryWrapper.eq(!StringUtils.isEmpty(applyType), "apply_type", applyType);
95
         queryWrapper.eq(null != applyMethod, "apply_method", applyMethod);
96
         queryWrapper.eq(null != applyMethod, "apply_method", applyMethod);
97
+        queryWrapper.eq(null != status, "status", status);
96
         queryWrapper.eq(null != payStatus, "pay_status", payStatus);
98
         queryWrapper.eq(null != payStatus, "pay_status", payStatus);
97
         queryWrapper.eq(null != verifyStatus, "verify_status", verifyStatus);
99
         queryWrapper.eq(null != verifyStatus, "verify_status", verifyStatus);
98
         queryWrapper.eq(null != isOrg, "is_org", isOrg);
100
         queryWrapper.eq(null != isOrg, "is_org", isOrg);

+ 1
- 1
src/main/resources/application-prod.yml View File

8
       max-file-size: 10MB
8
       max-file-size: 10MB
9
       max-request-size: 50MB
9
       max-request-size: 50MB
10
   datasource:
10
   datasource:
11
-    url: jdbc:mysql://110.40.183.156:3306/pet_identity?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
11
+    url: jdbc:mysql://localhost:3306/pet_identity?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
12
     username: pet_identity
12
     username: pet_identity
13
     password: pet@ABCD1234
13
     password: pet@ABCD1234
14
 
14