许鹏程
6 天以前 929e9fedb97a88ef122100e03f775fedae79c474
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package com.product.mobile.core.service;
 
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;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
/**
 * 手机端,获取用户所有应用
 * @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 {
 
        }
        final String TEMP_TABLE = "temp_table";
        DataTableEntity dTableEntity = new DataTableEntity();
        FieldSetEntity moudel1=new FieldSetEntity(TEMP_TABLE);
        moudel1.setValue("name", "行政管理");
        moudel1.setValue("uuid", "adasdgddddfadfs");
        FieldSetEntity moudel2=new FieldSetEntity(TEMP_TABLE);
        moudel2.setValue("name", "项目管理");
        moudel2.setValue("uuid", "adasdgddddfadfs");
        dTableEntity.addFieldSetEntity(moudel1);
        dTableEntity.addFieldSetEntity(moudel2);
 
        DataTableEntity f1=new DataTableEntity();
        FieldSetEntity function1=new FieldSetEntity(TEMP_TABLE);
        function1.setValue("name","客户管理");
        function1.setValue("icon","cc");
        function1.setValue("path","/asdfwasss");
        function1.setValue("uuid","asdfkldsjfelsdfdsf");
        FieldSetEntity function2=new FieldSetEntity(TEMP_TABLE);
        function2.setValue("name","报表管理");
        function2.setValue("icon","cc");
        function2.setValue("path","/asdfwasss");
        function2.setValue("uuid","asdfkldsjfelsdfdsf");
        FieldSetEntity function3=new FieldSetEntity(TEMP_TABLE);
        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;
    }
}