Commit db9b867d by YANGYANG

mis 物品查询

parent 18cd2da0
......@@ -927,12 +927,14 @@ public class MisSolrController {
misSj += " AND CONTACTTEL:"+misAsjRyRelateVO.getContacttel();
}
}
if(null!=misAsjRyRelateVO.getValue() && !"".equals(misAsjRyRelateVO.getValue())){
if("null".equals(misAsjRyRelateVO.getValue())){
misSj += " AND -VALUE:*";
}else{
misSj += " AND VALUE:"+misAsjRyRelateVO.getValue();
if(null!=misAsjRyRelateVO.getValuesjmin() && !"".equals(misAsjRyRelateVO.getValuesjmin())) {
if (null != misAsjRyRelateVO.getValuesjmin() && !"".equals(misAsjRyRelateVO.getValuesjmin())) {
misSj += " AND VALUE:[" + misAsjRyRelateVO.getValuesjmin() + " TO " + misAsjRyRelateVO.getValuesjmax() + "]";
} else {
misSj += " AND VALUE:[" + misAsjRyRelateVO.getValuesjmin() + " TO " + "*]";
}
}else if (null != misAsjRyRelateVO.getValuesjmax() && !"".equals(misAsjRyRelateVO.getValuesjmax())) {
misSj += " AND VALUE:[* TO " + misAsjRyRelateVO.getValuesjmax()+"]";
}
if(null!=misAsjRyRelateVO.getAddress() && !"".equals(misAsjRyRelateVO.getAddress())){
if("null".equals(misAsjRyRelateVO.getAddress())){
......@@ -1063,12 +1065,15 @@ public class MisSolrController {
misCl += " AND MASTERNAME:"+misAsjRyRelateVO.getMastername();
}
}
if(null!=misAsjRyRelateVO.getValue() && !"".equals(misAsjRyRelateVO.getValue())){
if("null".equals(misAsjRyRelateVO.getValue())){
misCl += " AND -VALUE:*";
}else{
misCl += " AND VALUE:"+misAsjRyRelateVO.getValue();
if(null!=misAsjRyRelateVO.getValueclmin() && !"".equals(misAsjRyRelateVO.getValueclmin())) {
if (null != misAsjRyRelateVO.getValueclmin() && !"".equals(misAsjRyRelateVO.getValueclmin())) {
misCl += " AND VALUE:[" + misAsjRyRelateVO.getValueclmin() + " TO " + misAsjRyRelateVO.getValueclmax() + "]";
} else {
misCl += " AND VALUE:[" + misAsjRyRelateVO.getValueclmin() + " TO " + "*]";
}
}else if (null != misAsjRyRelateVO.getValueclmax() && !"".equals(misAsjRyRelateVO.getValueclmax())) {
misCl += " AND VALUE:[* TO " + misAsjRyRelateVO.getValueclmax()+"]";
}
if(null!=misAsjRyRelateVO.getRegisterdate()&& !"".equals(misAsjRyRelateVO.getRegisterdate())){
if("null".equals(misAsjRyRelateVO.getRegisterdate())){
......@@ -1213,12 +1218,14 @@ public class MisSolrController {
misSawp += " AND COLOR:"+misAsjRyRelateVO.getColor();
}
}
if(null!=misAsjRyRelateVO.getAmount()&& !"".equals(misAsjRyRelateVO.getAmount())){
if("null".equals(misAsjRyRelateVO.getAmount())){
misSawp += " AND -AMOUNT:*";
}else{
misSawp += " AND AMOUNT:"+misAsjRyRelateVO.getAmount();
if(null!=misAsjRyRelateVO.getAmount() && !"".equals(misAsjRyRelateVO.getAmount())) {
if (null != misAsjRyRelateVO.getAmount() && !"".equals(misAsjRyRelateVO.getAmount())) {
misSawp += " AND AMOUNT:[" + misAsjRyRelateVO.getAmount() + " TO " + misAsjRyRelateVO.getAmountmax() + "]";
} else {
misSawp += " AND AMOUNT:[" + misAsjRyRelateVO.getAmount() + " TO " + "*]";
}
}else if (null != misAsjRyRelateVO.getAmountmax() && !"".equals(misAsjRyRelateVO.getAmountmax())) {
misSawp += " AND AMOUNT:[* TO " + misAsjRyRelateVO.getAmountmax()+"]";
}
if(null!=misAsjRyRelateVO.getAmountunit()&& !"".equals(misAsjRyRelateVO.getAmountunit())){
if("null".equals(misAsjRyRelateVO.getAmountunit())){
......@@ -1227,12 +1234,14 @@ public class MisSolrController {
misSawp += " AND AMOUNTUNIT:"+misAsjRyRelateVO.getAmountunit();
}
}
if(null!=misAsjRyRelateVO.getHeight()&& !"".equals(misAsjRyRelateVO.getHeight())){
if("null".equals(misAsjRyRelateVO.getHeight())){
misSawp += " AND -HEIGHT:*";
}else{
misSawp += " AND HEIGHT:"+misAsjRyRelateVO.getHeight();
if(null!=misAsjRyRelateVO.getHeight() && !"".equals(misAsjRyRelateVO.getHeight())) {
if (null != misAsjRyRelateVO.getHeight() && !"".equals(misAsjRyRelateVO.getHeight())) {
misSawp += " AND HEIGHT:[" + misAsjRyRelateVO.getHeight() + " TO " + misAsjRyRelateVO.getHeightmax() + "]";
} else {
misSawp += " AND HEIGHT:[" + misAsjRyRelateVO.getHeight() + " TO " + "*]";
}
}else if (null != misAsjRyRelateVO.getHeightmax() && !"".equals(misAsjRyRelateVO.getHeightmax())) {
misSawp += " AND HEIGHT:[* TO " + misAsjRyRelateVO.getHeightmax()+"]";
}
if(null!=misAsjRyRelateVO.getHeightunit()&& !"".equals(misAsjRyRelateVO.getHeightunit())){
if("null".equals(misAsjRyRelateVO.getHeightunit())){
......@@ -1241,12 +1250,14 @@ public class MisSolrController {
misSawp += " AND HEIGHTUNIT:"+misAsjRyRelateVO.getHeightunit();
}
}
if(null!=misAsjRyRelateVO.getValue()&& !"".equals(misAsjRyRelateVO.getValue())){
if("null".equals(misAsjRyRelateVO.getValue())){
misSawp += " AND -VALUE:*";
}else{
misSawp += " AND VALUE:"+misAsjRyRelateVO.getValue();
if(null!=misAsjRyRelateVO.getValuesawpmin()&& !"".equals(misAsjRyRelateVO.getValuesawpmin())) {
if (null != misAsjRyRelateVO.getValuesawpmin() && !"".equals(misAsjRyRelateVO.getValuesawpmin())) {
misSawp += " AND VALUE:[" + misAsjRyRelateVO.getValuesawpmin() + " TO " + misAsjRyRelateVO.getValuesawpmax() + "]";
} else {
misSawp += " AND VALUE:[" + misAsjRyRelateVO.getValuesawpmin() + " TO " + "*]";
}
}else if (null != misAsjRyRelateVO.getValuesawpmax() && !"".equals(misAsjRyRelateVO.getValuesawpmax())) {
misSawp += " AND VALUE:[* TO " + misAsjRyRelateVO.getValuesawpmax()+"]";
}
if(null!=misAsjRyRelateVO.getNamedetail()&& !"".equals(misAsjRyRelateVO.getNamedetail())){
if("null".equals(misAsjRyRelateVO.getNamedetail())){
......
......@@ -333,6 +333,8 @@ public class MisAsjRyRelateVO {
private String gotolocation ;
private String createperson ;
private String modifiedperson ;
private String valueclmin;
private String valueclmax;
//手机
......@@ -342,6 +344,8 @@ public class MisAsjRyRelateVO {
private String ownername ;
private String contacttel ;
private String tag1 ;
private String valuesjmin;
private String valuesjmax;
//涉案物品
private String type ;
......@@ -357,11 +361,16 @@ public class MisAsjRyRelateVO {
private String amountunit ;
private String height ;
private String heightunit ;
private String value ;
private String valuemin ;
private String rewrite ;
private String photo ;
private String namedetail ;
private String spellname ;
private String valuesawpmax;
private String valuesawpmin;
private String amountmax;
private String heightmax ;
//报案人
private String bar_name;
......@@ -2770,13 +2779,7 @@ public class MisAsjRyRelateVO {
this.heightunit = heightunit;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getRewrite() {
return rewrite;
......@@ -3637,4 +3640,78 @@ public class MisAsjRyRelateVO {
public void setMisxyr_hairborder(String misxyr_hairborder) {
this.misxyr_hairborder = misxyr_hairborder;
}
public String getAmountmax() {
return amountmax;
}
public void setAmountmax(String amountmax) {
this.amountmax = amountmax;
}
public String getHeightmax() {
return heightmax;
}
public void setHeightmax(String heightmax) {
this.heightmax = heightmax;
}
public String getValueclmin() {
return valueclmin;
}
public void setValueclmin(String valueclmin) {
this.valueclmin = valueclmin;
}
public String getValueclmax() {
return valueclmax;
}
public void setValueclmax(String valueclmax) {
this.valueclmax = valueclmax;
}
public String getValuesjmin() {
return valuesjmin;
}
public void setValuesjmin(String valuesjmin) {
this.valuesjmin = valuesjmin;
}
public String getValuesjmax() {
return valuesjmax;
}
public void setValuesjmax(String valuesjmax) {
this.valuesjmax = valuesjmax;
}
public String getValuemin() {
return valuemin;
}
public void setValuemin(String valuemin) {
this.valuemin = valuemin;
}
public String getValuesawpmax() {
return valuesawpmax;
}
public void setValuesawpmax(String valuesawpmax) {
this.valuesawpmax = valuesawpmax;
}
public String getValuesawpmin() {
return valuesawpmin;
}
public void setValuesawpmin(String valuesawpmin) {
this.valuesawpmin = valuesawpmin;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment