许鹏程
2023-07-06 c97c24b0f76a76fc9cf09c890265205f64f42dcd
init mobile core
已添加1个文件
已修改26个文件
已删除29个文件
925 ■■■■■ 文件已修改
.classpath 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.factorypath 195 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.gitignore 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.project 48 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.settings/org.eclipse.core.resources.prefs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.settings/org.eclipse.jdt.apt.core.prefs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.settings/org.eclipse.jdt.core.prefs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.settings/org.eclipse.m2e.core.prefs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.settings/org.eclipse.wst.common.component 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.settings/org.eclipse.wst.common.project.facet.core.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.settings/org.eclipse.wst.validation.prefs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
doc/手机应用解决方案.docx 补丁 | 查看 | 原始文档 | blame | 历史
pom.xml 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/mobile/core/controller/ContactPersonController.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/mobile/core/controller/MobileLoggerController.java 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/mobile/core/controller/SignInController.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/mobile/core/controller/SystemFunctionController.java 75 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/mobile/core/service/ApplicationsService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/mobile/core/service/ContanctOrgListService.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/mobile/core/service/NavBarManagerService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/mobile/core/service/SignInService.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/mobile/core/service/SysMessageService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/META-INF/MANIFEST.MF 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/file.properties 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/META-INF/MANIFEST.MF 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/META-INF/maven/com.lx/product-server-mobile-core/pom.properties 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/META-INF/maven/com.lx/product-server-mobile-core/pom.xml 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/config/MobileCoreCode.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/config/MobileCoreConst.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/controller/ApplicationsController.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/controller/ContactPersonController.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/controller/MobileLoggerController.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/controller/MobileNetWorkTestController.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/controller/NavBarManagerController.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/controller/SignInController.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/controller/SysMessageController.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/controller/SystemFunctionController.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/entity/NavBarEntity.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/service/ApplicationsService.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/service/ContanctOrgListService.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/service/NavBarManagerService.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/service/SignInService.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/service/SysMessageService.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/service/SystemFunctionService.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/product/mobile/core/service/ide/INavBarManagerService.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/file.properties 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
target/maven-archiver/pom.properties 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst 补丁 | 查看 | 原始文档 | blame | 历史
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst 补丁 | 查看 | 原始文档 | blame | 历史
target/product-server-mobile-core-1.0.0-SNAPSHOT.jar 补丁 | 查看 | 原始文档 | blame | 历史
target/product-server-mobile-core-1.0.0.jar 补丁 | 查看 | 原始文档 | blame | 历史
target/surefire-reports/2021-05-27T14-18-50_985-jvmRun1.dump 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
target/surefire-reports/2021-07-09T17-11-03_075-jvmRun1.dump 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
target/surefire-reports/2021-07-09T17-11-03_075-jvmRun1.dumpstream 241 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.classpath
ÎļþÒÑɾ³ý
.factorypath
ÎļþÒÑɾ³ý
.gitignore
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
lx_file/upload/
lucene/
attachment/upload/*/
!attachment/upload/template/
target/
.classpath
.project
.settings/
.project
ÎļþÒÑɾ³ý
.settings/org.eclipse.core.resources.prefs
ÎļþÒÑɾ³ý
.settings/org.eclipse.jdt.apt.core.prefs
ÎļþÒÑɾ³ý
.settings/org.eclipse.jdt.core.prefs
ÎļþÒÑɾ³ý
.settings/org.eclipse.m2e.core.prefs
ÎļþÒÑɾ³ý
.settings/org.eclipse.wst.common.component
ÎļþÒÑɾ³ý
.settings/org.eclipse.wst.common.project.facet.core.xml
ÎļþÒÑɾ³ý
.settings/org.eclipse.wst.validation.prefs
ÎļþÒÑɾ³ý
doc/ÊÖ»úÓ¦Óýâ¾ö·½°¸.docx
Binary files differ
pom.xml
@@ -2,42 +2,40 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.lx</groupId>
        <artifactId>product-server</artifactId>
        <groupId>com.lx</groupId>
        <version>2.0.0-release</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>product-server-mobile-core</artifactId>
    <name>product-server-mobile-core</name>
    <description>product-server-mobile-core</description>
    <properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
    </properties>
    <dependencies>
        <dependency>
            <groupId>com.lx</groupId>
            <artifactId>product-server-common</artifactId>
            <version>2.0.0-release</version>
        </dependency>
        <dependency>
            <groupId>com.lx</groupId>
            <artifactId>product-server-util</artifactId>
            <version>2.0.0-release</version>
        </dependency>
        <dependency>
            <groupId>com.lx</groupId>
            <artifactId>product-server-admin</artifactId>
            <version>2.0.0-release</version>
        </dependency>
        <!--releases  -->
        <dependency>
            <groupId>com.lx</groupId>
            <artifactId>product-server-core</artifactId>
            <version>2.0.1</version>
        </dependency>
        <dependency>
            <groupId>com.lx</groupId>
            <artifactId>product-server-file</artifactId>
            <version>2.0.0-release</version>
        </dependency>
    </dependencies>
</project>
src/main/java/com/product/mobile/core/controller/ContactPersonController.java
@@ -25,8 +25,8 @@
public class ContactPersonController extends AbstractBaseController {
    @Autowired
    ContanctOrgListService contanctOrgListService;
    ContanctOrgListService contanctOrgListService;
    @RequestMapping(value = "/contact/org/list/{version}", method = RequestMethod.POST)
    @ApiVersion(1)
    public String contactOrgList(HttpServletRequest request) {
src/main/java/com/product/mobile/core/controller/MobileLoggerController.java
ÎļþÒÑɾ³ý
src/main/java/com/product/mobile/core/controller/SignInController.java
@@ -44,7 +44,7 @@
        signInService.signIn(fse);
        return this.OK();
    }
    /**
     * èŽ·å–å½“å¤©æ‰“å¡ç­¾åˆ°è®°å½•
     *
@@ -77,7 +77,7 @@
            RequestParameterEntity reqp = (RequestParameterEntity) bean;
            fse = reqp.getFormData();
        }
        return this.OK_List(signInService.signInSites(null));
    }
}
src/main/java/com/product/mobile/core/controller/SystemFunctionController.java
@@ -1,12 +1,9 @@
package com.product.mobile.core.controller;
import com.product.admin.service.RouterService;
import com.product.core.config.CoreConst;
import com.product.core.controller.support.AbstractBaseController;
import com.product.core.entity.FieldSetEntity;
import com.product.core.entity.RequestParameterEntity;
import com.product.core.exception.BaseException;
import com.product.core.spring.context.SpringMVCContextHolder;
import com.product.mobile.core.config.MobileCoreCode;
import com.product.mobile.core.service.SystemFunctionService;
import com.product.module.sys.version.ApiVersion;
@@ -28,46 +25,46 @@
@RequestMapping("/api")
public class SystemFunctionController extends AbstractBaseController {
    @Autowired
    RouterService routerService;
    @Autowired
    RouterService routerService;
    @Autowired
    SystemFunctionService systemFunctionService;
    @Autowired
    SystemFunctionService systemFunctionService;
    /**
     * è·¯ç”±èŽ·å–
     *
     * @return
     */
    @PostMapping("/mobile-router/get-router/{version}")
    @ApiVersion(1)
    public String getRouterData() {
        try {
            return OK_List(routerService.getMobileRouter());
        } catch (BaseException e) {
            e.printStackTrace();
            return error(e);
        } catch (Exception e) {
            e.printStackTrace();
            return error(MobileCoreCode.GET_ROUTER_FAIL);
        }
    }
    /**
     * è·¯ç”±èŽ·å–
     *
     * @return
     */
    @PostMapping("/mobile-router/get-router/{version}")
    @ApiVersion(1)
    public String getRouterData() {
        try {
            return OK_List(routerService.getMobileRouter());
        } catch (BaseException e) {
            e.printStackTrace();
            return error(e);
        } catch (Exception e) {
            e.printStackTrace();
            return error(MobileCoreCode.GET_ROUTER_FAIL);
        }
    }
    @PostMapping("/mobile/get-page-button/{version}")
    @ApiVersion(1)
    public String getFunctionButton(HttpServletRequest request) {
        try {
            FieldSetEntity fse = BaseUtil.getFieldSetEntity(request);
            return (String) systemFunctionService.getFunctionButton(fse);
        } catch (BaseException e) {
            e.printStackTrace();
            return error(e);
        } catch (Exception e) {
            e.printStackTrace();
            return error(MobileCoreCode.GET_ROUTER_FAIL);
        }
    }
    @PostMapping("/mobile/get-page-button/{version}")
    @ApiVersion(1)
    public String getFunctionButton(HttpServletRequest request) {
        try {
            FieldSetEntity fse = BaseUtil.getFieldSetEntity(request);
            return (String) systemFunctionService.getFunctionButton(fse);
        } catch (BaseException e) {
            e.printStackTrace();
            return error(e);
        } catch (Exception e) {
            e.printStackTrace();
            return error(MobileCoreCode.GET_ROUTER_FAIL);
        }
    }
}
src/main/java/com/product/mobile/core/service/ApplicationsService.java
@@ -31,7 +31,7 @@
        if(BaseUtil.dataTableIsEmpty(fse.getSubDataTable("systemSeniorQueryString"))){
            queryFilter = "";
        }else {
        }
        DataTableEntity dTableEntity = new DataTableEntity();
        FieldSetEntity moudel1=new FieldSetEntity();
