Commit 260ca1ca authored by 高滢's avatar 高滢

更改

parent 5c597791
...@@ -91,7 +91,7 @@ public class TestPlanRecordController extends BaseController{ ...@@ -91,7 +91,7 @@ public class TestPlanRecordController extends BaseController{
@Trace @Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")}) @Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@RequestMapping(method = RequestMethod.POST, value = "/update") @RequestMapping(method = RequestMethod.POST, value = "/update")
public R<Integer> updateTestPlanRecord(TestPlanRecordGetInfoRequest testPlanRecordGetInfoRequest){ public R<Integer> updateTestPlanRecord(@Validated @RequestBody TestPlanRecordGetInfoRequest testPlanRecordGetInfoRequest){
return R.ok(tTestPlanRecordService.updateTestPlanRecord(testPlanRecordGetInfoRequest)); return R.ok(tTestPlanRecordService.updateTestPlanRecord(testPlanRecordGetInfoRequest));
} }
......
package com.ruoyi.web.request; package com.ruoyi.web.request;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
/**
* @author gaoying
*/
@Data @Data
@ApiModel @ApiModel
public class TestPlanRecordGetInfoRequest { public class TestPlanRecordGetInfoRequest {
@ApiModelProperty("ID") @ApiModelProperty("ID")
@TableId(type = IdType.ASSIGN_ID)
private Long id; private Long id;
/** /**
......
...@@ -74,8 +74,6 @@ ...@@ -74,8 +74,6 @@
update t_test_plan_record update t_test_plan_record
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="fileUrl != null">file_url = #{fileUrl},</if> <if test="fileUrl != null">file_url = #{fileUrl},</if>
</trim>
<trim prefix="SET" suffixOverrides=",">
<if test="testResult != null">test_result = #{testResult},</if> <if test="testResult != null">test_result = #{testResult},</if>
</trim> </trim>
where id = #{id} where id = #{id}
......
...@@ -18,7 +18,7 @@ ruoyi: ...@@ -18,7 +18,7 @@ ruoyi:
# 开发环境配置 # 开发环境配置
server: server:
# 服务器的HTTP端口,默认为8080 # 服务器的HTTP端口,默认为8080
port: 22032 port: 22033
servlet: servlet:
# 应用的访问路径 # 应用的访问路径
context-path: / context-path: /
......
...@@ -18,7 +18,7 @@ ruoyi: ...@@ -18,7 +18,7 @@ ruoyi:
# 开发环境配置 # 开发环境配置
server: server:
# 服务器的HTTP端口,默认为8080 # 服务器的HTTP端口,默认为8080
port: 22008 port: 22033
servlet: servlet:
# 应用的访问路径 # 应用的访问路径
context-path: / context-path: /
......
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