fix
Helius
2021-11-08 625798ed4311553a909646cd922bbda5ef9d3895
fix
1 files added
7 files modified
202 ■■■■■ changed files
zq-erp/src/main/java/com/matrix/system/app/action/ApiCommonAction.java 25 ●●●●● patch | view | raw | blame | history
zq-erp/src/main/java/com/matrix/system/common/bean/SysCompany.java 14 ●●●● patch | view | raw | blame | history
zq-erp/src/main/java/com/matrix/system/common/constance/AppConstance.java 9 ●●●● patch | view | raw | blame | history
zq-erp/src/main/java/com/matrix/system/hive/bean/ShoppingGoods.java 13 ●●●●● patch | view | raw | blame | history
zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml 8 ●●●● patch | view | raw | blame | history
zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html 12 ●●●●● patch | view | raw | blame | history
zq-erp/src/main/resources/templates/views/admin/hive/statistics/daily-beauty-list.html 106 ●●●●● patch | view | raw | blame | history
zq-erp/src/test/java/com/matrix/ParameterSettingsTool.java 15 ●●●●● patch | view | raw | blame | history
zq-erp/src/main/java/com/matrix/system/app/action/ApiCommonAction.java
@@ -1,5 +1,6 @@
package com.matrix.system.app.action;
import cn.hutool.core.collection.CollUtil;
import com.matrix.core.pojo.AjaxResult;
import com.matrix.core.tools.*;
import com.matrix.system.app.authority.AppAuthorityManager;
@@ -8,9 +9,11 @@
import com.matrix.system.app.vo.UserInfoVo;
import com.matrix.system.common.authority.strategy.AccountPasswordLogin;
import com.matrix.system.common.authority.strategy.LoginStrategy;
import com.matrix.system.common.bean.SysCompany;
import com.matrix.system.common.bean.SysUsers;
import com.matrix.system.common.dao.BusParameterSettingsDao;
import com.matrix.system.common.init.LocalCache;
import com.matrix.system.common.service.SysCompanyService;
import com.matrix.system.common.service.SysUsersService;
import com.matrix.system.common.tools.PasswordUtil;
import com.matrix.system.common.tools.UploadUtil;
@@ -61,6 +64,9 @@
    @Autowired
    private BusParameterSettingsDao busParameterSettingsDao;
    @Autowired
    private SysCompanyService sysCompanyService;
    @Value("${file_storage_path}")
