插件
This commit is contained in:
parent
fb67c661df
commit
d8b97b36d6
@ -4,9 +4,12 @@ import com.czlis.common.core.domain.entity.lis.SysExeBak;
|
|||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
public interface SysExeBakMapper {
|
public interface SysExeBakMapper {
|
||||||
List<SysExeBak> queryfilelist(String filepath);
|
List<SysExeBak> queryfilelist(String filepath);
|
||||||
SysExeBak getfile(@Param("filepath") String filepath, @Param("filena") String filena);
|
SysExeBak getfile(@Param("filepath") String filepath, @Param("filena") String filena);
|
||||||
SysExeBak getdwfile(@Param("reportid") Integer reportid, @Param("reportkind") String reportkind);
|
SysExeBak getdwfile(@Param("reportid") Integer reportid, @Param("reportkind") String reportkind);
|
||||||
|
String getLabIntersendList(String guid);
|
||||||
|
List<Map<String, Object>> getBarprintList(@Param("strIds") List<String> strIds);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,4 +22,15 @@
|
|||||||
<if test="reportkind != null and reportkind !=''">and reportkind = #{reportkind}</if>
|
<if test="reportkind != null and reportkind !=''">and reportkind = #{reportkind}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getLabIntersendList" resultType="String">
|
||||||
|
Select senddata From lab_intersend_list where guid=#{guid}
|
||||||
|
</select>
|
||||||
|
<select id="getBarprintList" resultType="map">
|
||||||
|
Select * From v_barprint_list
|
||||||
|
WHERE bar IN (
|
||||||
|
<foreach collection="strIds" item="id" separator="," open="" close="">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
)
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@ -38,5 +38,11 @@ public class LisPluginController extends BaseController {
|
|||||||
public Result getdwfile(String filename) {
|
public Result getdwfile(String filename) {
|
||||||
return lisPluginService.getdwfile(filename);
|
return lisPluginService.getdwfile(filename);
|
||||||
}
|
}
|
||||||
|
@Anonymous
|
||||||
|
@ApiOperation("获取打印内容")
|
||||||
|
@GetMapping("/getprintlist")
|
||||||
|
public Result getprintlist(String guid) {
|
||||||
|
return lisPluginService.getprintlist(guid);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,4 +6,5 @@ public interface LisPluginService {
|
|||||||
Result queryfilelist();
|
Result queryfilelist();
|
||||||
Result getfile(String filename);
|
Result getfile(String filename);
|
||||||
Result getdwfile(String filename);
|
Result getdwfile(String filename);
|
||||||
|
Result getprintlist(String printid);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,13 +4,14 @@ import cn.hutool.core.codec.Base64;
|
|||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
import com.czlis.common.core.domain.entity.lis.SysExeBak;
|
import com.czlis.common.core.domain.entity.lis.SysExeBak;
|
||||||
import com.czlis.common.utils.LisupdateUtils;
|
import com.czlis.common.utils.LisupdateUtils;
|
||||||
|
import com.czlis.interfaceCommon.mapper.ComOptMapper;
|
||||||
import com.czlis.interfaceCommon.mapper.SysExeBakMapper;
|
import com.czlis.interfaceCommon.mapper.SysExeBakMapper;
|
||||||
import com.czlis.interfaceCommon.utils.CommonUtil;
|
|
||||||
import com.czlis.liswork.service.LisPluginService;
|
import com.czlis.liswork.service.LisPluginService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -21,7 +22,7 @@ public class LisPluginServiceImpl implements LisPluginService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
SysExeBakMapper sysExeBakMapper;
|
SysExeBakMapper sysExeBakMapper;
|
||||||
@Autowired
|
@Autowired
|
||||||
CommonUtil commonUtil;
|
ComOptMapper comOptMapper;
|
||||||
@Override
|
@Override
|
||||||
public Result queryfilelist(){
|
public Result queryfilelist(){
|
||||||
//List<SysExeBak> filelist=sysExeBakMapper.queryfilelist("plugin");
|
//List<SysExeBak> filelist=sysExeBakMapper.queryfilelist("plugin");
|
||||||
@ -50,7 +51,7 @@ public class LisPluginServiceImpl implements LisPluginService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Result getdwfile(String filetype){
|
public Result getdwfile(String filetype){
|
||||||
String reportids=commonUtil.getComOptValue("_MZCX_",filetype);
|
String reportids=comOptMapper.getComOptValue("_MZCX_",filetype);
|
||||||
if(reportids==null||"".equals(reportids))return new Result("-1","未找到模板");
|
if(reportids==null||"".equals(reportids))return new Result("-1","未找到模板");
|
||||||
Integer reportid = Integer.parseInt(reportids);
|
Integer reportid = Integer.parseInt(reportids);
|
||||||
String reportkind="C";
|
String reportkind="C";
|
||||||
@ -84,4 +85,12 @@ public class LisPluginServiceImpl implements LisPluginService {
|
|||||||
}
|
}
|
||||||
return new Result("-1","未找到");
|
return new Result("-1","未找到");
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public Result getprintlist(String guid){
|
||||||
|
String senddata=sysExeBakMapper.getLabIntersendList(guid);
|
||||||
|
if(senddata==null||"".equals(senddata))return new Result("-1","未找到");
|
||||||
|
List<String> strIds = Arrays.asList(senddata.split(","));
|
||||||
|
List<Map<String,Object>> result = sysExeBakMapper.getBarprintList(strIds);
|
||||||
|
return new Result("0","成功",result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user