| | |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.DateUtils; |
| | | import com.zy.crm.manager.entity.*; |
| | | import com.zy.crm.manager.entity.result.KeyValueVo; |
| | | import com.zy.crm.manager.service.WeeklyCostTypesService; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.core.domain.KeyValueVo; |
| | | import com.zy.crm.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | List<WeeklyCostTypes> weeklyCostTypesList = weeklyCostTypesService.selectPage(new Page<>(1, 30), wrapper).getRecords(); |
| | | List<com.zy.crm.manager.entity.result.KeyValueVo> valueVos = new ArrayList<>(); |
| | | for (WeeklyCostTypes weeklyCostTypes : weeklyCostTypesList) { |
| | | com.zy.crm.manager.entity.result.KeyValueVo vo = new com.zy.crm.manager.entity.result.KeyValueVo(); |
| | | vo.setName(weeklyCostTypes.getTypeName()); |
| | | vo.setValue(weeklyCostTypes.getId()); |
| | | valueVos.add(vo); |
| | | KeyValueVo keyValueVo = new KeyValueVo(); |
| | | keyValueVo.setName(weeklyCostTypes.getTypeName()); |
| | | keyValueVo.setValue(weeklyCostTypes.getId()); |
| | | valueVos.add(keyValueVo); |
| | | } |
| | | return R.ok().add(valueVos); |
| | | } |