|
@@ -1096,9 +1096,9 @@ func AddChartInfo(req data_manage.AddChartInfoReq, source int, sysUser *system.A
|
|
|
|
|
|
switch lang {
|
|
switch lang {
|
|
case utils.EnLangVersion:
|
|
case utils.EnLangVersion:
|
|
- condition += " AND chart_name_en = ? AND source = ? AND sys_suer_id = ? "
|
|
|
|
|
|
+ condition += " AND chart_name_en = ? AND source = ? AND sys_user_id = ? "
|
|
default:
|
|
default:
|
|
- condition += " AND chart_name=? AND source = ? AND sys_suer_id = ? "
|
|
|
|
|
|
+ condition += " AND chart_name=? AND source = ? AND sys_user_id = ? "
|
|
}
|
|
}
|
|
pars = append(pars, req.ChartName, source, sysUser.AdminId)
|
|
pars = append(pars, req.ChartName, source, sysUser.AdminId)
|
|
count, tmpErr := data_manage.GetChartInfoCountByCondition(condition, pars)
|
|
count, tmpErr := data_manage.GetChartInfoCountByCondition(condition, pars)
|
|
@@ -1355,7 +1355,7 @@ func EditChartInfo(req data_manage.EditChartInfoReq, sysUser *system.Admin, lang
|
|
{
|
|
{
|
|
var condition string
|
|
var condition string
|
|
var pars []interface{}
|
|
var pars []interface{}
|
|
- condition += " AND chart_info_id <> ? AND sys_suer_id = ? "
|
|
|
|
|
|
+ condition += " AND chart_info_id <> ? AND sys_user_id = ? "
|
|
pars = append(pars, req.ChartInfoId, sysUser.AdminId)
|
|
pars = append(pars, req.ChartInfoId, sysUser.AdminId)
|
|
switch lang {
|
|
switch lang {
|
|
case utils.EnLangVersion:
|
|
case utils.EnLangVersion:
|