合同管理接口开发
This commit is contained in:
		
							parent
							
								
									6a0c0ba5cd
								
							
						
					
					
						commit
						14502ba6ce
					
				| 
						 | 
				
			
			@ -31,7 +31,14 @@ public class BmContractServiceImpl implements BmContractService {
 | 
			
		|||
    @Override
 | 
			
		||||
    public List<BmContract> list(BmContract bmContract) {
 | 
			
		||||
        bmContract.setOwnerCom(SecurityUtils.getLoginUser().getSysUser().getCompanyId());
 | 
			
		||||
        return bmContractMapper.list(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;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,6 +29,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
			
		|||
            <if test="contractName != null and contractName != ''">
 | 
			
		||||
                and contract_name like concat('%', #{contractName}, '%')
 | 
			
		||||
            </if>
 | 
			
		||||
            <if test="status != null">
 | 
			
		||||
                and status = #{status}
 | 
			
		||||
            </if>
 | 
			
		||||
        </where>
 | 
			
		||||
    </select>
 | 
			
		||||
    <select id="selectTaskNumByMonth" resultType="java.lang.String">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue