企业信息增加字段 登录页标题

dev
masong 3 years ago
parent ed5e75d30f
commit 677556fd56
  1. 11
      cjy-project/src/main/java/com/cjy/enterprise/domain/EnterpriseInfo.java
  2. 10
      cjy-project/src/main/resources/mapper/enterprise/EnterpriseInfoMapper.xml
  3. 10
      ruoyi-ui/src/views/enterprise/index.vue

@ -73,7 +73,8 @@ public class EnterpriseInfo extends BaseEntity
/** 数据状态 新增:0 修改:1删除:2 */
private Integer dataStatus;
/**登录页标题*/
private String loginTitle;
public void setId(Long id)
{
this.id = id;
@ -237,6 +238,14 @@ public class EnterpriseInfo extends BaseEntity
return dataStatus;
}
public String getLoginTitle() {
return loginTitle;
}
public void setLoginTitle(String loginTitle) {
this.loginTitle = loginTitle;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

@ -16,6 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="contactPerson" column="contact_person" />
<result property="contactNumber" column="contact_number" />
<result property="websiteUrl" column="website_url" />
<result property="loginTitle" column="login_title"/>
<result property="loginLogo" column="login_logo" />
<result property="loginBackground" column="login_background" />
<result property="createrUserId" column="creater_user_id" />
@ -37,6 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="contactPerson" column="contact_person" />
<result property="contactNumber" column="contact_number" />
<result property="websiteUrl" column="website_url" />
<result property="loginTitle" column="login_title"/>
<result property="loginLogo" column="login_logo" />
<result property="loginBackground" column="login_background" />
<result property="createrUserId" column="creater_user_id" />
@ -49,15 +51,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="roleId" column="role_id"/>
</resultMap>
<sql id="selectEnterpriseInfoVo">
select id, organ_code, organ_name, location, address, accuracy, dimension, is_organ, contact_person, contact_number, website_url, login_logo, login_background, creater_user_id, creater_time, update_user_id, update_time, status, data_status from ti_enterprise_info
select id, organ_code, organ_name, location, address, accuracy, dimension, is_organ, contact_person, contact_number, website_url,login_title, login_logo, login_background, creater_user_id, creater_time, update_user_id, update_time, status, data_status from ti_enterprise_info
</sql>
<select id="selectEnterpriseInfoList" parameterType="EnterpriseInfo" resultMap="EnterpriseInfoExtendResult">
select e.id, e.organ_code, e.organ_name, e.location, e.address, e.accuracy, e.dimension, e.is_organ, e.contact_person, e.contact_number, e.website_url, e.login_logo, e.login_background, e.creater_user_id, e.creater_time, e.update_user_id, e.update_time, e.status, e.data_status,u.user_id,(select r.role_id from sys_role r where r.role_key=e.organ_code ) as role_id from ti_enterprise_info e left join sys_user u on e.organ_code = u.organ_code
select e.id, e.organ_code, e.organ_name, e.location, e.address, e.accuracy, e.dimension, e.is_organ,e.login_title, e.contact_person, e.contact_number, e.website_url, e.login_logo, e.login_background, e.creater_user_id, e.creater_time, e.update_user_id, e.update_time, e.status, e.data_status,u.user_id,(select r.role_id from sys_role r where r.role_key=e.organ_code ) as role_id from ti_enterprise_info e left join sys_user u on e.organ_code = u.organ_code
<where>
<if test="organCode != null and organCode != ''"> and e.organ_code = #{organCode}</if>
<if test="organName != null and organName != ''"> and e.organ_name like concat('%', #{organName}, '%')</if>
</where>
order by e.id desc
</select>
<select id="selectEnterpriseInfoById" parameterType="Long" resultMap="EnterpriseInfoResult">
@ -78,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactPerson != null">contact_person,</if>
<if test="contactNumber != null">contact_number,</if>
<if test="websiteUrl != null">website_url,</if>
<if test="loginTitle !=null"> login_title,</if>
<if test="loginLogo != null">login_logo,</if>
<if test="loginBackground != null">login_background,</if>
<if test="createrUserId != null">creater_user_id,</if>
@ -98,6 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactPerson != null">#{contactPerson},</if>
<if test="contactNumber != null">#{contactNumber},</if>
<if test="websiteUrl != null">#{websiteUrl},</if>
<if test="loginTitle !=null">#{loginTitle},</if>
<if test="loginLogo != null">#{loginLogo},</if>
<if test="loginBackground != null">#{loginBackground},</if>
<if test="createrUserId != null">#{createrUserId},</if>
@ -122,6 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactPerson != null">contact_person = #{contactPerson},</if>
<if test="contactNumber != null">contact_number = #{contactNumber},</if>
<if test="websiteUrl != null">website_url = #{websiteUrl},</if>
<if test="loginTitle !=null"> login_title =#{loginTitle},</if>
<if test="loginLogo != null">login_logo = #{loginLogo},</if>
<if test="loginBackground != null">login_background = #{loginBackground},</if>
<if test="createrUserId != null">creater_user_id = #{createrUserId},</if>

@ -203,6 +203,13 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="登录页标题" prop="loginTitle">
<el-input v-model="form.loginTitle" placeholder="请输登录页标题"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="登录页logo" prop="loginLogo">
@ -388,7 +395,8 @@ export default {
updateUserId: null,
updateTime: null,
status: null,
dataStatus: null
dataStatus: null,
loginTitle: null
};
this.resetForm("form");
},

Loading…
Cancel
Save