租赁协议
This commit is contained in:
		
							parent
							
								
									3def5e57ca
								
							
						
					
					
						commit
						398e076594
					
				| 
						 | 
					@ -26,4 +26,6 @@ public interface BmContractService {
 | 
				
			||||||
    BmContract disclaimer();
 | 
					    BmContract disclaimer();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    BmContract getContract(BmContract bmContract);
 | 
					    BmContract getContract(BmContract bmContract);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    List<BmContract> getContractUrl(BmContract bmContract);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -132,6 +132,18 @@ public class BmContractServiceImpl implements BmContractService {
 | 
				
			||||||
        return bmContractMapper.getContract(bmContract);
 | 
					        return bmContractMapper.getContract(bmContract);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public List<BmContract> getContractUrl(BmContract bmContract) {
 | 
				
			||||||
 | 
					        List<BmContract> list = bmContractMapper.list(bmContract);
 | 
				
			||||||
 | 
					        for (BmContract contract : list) {
 | 
				
			||||||
 | 
					            BmFileInfo bmFileInfo = new BmFileInfo();
 | 
				
			||||||
 | 
					            bmFileInfo.setModelId(Long.valueOf(contract.getId())).setTaskType(MaterialConstants.APPENDICES_OF_CONTRACT).setFileType(0L);
 | 
				
			||||||
 | 
					            List<BmFileInfo> bmFileInfos = bmFileInfoMapper.selectBmFileInfoList(bmFileInfo);
 | 
				
			||||||
 | 
					            contract.setBmFileInfoList(bmFileInfos);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return list;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private String getString() {
 | 
					    private String getString() {
 | 
				
			||||||
        //根据前台传过来的数据,生成需求编号
 | 
					        //根据前台传过来的数据,生成需求编号
 | 
				
			||||||
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
 | 
					        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -182,7 +182,8 @@ public class OrderController extends BaseController {
 | 
				
			||||||
        List<OrderDetailDto> orderDetailsByOrderId = orderMapper.selectOrderDetailsByOderId(orderId);
 | 
					        List<OrderDetailDto> orderDetailsByOrderId = orderMapper.selectOrderDetailsByOderId(orderId);
 | 
				
			||||||
        BmContract bmContract = new BmContract();
 | 
					        BmContract bmContract = new BmContract();
 | 
				
			||||||
        bmContract.setStatus(1);
 | 
					        bmContract.setStatus(1);
 | 
				
			||||||
        List<BmContract> list = bmContractService.list(bmContract);
 | 
					        bmContract.setOwnerCom(orderInfoDto.getCompanyId().longValue());
 | 
				
			||||||
 | 
					        List<BmContract> list = bmContractService.getContractUrl(bmContract);
 | 
				
			||||||
        String wordUrl = list.get(0).getBmFileInfoList().get(0).getFileUrl();
 | 
					        String wordUrl = list.get(0).getBmFileInfoList().get(0).getFileUrl();
 | 
				
			||||||
        InputStream inputStream = new URL(wordUrl).openStream();
 | 
					        InputStream inputStream = new URL(wordUrl).openStream();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -249,7 +250,8 @@ public class OrderController extends BaseController {
 | 
				
			||||||
        if (orderInfoDto != null) {
 | 
					        if (orderInfoDto != null) {
 | 
				
			||||||
            BmContract bmContract = new BmContract();
 | 
					            BmContract bmContract = new BmContract();
 | 
				
			||||||
            bmContract.setStatus(1);
 | 
					            bmContract.setStatus(1);
 | 
				
			||||||
            List<BmContract> list = bmContractService.list(bmContract);
 | 
					            bmContract.setOwnerCom(orderInfoDto.getCompanyId().longValue());
 | 
				
			||||||
 | 
					            List<BmContract> list = bmContractService.getContractUrl(bmContract);
 | 
				
			||||||
            String wordUrl = list.get(0).getBmFileInfoList().get(0).getFileUrl();
 | 
					            String wordUrl = list.get(0).getBmFileInfoList().get(0).getFileUrl();
 | 
				
			||||||
            InputStream inputStream = new URL(wordUrl).openStream();
 | 
					            InputStream inputStream = new URL(wordUrl).openStream();
 | 
				
			||||||
            XWPFDocument document = new XWPFDocument(inputStream);
 | 
					            XWPFDocument document = new XWPFDocument(inputStream);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue