| | |
| | | import com.iailab.module.ansteel.power.entity.PowerDemandEntity; |
| | | import com.iailab.module.ansteel.power.service.PowerDemandService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | @Override |
| | | public List<PowerDemandEntity> list(Map<String, Object> params) { |
| | | QueryWrapper<PowerDemandEntity> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("code", params.get("code")); |
| | | queryWrapper.orderByAsc("sort"); |
| | | return PowerDemandDao.selectList(queryWrapper); |
| | | |
| | | } |
| | | |
| | | public PowerDemandEntity getByCode(String code) { |
| | | QueryWrapper<PowerDemandEntity> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("code", code); |
| | | return PowerDemandDao.selectOne(queryWrapper); |
| | | |
| | | } |
| | | } |