Commit 101cda19 authored by 罗贤顺's avatar 罗贤顺

采区下拉框及送样单列表展示

parent fc6763a6
...@@ -8,13 +8,12 @@ import io.swagger.annotations.Api; ...@@ -8,13 +8,12 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
/** /**
* <p> * <p>
* 前端控制器 * 前端控制器
* </p> * </p>
* *
* @author renchao * @author renchao
...@@ -39,5 +38,16 @@ public class TMineStopeController { ...@@ -39,5 +38,16 @@ public class TMineStopeController {
return itMineStopeService.getPage(null, query); return itMineStopeService.getPage(null, query);
} }
/**
* 采区下拉框
*
* @return
*/
@ApiOperation(value = "矿区下拉框")
@RequestMapping(value = "/getStopeName", method = RequestMethod.GET)
public R getStopeName() {
return itMineStopeService.getStopeName();
}
} }
...@@ -98,5 +98,10 @@ public class TSampleLaboratorysheetController { ...@@ -98,5 +98,10 @@ public class TSampleLaboratorysheetController {
param.setYh(yh); param.setYh(yh);
return itSampleLaboratorysheetService.getImage(param,response); return itSampleLaboratorysheetService.getImage(param,response);
} }
@ApiOperation(value = "送样结果单列表展示")
@RequestMapping(value = "/getList",method = RequestMethod.GET)
public R getList() {
return itSampleLaboratorysheetService.getList();
}
} }
...@@ -3,9 +3,11 @@ package cn.wise.sc.acquisition.business.mapper; ...@@ -3,9 +3,11 @@ package cn.wise.sc.acquisition.business.mapper;
import cn.wise.sc.acquisition.business.entity.TMineStope; import cn.wise.sc.acquisition.business.entity.TMineStope;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/** /**
* <p> * <p>
* Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author renchao * @author renchao
...@@ -13,4 +15,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; ...@@ -13,4 +15,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/ */
public interface TMineStopeMapper extends BaseMapper<TMineStope> { public interface TMineStopeMapper extends BaseMapper<TMineStope> {
List<TMineStope> getStopeName();
} }
...@@ -2,6 +2,9 @@ package cn.wise.sc.acquisition.business.mapper; ...@@ -2,6 +2,9 @@ package cn.wise.sc.acquisition.business.mapper;
import cn.wise.sc.acquisition.business.entity.TSampleLaboratorysheet; import cn.wise.sc.acquisition.business.entity.TSampleLaboratorysheet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.api.R;
import java.util.List;
/** /**
* <p> * <p>
...@@ -13,4 +16,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; ...@@ -13,4 +16,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/ */
public interface TSampleLaboratorysheetMapper extends BaseMapper<TSampleLaboratorysheet> { public interface TSampleLaboratorysheetMapper extends BaseMapper<TSampleLaboratorysheet> {
List<TSampleLaboratorysheet> getList();
} }
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.wise.sc.acquisition.business.mapper.TMineStopeMapper"> <mapper namespace="cn.wise.sc.acquisition.business.mapper.TMineStopeMapper">
<select id="getStopeName" resultType="cn.wise.sc.acquisition.business.entity.TMineStope">
select StopeName,StepName,BlastAreaName from T_Mine_Stope
</select>
</mapper> </mapper>
...@@ -2,4 +2,7 @@ ...@@ -2,4 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.wise.sc.acquisition.business.mapper.TSampleLaboratorysheetMapper"> <mapper namespace="cn.wise.sc.acquisition.business.mapper.TSampleLaboratorysheetMapper">
<select id="getList" resultType="cn.wise.sc.acquisition.business.entity.TSampleLaboratorysheet">
select * from T_Sample_LaboratorySheet
</select>
</mapper> </mapper>
...@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
/** /**
* <p> * <p>
* 服务类 * 服务类
* </p> * </p>
* *
* @author renchao * @author renchao
...@@ -22,5 +22,5 @@ public interface ITMineStopeService extends IService<TMineStope> { ...@@ -22,5 +22,5 @@ public interface ITMineStopeService extends IService<TMineStope> {
R getByQuery(TMineStopeQuery query); R getByQuery(TMineStopeQuery query);
R getStopeName();
} }
...@@ -27,4 +27,5 @@ public interface ITSampleLaboratorysheetService extends IService<TSampleLaborato ...@@ -27,4 +27,5 @@ public interface ITSampleLaboratorysheetService extends IService<TSampleLaborato
R getImage(TSampleLaboratorysheetQuery query, final HttpServletResponse response); R getImage(TSampleLaboratorysheetQuery query, final HttpServletResponse response);
R getList();
} }
...@@ -15,6 +15,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; ...@@ -15,6 +15,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* <p> * <p>
* 服务实现类 * 服务实现类
...@@ -79,4 +81,10 @@ public class TMineStopeServiceImpl extends ServiceImpl<TMineStopeMapper, TMineSt ...@@ -79,4 +81,10 @@ public class TMineStopeServiceImpl extends ServiceImpl<TMineStopeMapper, TMineSt
return R.ok(baseMapper.selectOne(queryWrapper)); return R.ok(baseMapper.selectOne(queryWrapper));
} }
@Override
public R getStopeName() {
List<TMineStope> stopeName = baseMapper.getStopeName();
return R.ok(stopeName);
}
} }
...@@ -20,6 +20,7 @@ import org.springframework.transaction.annotation.Transactional; ...@@ -20,6 +20,7 @@ import org.springframework.transaction.annotation.Transactional;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatter;
import java.util.List;
/** /**
* <p> * <p>
...@@ -189,4 +190,11 @@ public class TSampleLaboratorysheetServiceImpl extends ServiceImpl<TSampleLabora ...@@ -189,4 +190,11 @@ public class TSampleLaboratorysheetServiceImpl extends ServiceImpl<TSampleLabora
//如果下载失败才会执行return //如果下载失败才会执行return
return R.failed("结果分析单中->该条数据没有图片"); return R.failed("结果分析单中->该条数据没有图片");
} }
@Override
public R getList() {
List<TSampleLaboratorysheet> list = baseMapper.getList();
return R.ok(list);
}
} }
...@@ -80,5 +80,8 @@ ...@@ -80,5 +80,8 @@
${ew.sqlSegment} ${ew.sqlSegment}
</where> </where>
</select> </select>
<select id="getBalestHoleId" resultType="java.lang.String">
select BlastHoleID from T_Processes_BlastDesign_Hole
</select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment