Procházet zdrojové kódy

客户签订项目新增区分查看自我和所有

anderx před 2 dny
rodič
revize
09a85c75b8

+ 13 - 1
src/main/java/com/goafanti/customer/bo/BusinessListBo.java

@@ -35,7 +35,19 @@ public class BusinessListBo {
 	private String businessVarietiesName;
 	/** 备注信息 **/
 	private String remarks;
-	
+	/**
+	 * 查询类型 0我的, 1=所有
+	 */
+	private Integer type;
+
+	public Integer getType() {
+		return type;
+	}
+
+	public void setType(Integer type) {
+		this.type = type;
+	}
+
 	public String getUfbId() {
 		return ufbId;
 	}

+ 4 - 1
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -1804,7 +1804,10 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 	@SuppressWarnings("unchecked")
 	@Override
 	public Pagination<BusinessListBo> listBusiness(BusinessListBo blo, Integer pageNo, Integer pageSize) {
-		blo.setAid(TokenManager.getAdminId());
+		if (blo.getType()==null|| blo.getType()==1){
+			blo.setAid(TokenManager.getAdminId());
+		}
+
 		return (Pagination<BusinessListBo>) findPage("selectBusinessList", "selectBusinessCount", disposeParams(blo),
 				pageNo, pageSize);
 	}