You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
209 lines
6.0 KiB
209 lines
6.0 KiB
package com.spring.modules.Tooling.controller;
|
|
|
|
import com.spring.common.utils.PageUtils;
|
|
import com.spring.common.utils.R;
|
|
import com.spring.modules.Tooling.data.*;
|
|
import com.spring.modules.Tooling.entity.IfsTool;
|
|
import com.spring.modules.Tooling.entity.IfsToolInstance;
|
|
import com.spring.modules.Tooling.entity.IfsToolInstanceDate;
|
|
import com.spring.modules.Tooling.service.ToolService;
|
|
import com.spring.modules.Tooling.service.ToolingApplyService;
|
|
import com.spring.modules.quotation.service.QuotationHeaderService;
|
|
import com.spring.modules.quotation.vo.QuotationHeaderVo;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Repository;
|
|
import org.springframework.util.StringUtils;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @description: 工具的接口
|
|
* @author LR
|
|
* @date 2024/8/27 16:43
|
|
* @version 1.0
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/plm/tool")
|
|
public class ToolController {
|
|
|
|
@Autowired
|
|
private ToolService toolService;
|
|
|
|
/**
|
|
* @description: 获取工具的信息列表
|
|
* @author LR
|
|
* @date 2024/8/27 16:51
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "getToolInfoList")
|
|
public R getToolInfoList(@RequestBody IfsTool inData){
|
|
List<IfsToolData> resultList = toolService.getToolInfoList(inData);
|
|
int total = toolService.countToolInfoListForPage(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "")
|
|
.put("rows", resultList)
|
|
.put("total", total);
|
|
}
|
|
|
|
/**
|
|
* @description: 查询工具实力的列表
|
|
* @author LR
|
|
* @date 2024/8/29 15:09
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "getToolInstanceList")
|
|
public R getToolInstanceList(@RequestBody IfsToolInstance inData){
|
|
List<IfsToolInstanceData> resultList = toolService.getToolInstanceList(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "")
|
|
.put("rows", resultList)
|
|
.put("total", resultList.size());
|
|
}
|
|
|
|
/**
|
|
* @description: 查询工具实例的日期
|
|
* @author LR
|
|
* @date 2024/8/29 17:53
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "getToolInstanceDates")
|
|
public R getToolInstanceList(@RequestBody IfsToolInstanceDate inData){
|
|
List<IfsToolInstanceDateData> resultList = toolService.getToolInstanceDates(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "")
|
|
.put("rows", resultList)
|
|
.put("total", resultList.size());
|
|
}
|
|
|
|
/**
|
|
* @description:新增工具信息
|
|
* @author LR
|
|
* @date 2024/8/30 9:42
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "insertToolInfo")
|
|
public R insertToolInfo(@RequestBody IfsTool inData){
|
|
toolService.insertToolInfo(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "");
|
|
}
|
|
|
|
/**
|
|
* @description: 修改工具信息
|
|
* @author LR
|
|
* @date 2024/8/30 13:41
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "modifyToolInfo")
|
|
public R modifyToolInfo(@RequestBody IfsTool inData){
|
|
toolService.modifyToolInfo(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "");
|
|
}
|
|
|
|
/**
|
|
* @description: 删除工具的信息
|
|
* @author LR
|
|
* @date 2024/8/30 15:29
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "removeToolInfo")
|
|
public R removeToolInfo(@RequestBody IfsTool inData){
|
|
toolService.removeToolInfo(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "");
|
|
}
|
|
|
|
/**
|
|
* @description: 新增工具实例信息
|
|
* @author LR
|
|
* @date 2024/8/30 15:32
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "insertToolInstance")
|
|
public R insertToolInstance(@RequestBody IfsToolInstance inData){
|
|
toolService.insertToolInstance(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "");
|
|
}
|
|
|
|
/**
|
|
* @description: 修改工具实例信息
|
|
* @author LR
|
|
* @date 2024/8/30 15:53
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "modifyToolInstance")
|
|
public R modifyToolInstance(@RequestBody IfsToolInstance inData){
|
|
toolService.modifyToolInstance(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "");
|
|
}
|
|
|
|
/**
|
|
* @description: 删除工具实例信息
|
|
* @author LR
|
|
* @date 2024/8/30 15:57
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "removeToolInstance")
|
|
public R removeToolInstance(@RequestBody IfsToolInstance inData){
|
|
toolService.removeToolInstance(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "");
|
|
}
|
|
|
|
/**
|
|
* @description: 新增工具实例日期信息
|
|
* @author LR
|
|
* @date 2024/8/30 16:00
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "insertToolInstanceDate")
|
|
public R insertToolInstanceDate(@RequestBody IfsToolInstanceDate inData){
|
|
toolService.insertToolInstanceDate(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "");
|
|
}
|
|
|
|
/**
|
|
* @description: 修改工具实例日期信息
|
|
* @author LR
|
|
* @date 2024/8/31 15:12
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "modifyToolInstanceDate")
|
|
public R modifyToolInstanceDate(@RequestBody IfsToolInstanceDate inData){
|
|
toolService.modifyToolInstanceDate(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "");
|
|
}
|
|
|
|
/**
|
|
* @description: 删除工具实例日期信息
|
|
* @author LR
|
|
* @date 2024/8/31 15:13
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "removeToolInstanceDate")
|
|
public R removeToolInstanceDate(@RequestBody IfsToolInstanceDate inData){
|
|
toolService.removeToolInstanceDate(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "");
|
|
}
|
|
|
|
}
|