张延森 3 лет назад
Родитель
Сommit
8b6179c679

+ 1
- 1
deploy/bootstrap Просмотреть файл

@@ -2,6 +2,6 @@
2 2
 #
3 3
 #
4 4
 
5
-appVer="0.0.8"
5
+appVer="0.0.10"
6 6
 
7 7
 java -jar ./medical-plat-${appVer}.jar

+ 1
- 1
deploy/template.yml Просмотреть файл

@@ -11,7 +11,7 @@ Resources:
11 11
       Properties:
12 12
         Handler: com.yunzhi.demo.SpringApplication::main
13 13
         Runtime: custom
14
-        CodeUri: 'oss://yz-serverless/medical-plat/medical-plat-0.0.8.zip'
14
+        CodeUri: 'oss://yz-serverless/medical-plat/medical-plat-0.0.10.zip'
15 15
         MemorySize: 1024
16 16
         Timeout: 30
17 17
         InitializationTimeout: 30

+ 1
- 1
pom.xml Просмотреть файл

@@ -10,7 +10,7 @@
10 10
 	</parent>
11 11
 	<groupId>com.yunzhi</groupId>
12 12
 	<artifactId>medical-plat</artifactId>
13
-	<version>0.0.8</version>
13
+	<version>0.0.11</version>
14 14
 	<name>medical-plat</name>
15 15
 	<description>Demo project for Spring Boot</description>
16 16
 

+ 1
- 1
src/main/java/com/yunzhi/demo/controller/TaTestLogController.java Просмотреть файл

@@ -156,7 +156,7 @@ public class TaTestLogController extends BaseController {
156 156
      * 根据id删除对象
157 157
      * @param id  实体ID
158 158
      */
159
-    @RequestMapping(value="/taTestLog/{id}", method= RequestMethod.DELETE)
159
+    @RequestMapping(value="/admin/taTestLog/{id}", method= RequestMethod.DELETE)
160 160
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
161 161
     public ResponseBean taTestLogDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
162 162
         if(iTaTestLogService.removeById(id)){

+ 15
- 8
src/main/java/com/yunzhi/demo/controller/TdSpecialtyController.java Просмотреть файл

@@ -38,10 +38,10 @@ public class TdSpecialtyController extends BaseController {
38 38
 
39 39
     @GetMapping("/ma/specialty")
40 40
     @ApiOperation(value="小程序学科专业字典", notes = "学科专业", httpMethod = "GET", response = ResponseBean.class)
41
-    public ResponseBean maSchoolList(@ApiParam(value = "学校ID", required = false) @RequestParam(value ="school", required = false) String school,
41
+    public ResponseBean maSchoolList(@ApiParam(value = "学校ID", required = false) @RequestParam(value ="schoolId", required = false) String schoolId,
42 42
                                      @ApiParam(value = "名称", required = false) @RequestParam(value ="name", required = false) String name) throws Exception {
43 43
         QueryWrapper<TdSpecialty> queryWrapper = new QueryWrapper<TdSpecialty>()
44
-                .eq(!StringUtils.isEmpty(school),"school_id", school)
44
+                .eq(!StringUtils.isEmpty(schoolId),"school_id", schoolId)
45 45
                 .like(!StringUtils.isEmpty(name), "name", "%"+name+"%")
46 46
                 .eq("status", Constants.STATUS_NORMAL)
47 47
                 .orderByAsc("sort_no")
@@ -61,12 +61,13 @@ public class TdSpecialtyController extends BaseController {
61 61
     public ResponseBean tdSpecialtyList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
62 62
 									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
63 63
 
64
-		    IPage<TdSpecialty> pg = new Page<>(pageNum, pageSize);
65
-            QueryWrapper<TdSpecialty> queryWrapper = new QueryWrapper<>();
66
-            queryWrapper.orderByDesc("create_date");
64
+        IPage<TdSpecialty> pg = new Page<>(pageNum, pageSize);
65
+        QueryWrapper<TdSpecialty> queryWrapper = new QueryWrapper<>();
66
+        queryWrapper.gt("status", Constants.STATUS_DELETED);
67
+        queryWrapper.orderByDesc("create_date");
67 68
 
68
-            IPage<TdSpecialty> result = iTdSpecialtyService.page(pg, queryWrapper);
69
-            return ResponseBean.success(result);
69
+        IPage<TdSpecialty> result = iTdSpecialtyService.page(pg, queryWrapper);
70
+        return ResponseBean.success(result);
70 71
     }
71 72
 
72 73
     /**
@@ -145,7 +146,13 @@ public class TdSpecialtyController extends BaseController {
145 146
     @RequestMapping(value="/admin/specialty/{id}", method= RequestMethod.DELETE)
146 147
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
147 148
     public ResponseBean specialtyDelete(@ApiParam("对象ID") @PathVariable String id) throws Exception{
148
-        if(iTdSpecialtyService.removeById(id)){
149
+        TdSpecialty tdSpecialty = iTdSpecialtyService.getById(id);
150
+        if (null == tdSpecialty || Constants.STATUS_DELETED.equals(tdSpecialty.getStatus())) {
151
+            return ResponseBean.success("success");
152
+        }
153
+
154
+        tdSpecialty.setStatus(Constants.STATUS_DELETED);
155
+        if(iTdSpecialtyService.updateById(tdSpecialty)){
149 156
             return ResponseBean.success("success");
150 157
         }else {
151 158
             return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);

+ 3
- 0
src/main/java/com/yunzhi/demo/vo/StudentTestLog.java Просмотреть файл

@@ -14,6 +14,9 @@ public class StudentTestLog extends TaStudent {
14 14
     @ApiModelProperty(value = "体检ID")
15 15
     private Integer serialNo;
16 16
 
17
+    @ApiModelProperty(value = "体检编号")
18
+    private String testNo;
19
+
17 20
     @ApiModelProperty(value = "体检名称")
18 21
     private String testName;
19 22
 

+ 1
- 0
src/main/resources/mapper/TaTestLogMapper.xml Просмотреть файл

@@ -17,6 +17,7 @@
17 17
             b.status,
18 18
             b.create_date,
19 19
             b.update_date,
20
+            a.test_no,
20 21
             a.`name` as test_name,
21 22
             a.serial_no,
22 23
             a.attchment,