| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.math.BigDecimal; |
| | | import java.net.URLDecoder; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | @RequestParam Map<String, Object> param) throws UnsupportedEncodingException { |
| | | LambdaQueryWrapper<Order> wrapper = new LambdaQueryWrapper<>(); |
| | | excludeTrash(param); |
| | | wrapper.eq(Order::getStatus, 1); |
| | |
| | | wrapper.eq(Order::getDocType, param.get("doc_type")); |
| | | } |
| | | if (!Cools.isEmpty(param.get("docName"))) { |
| | | DocType docType = docTypeService.getOne(new LambdaQueryWrapper<DocType>().eq(DocType::getDocName, param.get("docName"))); |
| | | String docName = URLDecoder.decode(param.get("docName").toString(), "UTF-8"); |
| | | DocType docType = docTypeService.getOne(new LambdaQueryWrapper<DocType>().eq(DocType::getDocName, docName)); |
| | | wrapper.eq(Order::getDocType, docType.getDocId()); |
| | | } |
| | | if (!Cools.isEmpty(param.get("settle"))) { |