打印插件
This commit is contained in:
parent
c84a43328b
commit
7a30d48f7c
@ -27,6 +27,12 @@ public class LisPluginController extends BaseController {
|
||||
return lisPluginService.queryfilelist();
|
||||
}
|
||||
@Anonymous
|
||||
@ApiOperation("重置更新时间戳")
|
||||
@GetMapping("/updatefilelist")
|
||||
public Result updatefilelist() {
|
||||
return lisPluginService.updatefilelist();
|
||||
}
|
||||
@Anonymous
|
||||
@ApiOperation("获取更新文件")
|
||||
@GetMapping("/getfile")
|
||||
public Result getfile(String filename) {
|
||||
|
||||
@ -5,6 +5,7 @@ import com.transitPlatForm.common.core.domain.Result;
|
||||
|
||||
public interface LisPluginService {
|
||||
Result queryfilelist();
|
||||
Result updatefilelist();
|
||||
Result getfile(String filename);
|
||||
Result getdwfile(String filename);
|
||||
Result getprintlist(String printid);
|
||||
|
||||
@ -27,6 +27,13 @@ public class LisPluginServiceImpl implements LisPluginService {
|
||||
return new Result("0","成功",filelist);
|
||||
}
|
||||
@Override
|
||||
public Result updatefilelist(){
|
||||
List<SysExeBak> filelist=lisPluginMapper.queryfilelist("plugin");
|
||||
LisupdateUtils.clearPluginCache();
|
||||
LisupdateUtils.setPluginCache("plugin",filelist);
|
||||
return new Result("0","成功",filelist);
|
||||
}
|
||||
@Override
|
||||
public Result getfile(String filename){
|
||||
SysExeBak file=lisPluginMapper.getfile("plugin",filename);
|
||||
if(file!=null){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user