张延森 3 years ago
parent
commit
8b6179c679

+ 1
- 1
deploy/bootstrap View File

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

+ 1
- 1
deploy/template.yml View File

11
       Properties:
11
       Properties:
12
         Handler: com.yunzhi.demo.SpringApplication::main
12
         Handler: com.yunzhi.demo.SpringApplication::main
13
         Runtime: custom
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
         MemorySize: 1024
15
         MemorySize: 1024
16
         Timeout: 30
16
         Timeout: 30
17
         InitializationTimeout: 30
17
         InitializationTimeout: 30

+ 1
- 1
pom.xml View File

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

+ 1
- 1
src/main/java/com/yunzhi/demo/controller/TaTestLogController.java View File

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

+ 15
- 8
src/main/java/com/yunzhi/demo/controller/TdSpecialtyController.java View File

38
 
38
 
39
     @GetMapping("/ma/specialty")
39
     @GetMapping("/ma/specialty")
40
     @ApiOperation(value="小程序学科专业字典", notes = "学科专业", httpMethod = "GET", response = ResponseBean.class)
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
                                      @ApiParam(value = "名称", required = false) @RequestParam(value ="name", required = false) String name) throws Exception {
42
                                      @ApiParam(value = "名称", required = false) @RequestParam(value ="name", required = false) String name) throws Exception {
43
         QueryWrapper<TdSpecialty> queryWrapper = new QueryWrapper<TdSpecialty>()
43
         QueryWrapper<TdSpecialty> queryWrapper = new QueryWrapper<TdSpecialty>()
44
-                .eq(!StringUtils.isEmpty(school),"school_id", school)
44
+                .eq(!StringUtils.isEmpty(schoolId),"school_id", schoolId)
45
                 .like(!StringUtils.isEmpty(name), "name", "%"+name+"%")
45
                 .like(!StringUtils.isEmpty(name), "name", "%"+name+"%")
46
                 .eq("status", Constants.STATUS_NORMAL)
46
                 .eq("status", Constants.STATUS_NORMAL)
47
                 .orderByAsc("sort_no")
47
                 .orderByAsc("sort_no")
61
     public ResponseBean tdSpecialtyList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
61
     public ResponseBean tdSpecialtyList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
62
 									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
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
     @RequestMapping(value="/admin/specialty/{id}", method= RequestMethod.DELETE)
146
     @RequestMapping(value="/admin/specialty/{id}", method= RequestMethod.DELETE)
146
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
147
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
147
     public ResponseBean specialtyDelete(@ApiParam("对象ID") @PathVariable String id) throws Exception{
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
             return ResponseBean.success("success");
156
             return ResponseBean.success("success");
150
         }else {
157
         }else {
151
             return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
158
             return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);

+ 3
- 0
src/main/java/com/yunzhi/demo/vo/StudentTestLog.java View File

14
     @ApiModelProperty(value = "体检ID")
14
     @ApiModelProperty(value = "体检ID")
15
     private Integer serialNo;
15
     private Integer serialNo;
16
 
16
 
17
+    @ApiModelProperty(value = "体检编号")
18
+    private String testNo;
19
+
17
     @ApiModelProperty(value = "体检名称")
20
     @ApiModelProperty(value = "体检名称")
18
     private String testName;
21
     private String testName;
19
 
22
 

+ 1
- 0
src/main/resources/mapper/TaTestLogMapper.xml View File

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