|
@@ -50,6 +50,7 @@ public class PatentInstructionService extends ServiceImpl<PatentInstructionMappe
|
|
|
private final PatentService patentService;
|
|
|
private final ProjectFileService projectFileService;
|
|
|
private final LoginUtils loginUtils;
|
|
|
+
|
|
|
public IPage<PatentInstruction> getPageList(PatentInstructionVO params) {
|
|
|
LambdaQueryWrapper<PatentInstruction> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
if (StringUtils.isNotEmpty(params.getPatentNo())) {
|
|
@@ -159,15 +160,18 @@ public class PatentInstructionService extends ServiceImpl<PatentInstructionMappe
|
|
|
patentInstruction.insert();
|
|
|
return Response.success(true);
|
|
|
}
|
|
|
+
|
|
|
@Transactional
|
|
|
public String edit(String patentNo, UploadFileDTO pdf) {
|
|
|
- PatentInstruction patentInstruction =new PatentInstruction();
|
|
|
+ PatentInstruction patentInstruction = new PatentInstruction();
|
|
|
patentInstruction.setUrl(pdf.getPath());
|
|
|
patentInstruction.setFileName(pdf.getFileName());
|
|
|
patentInstruction.setSize(pdf.getFileSize());
|
|
|
+ patentInstruction.setPatentNo(patentNo);
|
|
|
patentInstruction.insert();
|
|
|
return Response.success(true);
|
|
|
}
|
|
|
+
|
|
|
public String delete(Integer id) {
|
|
|
PatentInstruction temp = this.getById(id);
|
|
|
this.removeById(id);
|