zhaowenxuan
2025-04-29 9f383ab82887e0eb34339bee00fe1c868c98e5a3
ltkj-admin/src/main/java/com/ltkj/web/config/captcha/CommonController.java
@@ -16,6 +16,7 @@
import com.ltkj.common.utils.SnowFlake;
import com.ltkj.common.utils.uuid.UUID;
import com.ltkj.hosp.domain.SysAttachment;
import com.ltkj.hosp.mapper.TestMapper;
import com.ltkj.hosp.service.ISysAttachmentService;
import com.ltkj.system.service.ISysConfigService;
import com.ltkj.system.service.ISysDictDataService;
@@ -70,6 +71,8 @@
    private ISysDictDataService sysDictDataService;
    @Autowired
    private ISysConfigService sysConfigService;
    @Autowired
    private TestMapper testMapper;
    /**
@@ -151,6 +154,13 @@
        }
    }
    /**
     * exe上传图片接口
     * @param file
     * @param dictVal
     * @param ip
     * @return
     */
    @PostMapping("/uploadImgExe")
    @ApiOperation(value = "EXE程序循环读取图片上传")
    public AjaxResult uploadImgExe(@RequestPart("file") MultipartFile file,@RequestParam("val")String dictVal,@RequestParam("ip")String ip){
@@ -197,6 +207,18 @@
        }
    }
    /**
     * 获取exe程序上传图片列表
     * @param type
     * @return
     */
    @GetMapping("/getExeUploadImgList")
    public AjaxResult getExeUploadImgList(@RequestParam("type") String type){
        if (StrUtil.isBlank(type)) return AjaxResult.error("类型不能为空");
        List<Map<String, Object>> list = testMapper.getExeUploadImgListByGnLx(type);
        return AjaxResult.success().put("data",list);
    }
    @GetMapping("/listExeVal")
    public AjaxResult listExeDictVal(){
        LambdaQueryWrapper<SysDictData> queryWrapper = new LambdaQueryWrapper<>();