@@ -252,6 +258,25 @@
    }
    @ApiOperation(value = "根据企业编码获取对应的请求地址")
    @PostMapping(value = "/getUrlByCompanyCode")
    public AjaxResult getUrlByCompanyCode(@RequestBody SettingDto codeDto) {
        SysCompany query = new SysCompany();
        query.setComCode(codeDto.getCode());
        List<SysCompany> list = sysCompanyService.findByModel(query);
        if (CollUtil.isEmpty(list)) {
            return new AjaxResult(AjaxResult.STATUS_FAIL, "企业编码有误");
        }
        AjaxResult ajaxResult = new AjaxResult();
        ajaxResult.putInMap("url", list.get(0).getComWebUrl());
        return ajaxResult;
    }
    @ApiOperation(value = "管理端小程序登录")
    @PostMapping(value = "/wxLogin")
    public AjaxResult wxLogin(@RequestBody SettingDto codeDto) {
        return null;
    }
}
zq-erp/src/main/java/com/matrix/system/common/bean/SysCompany.java
@@ -134,8 +134,16 @@
            
    
    private String  comPlats;
    private String comCode;
    public String getComCode() {
        return comCode;
    }
    public void setComCode(String comCode) {
        this.comCode = comCode;
    }
    public Long getComId() {
        return comId;
@@ -333,7 +341,7 @@
       public void setComPlats(String comPlats) {
        this.comPlats=comPlats;
    }
    @Override
    public String toString() {
zq-erp/src/main/java/com/matrix/system/common/constance/AppConstance.java
@@ -606,7 +606,14 @@
     */
    public static final String WX_ORDER_NOTICE_DINGDING_TOKEN = "wxOrderNoticeDingdingToken";
    /**
     * 管理端小程序appid
     */
    public static final String MINI_PROGRAM_MANAGER_APP_ID = "miniProgramManagerAppId";
    /**
     * 管理端小程序secret
     */
    public static final String MINI_PROGRAM_MANAGER_SECRET = "miniProgramManagerSecret";
zq-erp/src/main/java/com/matrix/system/hive/bean/ShoppingGoods.java
@@ -449,6 +449,19 @@
     */
    private String payMethods;
    /**
     * 是否合作项目
     */
    private Integer isCooperate;
    public Integer getIsCooperate() {
        return isCooperate;
    }
    public void setIsCooperate(Integer isCooperate) {
        this.isCooperate = isCooperate;
    }
    public String getAchieveRuleName() {
        return achieveRuleName;
    }
zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml
@@ -308,8 +308,8 @@
        invalid_time,
        pay_methods,
        is_infinite,
        achieve_rule_id
        achieve_rule_id,
        is_cooperate
        )
        VALUES (
        #{id},
@@ -371,8 +371,8 @@
            #{invalidTime},
            #{payMethods},
            #{isInfinite},
            #{achieveRuleId}
            #{achieveRuleId},
            #{isCooperate}
        )
    </insert>
zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html
@@ -234,6 +234,17 @@
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="10">
                        <el-form-item label="是否合作项目">
                            <el-radio-group v-model="form.isCooperate">
                                <el-radio label="2">否</el-radio>
                                <el-radio label="1">是</el-radio>
                            </el-radio-group>
                        </el-form-item>
                    </el-col>
                </el-row>
                <p class="el-big-title">销售设置</p>
@@ -1145,6 +1156,7 @@
            //表单数据
            form: {
                isPresent: '否',
                isCooperate: '2',
                staus: '上架',
                //产品组合
                assembleGoods: [],
zq-erp/src/main/resources/templates/views/admin/hive/statistics/daily-beauty-list.html
New file
@@ -0,0 +1,106 @@
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org" xmlns:matrix="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
    content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="../images/favicon.ico">
<!-- 本框架基本脚本和样式 -->
    <script type="text/javascript" th:src="@{/js/systools/MBaseVue.js}"></script>
    <script type="text/javascript" th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/plugin/jquery.query.js}"></script>
    <script type="text/javascript" th:src="@{/plugin/moment.min.js}"></script>
    <link rel="stylesheet" th:href="@{/plugin/element-ui/index.css}">
    <link th:href="@{/css/styleOne/style.min.css}" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" th:src="@{/js/function/public.js}"></script>
</head>
<style>
    .table-style {
        margin: 20px 0;
        padding: 20px 10px;
        border: 1px solid #DCDFE6;
        background-color: white;
    }
</style>
<body>
<div id="app" style="">
    <el-row class="table-style">
        <el-table :data="tableData" style="width: 100%">
            <el-table-column type="index" width="30" fixed="left"></el-table-column>
            <el-table-column prop="datatime" width="150" label="时间" fixed="left"></el-table-column>
            <el-table-column prop="orderType" label="美疗师" fixed="left"></el-table-column>
            <el-table-column prop="orderType" label="客户" fixed="left"></el-table-column>
            <el-table-column prop="orderType" label="是否指定客" width="100"></el-table-column>
            <el-table-column label="客流">
                <el-table-column prop="orderType" label="是否会员"></el-table-column>
                <el-table-column prop="orderType" label="到店途径"></el-table-column>
                <el-table-column prop="orderType" label="当月到店次数" width="120"></el-table-column>
            </el-table-column>
            <el-table-column label="实操业绩">
                <el-table-column prop="orderType" label="项目->消耗产品" width="130"></el-table-column>
                <el-table-column prop="orderType" label="消费类型"></el-table-column>
                <el-table-column prop="orderType" label="项目数量"></el-table-column>
                <el-table-column prop="orderType" label="手工费"></el-table-column>
                <el-table-column prop="orderType" label="耗卡"></el-table-column>
            </el-table-column>
            <el-table-column label="现金业绩">
                <el-table-column prop="orderType" label="特色项目"></el-table-column>
                <el-table-column prop="orderType" label="团购销售"></el-table-column>
                <el-table-column prop="orderType" label="卡项销售"></el-table-column>
                <el-table-column prop="orderType" label="产品销售"></el-table-column>
                <el-table-column prop="orderType" label="会员充值"></el-table-column>
                <el-table-column prop="orderType" label="总业绩"></el-table-column>
                <el-table-column prop="orderType" label="划卡"></el-table-column>
            </el-table-column>
        </el-table>
        <el-row style="margin-top: 10px;">
            <el-pagination
                    @size-change="handleSizeChange"
                    @current-change="handleCurrentChange"
                    :current-page="page.currentPage"
                    :page-sizes="[10, 20, 30, 50]"
                    :page-size="page.size"
                    layout="total, sizes, prev, pager, next, jumper"
                    :total="page.total">
            </el-pagination>
        </el-row>
    </el-row>
</div>
<script type="text/javascript" th:src="@{/plugin/layer/layer.js}"></script>
<script type="text/javascript" th:src="@{/js/systools/AjaxProxyVue.js}"></script>
<script type="text/javascript" th:src="@{/js/plugin/vue.js}"></script>
<script type="text/javascript" th:src="@{/plugin/element-ui/index.js}"></script>
<script type="text/javascript" th:src="@{/plugin/moment.min.js}"></script>
<script type="text/javascript">
    var vue = new Vue({
        el : "#app",
        data : {
            tableData : [],
            page : {
                currentPage : 1,
                size : 10,
                total : 0
            }
        },
        created : function() {
        },
        methods : {
            handleSizeChange(val) {
                this.page.size = val;
                this.queryTableData();
            },
            handleCurrentChange(val) {
                this.page.currentPage = val;
                this.queryTableData();
            },
        }
    })
</script>
</body>
</html>
zq-erp/src/test/java/com/matrix/ParameterSettingsTool.java
@@ -126,6 +126,21 @@
        newSetting11.setCategory("店务配置");
        newSettings.add(newSetting11);
        ParameterSettings newSetting12=new ParameterSettings();
        newSetting12.setCode(AppConstance.MINI_PROGRAM_MANAGER_APP_ID);
        newSetting12.setName("管理端小程序AppID");
        newSetting12.setType(1);
        newSetting12.setCategory("微信开发配置");
        newSettings.add(newSetting12);
        ParameterSettings newSetting13=new ParameterSettings();
        newSetting13.setCode(AppConstance.MINI_PROGRAM_MANAGER_SECRET);
        newSetting13.setName("管理端小程序Secret");
        newSetting13.setType(1);
        newSetting13.setCategory("微信开发配置");
        newSettings.add(newSetting13);
        for (ParameterSettings newSetting : newSettings) {