| | |
| | | |
| | | @Override |
| | | public String addLinkBasicInformation(LinkBasicInformation linkBasicInformation) { |
| | | String code = MyUtil.getTimeSixNumberCode("SL"); |
| | | String code = MyUtil.getTimeSixNumberCode("SL","SL"); |
| | | linkBasicInformation.setEntrustCoding(code); |
| | | int insert = linkBasicInformationMapper.insert(linkBasicInformation); |
| | | if (insert == 1) { |
| | |
| | | return linkBasicInformationMapper.selectLinkAll(); |
| | | } |
| | | |
| | | //根据委托检验id和样品id查询委托检验和样品 |
| | | @Override |
| | | public InspectionVo selectLinkByid(Integer bid, Integer did) { |
| | | InspectionVo inspectionVo = linkBasicInformationMapper.selectLinkByid(bid, did); |
| | | inspectionVo.setType(1); |
| | | return inspectionVo; |
| | | } |
| | | |
| | | } |