Commit df137b3f authored by hanbing's avatar hanbing

[add] 快速特勤,添加分组/修改分组

parent 05cef3a1
......@@ -137,6 +137,26 @@ public class SpecialServiceController {
return JsonViewObject.newInstance().success(outDirList);
}
@AspectLog(description = "分组列表", operationType = BaseEnum.OperationTypeEnum.UPDATE)
@ApiOperation(value = "分组列表", notes = "分组列表", response = GroupListVO.class,
produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
@PostMapping(value = "/groupList",
produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
public JsonViewObject groupList(@RequestBody SpecialServiceIdBO specialServiceIdBO) {
GroupListVO groupListVO = specialServiceService.groupList(specialServiceIdBO);
return JsonViewObject.newInstance().success(groupListVO);
}
@AspectLog(description = "修改分组", operationType = BaseEnum.OperationTypeEnum.UPDATE)
@ApiOperation(value = "修改分组", notes = "修改分组", response = JsonViewObject.class,
produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
@PostMapping(value = "/updateGroup",
produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
public JsonViewObject updateGroup(@RequestBody GroupListVO groupListVO) {
specialServiceService.updateGroup(groupListVO);
return JsonViewObject.newInstance().success();
}
@AspectLog(description = "更新路口", operationType = BaseEnum.OperationTypeEnum.UPDATE)
@ApiOperation(value = "更新路口", notes = "更新路口", response = JsonViewObject.class,
produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
......
......@@ -46,4 +46,6 @@ public interface SpecialServiceCrossMapper {
void deleteCrossBySpecialServiceId(@Param("id") Integer id);
Integer selectSpecialServiceIdByCrossId(String crossId);
void updateGroupName(String crossId, String groupName);
}
......@@ -40,4 +40,8 @@ public interface SpecialServiceService {
List<String> getOutDirList(CrossIdVO crossIdVO);
void batchLock(List<LockControlVO> lockControlVOList);
GroupListVO groupList(SpecialServiceIdBO specialServiceIdBO);
void updateGroup(GroupListVO groupListVO);
}
package net.wanji.web.vo.specialService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* @author Kent HAN
* @date 2022/11/9 17:21
*/
@NoArgsConstructor
@Data
@ApiModel(value = "GroupListVO")
public class GroupListVO {
@ApiModelProperty(value = "特勤名称",notes = "")
private String specialServiceName;
private List<GroupListElement> groupList;
@NoArgsConstructor
@Data
public static class GroupListElement {
@ApiModelProperty(value = "分组名称",notes = "")
private String groupName;
@ApiModelProperty(value = "wkt",notes = "")
private String wkt;
private List<SpecialServiceDetailVO.CrossListElement> crossList;
}
}
......@@ -56,6 +56,12 @@
where special_service_id = #{specialServiceId} and cross_id = #{endCrossid}
</update>
<update id="updateGroupName">
update t_special_service_cross
set group_name = #{groupName}
where cross_id = #{crossId}
</update>
<delete id="deleteCross">
delete from t_special_service_cross
where special_service_id = #{specialServiceId} and cross_id = #{crossId}
......
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