old mode 100644
new mode 100755
| | |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.file.FileDto; |
| | | import com.java110.dto.file.FileRelDto; |
| | | import com.java110.dto.rentingPool.RentingPoolDto; |
| | | import com.java110.dto.renting.RentingPoolDto; |
| | | import com.java110.intf.common.IFileInnerServiceSMO; |
| | | import com.java110.intf.common.IFileRelInnerServiceSMO; |
| | | import com.java110.intf.user.IRentingPoolInnerServiceSMO; |
| | | import com.java110.po.file.FileRelPo; |
| | | import com.java110.po.rentingPool.RentingPoolPo; |
| | | import com.java110.po.renting.RentingPoolPo; |
| | | import com.java110.user.bmo.rentingPool.ISaveRentingPoolBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Autowired |
| | | private IFileInnerServiceSMO fileInnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IFileRelInnerServiceSMO fileRelInnerServiceSMOImpl; |
| | | |
| | | /** |
| | |
| | | if (rentingPoolDtos != null && rentingPoolDtos.size() > 0) { |
| | | throw new IllegalArgumentException("该房屋当前为" + rentingPoolDtos.get(0).getStateName() + ",不能再次出租"); |
| | | } |
| | | |
| | | rentingPoolPo.setRentingId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_rentingId)); |
| | | if (photos.size() > 0) { |
| | | savaRentingFile(photos, rentingPoolPo); |
| | | } |
| | | |
| | | |
| | | rentingPoolPo.setRentingId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_rentingId)); |
| | | |
| | | int flag = rentingPoolInnerServiceSMOImpl.saveRentingPool(rentingPoolPo); |
| | | |
| | | if (flag > 0) { |