| | |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.stylefeng.guns.core.base.controller.BaseController; |
| | | import com.stylefeng.guns.modular.system.model.*; |
| | | import com.stylefeng.guns.modular.system.service.ITCompanyFeeSettingService; |
| | | import com.stylefeng.guns.modular.system.service.ITCompanyService; |
| | | import com.stylefeng.guns.modular.system.service.ITCompanyServiceService; |
| | | import com.stylefeng.guns.modular.system.service.*; |
| | | import com.stylefeng.guns.modular.system.utils.tips.ErrorTip; |
| | | import com.stylefeng.guns.modular.system.utils.tips.SuccessTip; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | @Autowired |
| | | private ITCompanyServiceService itCompanyServiceService; |
| | | |
| | | @Autowired |
| | | private TPowerUnitsService powerUnitsService; |
| | | |
| | | @Autowired |
| | | private ITDriverService driverService; |
| | | |
| | | |
| | | |
| | |
| | | BeanUtil.copyProperties(company,tCompanyDto); |
| | | List<TCompanyService> companyServiceList = itCompanyServiceService.selectList(new EntityWrapper<TCompanyService>().eq("company_id", tCompanyId).eq("type",0)); |
| | | tCompanyDto.setList(companyServiceList); |
| | | int i = powerUnitsService.selectCount(new EntityWrapper<TPowerUnits>().eq("company_id", tCompanyId).eq("type", 1)); |
| | | tCompanyDto.setPowerUnits(i); |
| | | int e = powerUnitsService.selectCount(new EntityWrapper<TPowerUnits>().eq("company_id", tCompanyId).eq("type", 2)); |
| | | tCompanyDto.setChassises(e); |
| | | int d = driverService.selectCount(new EntityWrapper<TDriver>().eq("company_id", tCompanyId)); |
| | | tCompanyDto.setDrivers(d); |
| | | return new SuccessTip(tCompanyDto); |
| | | } |
| | | |