@@ -42,7 +42,7 @@
        moudel2.setValue("uuid", "adasdgddddfadfs");
        dTableEntity.addFieldSetEntity(moudel1);
        dTableEntity.addFieldSetEntity(moudel2);
        DataTableEntity f1=new DataTableEntity();
        FieldSetEntity function1=new FieldSetEntity();
        function1.setValue("name","客户管理");
src/main/java/com/product/mobile/core/service/ContanctOrgListService.java
@@ -29,7 +29,7 @@
@Component
public class ContanctOrgListService extends AbstractBaseService{
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); //制定输出格式
    @Autowired
    public BaseDao baseDao;
    /**
@@ -55,10 +55,10 @@
        if(all) {b.append(" and  a.tricode like '").append(code).append("%'");}//只加载公司人员
//        b.append(" order by a.org_level_code");
        DataTableEntity staff=baseDao.listTable(b.toString(), new String[] {});
        return parseData(org,staff);
    }
    /**
     * å¯¹æ•°æ®è¿›è¡Œå°è£…
     * @param dt
@@ -110,9 +110,9 @@
                    sub.addFieldSetEntity(f);
                }
            }
        }
        return pdt;
    }
}
src/main/java/com/product/mobile/core/service/NavBarManagerService.java
@@ -1,5 +1,6 @@
package com.product.mobile.core.service;
import cn.hutool.core.io.FileUtil;
import com.product.common.lang.StringUtils;
import com.product.core.entity.DataTableEntity;
import com.product.core.entity.FieldSetEntity;
@@ -14,7 +15,9 @@
import com.product.mobile.core.service.ide.INavBarManagerService;
import com.product.module.sys.entity.SystemUser;
import com.product.util.BaseUtil;
import com.product.util.sf.img4.util.ImageUtil;
import org.apache.commons.codec.binary.Base64;
import org.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -157,6 +160,7 @@
        sql.append(" a.nav_bar_name, ");
        sql.append(" a.module_category, ");
        sql.append(" a.uuid ,");
        sql.append(" b.uuid ,");
        sql.append(" a.sequence, ");
        sql.append(" b.route_name ");
        sql.append(" order by a.module_sequence,a.sequence");
src/main/java/com/product/mobile/core/service/SignInService.java
@@ -25,7 +25,7 @@
@Component
public class SignInService extends AbstractBaseService{
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); //制定输出格式
    @Autowired
    public BaseDao baseDao;
    /**
@@ -46,8 +46,8 @@
            fse.setValue(MobileCoreConst.CREATED_UTC_DATETIME, d);
        }
        fse.setValue(MobileCoreConst.FIELD_PUNCH_TYPE,1);//手机打卡
        return baseDao.saveFieldSetEntity(fse);
    }
    /**
@@ -64,7 +64,7 @@
        StringBuilder sql=new StringBuilder();
        sql.append("select *  from ").append(MobileCoreConst.TABLE_PUNCH_RECORD)
        .append(" where created_by=?  and DATE_FORMAT(created_utc_datetime,'%Y-%m-%d')=? ");
        DataTableEntity dt=baseDao.listTable(sql.toString(), new Object[] {user.getUser_id(),str});
        return dt;
    }
@@ -80,5 +80,5 @@
            return baseDao.listTable(MobileCoreConst.TABLE_PUNCH_SITE,"org_level_uuid=?",new String[] {org_level_uuid});
        }
    }
}
src/main/java/com/product/mobile/core/service/SysMessageService.java
@@ -31,7 +31,7 @@
     */
    public DataTableEntity listReadMessage(FieldSetEntity fse) {
        StringBuilder sql = new StringBuilder();
        sql.append("\nselect m.uuid,m.title,m.content,m.send_user_id,mu.user_name send_user_name,m.send_time,m.message_type,ifnull(m.mobile_url,'') url ");
        sql.append("\nselect m.uuid,m.title,m.content,m.send_user_id,mu.user_name send_user_name,m.send_time,m.message_type,m.mobile_url url ");
        sql.append("\nfrom product_sys_message m");
        sql.append("\nleft join product_sys_users mu on mu.user_id=m.send_user_id ");
        sql.append("\ninner join product_sys_message_user u on u.message_uuid=m.uuid and u.read_type=1 and u.user_id=?");
src/main/resources/META-INF/MANIFEST.MF
ÎļþÒÑɾ³ý
src/main/resources/file.properties
ÎļþÒÑɾ³ý
target/classes/META-INF/MANIFEST.MF
ÎļþÒÑɾ³ý
target/classes/META-INF/maven/com.lx/product-server-mobile-core/pom.properties
ÎļþÒÑɾ³ý
target/classes/META-INF/maven/com.lx/product-server-mobile-core/pom.xml
ÎļþÒÑɾ³ý
target/classes/com/product/mobile/core/config/MobileCoreCode.class
Binary files differ
target/classes/com/product/mobile/core/config/MobileCoreConst.class
Binary files differ
target/classes/com/product/mobile/core/controller/ApplicationsController.class
Binary files differ
target/classes/com/product/mobile/core/controller/ContactPersonController.class
Binary files differ
target/classes/com/product/mobile/core/controller/MobileLoggerController.class
Binary files differ
target/classes/com/product/mobile/core/controller/MobileNetWorkTestController.class
Binary files differ
target/classes/com/product/mobile/core/controller/NavBarManagerController.class
Binary files differ
target/classes/com/product/mobile/core/controller/SignInController.class
Binary files differ
target/classes/com/product/mobile/core/controller/SysMessageController.class
Binary files differ
target/classes/com/product/mobile/core/controller/SystemFunctionController.class
Binary files differ
target/classes/com/product/mobile/core/entity/NavBarEntity.class
Binary files differ
target/classes/com/product/mobile/core/service/ApplicationsService.class
Binary files differ
target/classes/com/product/mobile/core/service/ContanctOrgListService.class
Binary files differ
target/classes/com/product/mobile/core/service/NavBarManagerService.class
Binary files differ
target/classes/com/product/mobile/core/service/SignInService.class
Binary files differ
target/classes/com/product/mobile/core/service/SysMessageService.class
Binary files differ
target/classes/com/product/mobile/core/service/SystemFunctionService.class
Binary files differ
target/classes/com/product/mobile/core/service/ide/INavBarManagerService.class
Binary files differ
target/classes/file.properties
ÎļþÒÑɾ³ý
target/maven-archiver/pom.properties
ÎļþÒÑɾ³ý
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
ÎļþÒÑɾ³ý
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
ÎļþÒÑɾ³ý
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
target/product-server-mobile-core-1.0.0-SNAPSHOT.jar
Binary files differ
target/product-server-mobile-core-1.0.0.jar
Binary files differ
target/surefire-reports/2021-05-27T14-18-50_985-jvmRun1.dump
ÎļþÒÑɾ³ý
target/surefire-reports/2021-07-09T17-11-03_075-jvmRun1.dump
ÎļþÒÑɾ³ý
target/surefire-reports/2021-07-09T17-11-03_075-jvmRun1.dumpstream
ÎļþÒÑɾ³ý