package com.product.mobile.core.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.product.core.dao.BaseDao; import com.product.core.entity.DataTableEntity; import com.product.core.entity.FieldSetEntity; import com.product.core.exception.BaseException; import com.product.core.service.support.AbstractBaseService; import com.product.util.BaseUtil; /** * 手机端,获取用户所有应用 * @author Administrator * */ @Component public class ApplicationsService extends AbstractBaseService{ @Autowired public BaseDao baseDao; /** * 代码逻辑查询列表 * @param cpage * @param pagesize * @return * @throws BaseException */ public DataTableEntity getUserApps(FieldSetEntity fse) throws BaseException{ String queryFilter; if(BaseUtil.dataTableIsEmpty(fse.getSubDataTable("systemSeniorQueryString"))){ queryFilter = ""; }else { } DataTableEntity dTableEntity = new DataTableEntity(); FieldSetEntity moudel1=new FieldSetEntity(); moudel1.setValue("name", "行政管理"); moudel1.setValue("uuid", "adasdgddddfadfs"); FieldSetEntity moudel2=new FieldSetEntity(); moudel2.setValue("name", "项目管理"); moudel2.setValue("uuid", "adasdgddddfadfs"); dTableEntity.addFieldSetEntity(moudel1); dTableEntity.addFieldSetEntity(moudel2); DataTableEntity f1=new DataTableEntity(); FieldSetEntity function1=new FieldSetEntity(); function1.setValue("name","客户管理"); function1.setValue("icon","cc"); function1.setValue("path","/asdfwasss"); function1.setValue("uuid","asdfkldsjfelsdfdsf"); FieldSetEntity function2=new FieldSetEntity(); function2.setValue("name","报表管理"); function2.setValue("icon","cc"); function2.setValue("path","/asdfwasss"); function2.setValue("uuid","asdfkldsjfelsdfdsf"); FieldSetEntity function3=new FieldSetEntity(); function3.setValue("name","公文管理"); function3.setValue("icon","cc"); function3.setValue("path","/asdfwasss"); function3.setValue("uuid","asdfkldsjfelsdfdsf"); f1.addFieldSetEntity(function1); f1.addFieldSetEntity(function2); f1.addFieldSetEntity(function3); moudel1.addSubDataTable(f1); return dTableEntity; } }