| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | | public class BasSteErrLogController extends BaseController { |
| | |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | EntityWrapper<BasSteErrLog> wrapper = new EntityWrapper<>(); |
| | | wrapper.orderBy("start_time",false); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | allLike(BasSteErrLog.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | if (!Cools.isEmpty(orderByField)){ |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("update_time",false); |
| | | } |
| | | return R.ok(basSteErrLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |