|
@@ -2695,22 +2695,31 @@ public class ApsBlankOrderServiceImpl extends ServiceImpl<ApsBlankOrderDao, ApsB
|
|
|
|
|
|
List<ColumnQueryType> columnQueryTypes = req.getColumnQueryTypes();
|
|
|
for (ColumnQueryType columnQueryType : columnQueryTypes) {
|
|
|
- for (SearchColumnVo column : columnQueryType.getColumns()) {
|
|
|
- if (column.getField().equals("customname")) {
|
|
|
- param.setCustomName(column.getValue());
|
|
|
- }
|
|
|
- if (column.getField().equals("customorderno")) {
|
|
|
- param.setCustomOrderNo(column.getValue());
|
|
|
- }
|
|
|
- if (column.getField().equals("promiseDateStart")) {
|
|
|
- param.setStartDate(column.getStartDate());
|
|
|
- param.setEndDate(column.getEndDate());
|
|
|
- }
|
|
|
- if (column.getField().equals("blankNumber")) {
|
|
|
- param.setBlankNumber(column.getValue());
|
|
|
+ if (columnQueryType.getColumnInnerRelation().equals("AND")) {
|
|
|
+ for (SearchColumnVo column : columnQueryType.getColumns()) {
|
|
|
+ if (column.getField().equals("customname")) {
|
|
|
+ param.setCustomName(column.getValue());
|
|
|
+ }
|
|
|
+ if (column.getField().equals("customorderno")) {
|
|
|
+ param.setCustomOrderNo(column.getValue());
|
|
|
+ }
|
|
|
+ if (column.getField().equals("promiseDateStart")) {
|
|
|
+ param.setStartDate(column.getStartDate());
|
|
|
+ param.setEndDate(column.getEndDate());
|
|
|
+ }
|
|
|
+ if (column.getField().equals("blankNumber")) {
|
|
|
+ param.setBlankNumber(column.getValue());
|
|
|
+ }
|
|
|
+ if (column.getField().equals("productionOrderStatus")) {
|
|
|
+ param.setProductionOrderStatus(column.getValue());
|
|
|
+ }
|
|
|
}
|
|
|
- if (column.getField().equals("productionOrderStatus")) {
|
|
|
- param.setProductionOrderStatus(column.getValue());
|
|
|
+ }
|
|
|
+ if (columnQueryType.getColumnInnerRelation().equals("OR")) {
|
|
|
+ for (SearchColumnVo column : columnQueryType.getColumns()) {
|
|
|
+ if (column.getField().equals("customname")) {
|
|
|
+ param.setLikeSearchAll(column.getValue());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|