fix:优化前端页面以及修复点位管理功能bug

This commit is contained in:
2024-05-10 17:51:15 +08:00
parent 9e45690cd0
commit f9667ee9a1
7 changed files with 36 additions and 30 deletions

View File

@@ -64,7 +64,7 @@ public class AcsPointAngleController {
@GetMapping("/updateActive")
@Log("是否启用")
public ResponseEntity<Object> updateOn(@RequestParam Long id, @RequestParam String is_active) {
public ResponseEntity<Object> updateOn(@RequestParam String id, @RequestParam String is_active) {
acsPointAngleService.updateOn(id, is_active);
return new ResponseEntity<>(HttpStatus.OK);
}

View File

@@ -7,8 +7,10 @@ import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
/**
@@ -23,37 +25,38 @@ import lombok.experimental.Accessors;
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("acs_point_angle")
@NoArgsConstructor
@AllArgsConstructor
public class AcsPointAngle implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@TableId(value = "id", type = IdType.AUTO)
private String id;
private String start_device_code;
private String next_device_code;
private BigDecimal next_point_angle;
private String is_active;
private String create_by;
private String create_time;
private String update_by;
private String update_time;

View File

@@ -28,7 +28,7 @@ public interface IAcsPointAngleService extends IService<AcsPointAngle> {
Map<String, Object> queryAll(Map whereJson, Pageable page);
void updateOn(Long id, String is_active);
void updateOn(String id, String is_active);
/**

View File

@@ -97,7 +97,7 @@ public class AcsPointAngleServiceImpl extends ServiceImpl<AcsPointAngleMapper, A
}
@Override
public void updateOn(Long id, String is_active) {
public void updateOn(String id, String is_active) {
AcsPointAngle acsPointAngle = new AcsPointAngle();
acsPointAngle.setId(id);
acsPointAngle.setIs_active(is_active);