提交 3d4d384b 作者: dingtalk_nnkplh

专业封面修改

上级 12d1cf4b
...@@ -2,6 +2,7 @@ package com.ruoyi.system.mapper; ...@@ -2,6 +2,7 @@ package com.ruoyi.system.mapper;
import java.util.List; import java.util.List;
import com.ruoyi.system.domain.TbSchoolMajor; import com.ruoyi.system.domain.TbSchoolMajor;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
/** /**
...@@ -54,6 +55,8 @@ public interface TbSchoolMajorMapper ...@@ -54,6 +55,8 @@ public interface TbSchoolMajorMapper
*/ */
public int updateTbSchoolMajor(TbSchoolMajor tbSchoolMajor); public int updateTbSchoolMajor(TbSchoolMajor tbSchoolMajor);
public int updateTbSchoolMajorCover(TbSchoolMajor tbSchoolMajor);
public int updateTbSchoolMajorCheckResult(TbSchoolMajor tbSchoolMajor); public int updateTbSchoolMajorCheckResult(TbSchoolMajor tbSchoolMajor);
/** /**
......
...@@ -7,6 +7,7 @@ import com.ruoyi.common.constant.Constants; ...@@ -7,6 +7,7 @@ import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.entity.SysDictData; import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.domain.TbSchoolMajor;
import com.ruoyi.system.mapper.*; import com.ruoyi.system.mapper.*;
import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -200,6 +201,10 @@ public class TbSchoolServiceImpl implements ITbSchoolService ...@@ -200,6 +201,10 @@ public class TbSchoolServiceImpl implements ITbSchoolService
@Override @Override
public int updateTbSchool(TbSchool tbSchool) public int updateTbSchool(TbSchool tbSchool)
{ {
TbSchoolMajor tbSchoolMajor=new TbSchoolMajor();
tbSchoolMajor.setSchoolId(tbSchool.getId().toString());
tbSchoolMajor.setMajorCover(tbSchool.getSchoolCover());
tbSchoolMajorMapper.updateTbSchoolMajorCover(tbSchoolMajor);
return tbSchoolMapper.updateTbSchool(tbSchool); return tbSchoolMapper.updateTbSchool(tbSchool);
} }
......
...@@ -158,6 +158,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -158,6 +158,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id} where id = #{id}
</update> </update>
<update id="updateTbSchoolMajorCover" parameterType="TbSchoolMajor">
update tb_school_major
set major_cover = #{majorCover}
where school_id = #{schoolId}
</update>
<update id="updateTbSchoolMajorCheckResult" parameterType="TbSchoolMajor"> <update id="updateTbSchoolMajorCheckResult" parameterType="TbSchoolMajor">
update tb_school_major set checker=#{checker},check_time=sysdate(), update tb_school_major set checker=#{checker},check_time=sysdate(),
check_status=#{checkStatus}, check_result=#{checkResult} where id=#{id} check_status=#{checkStatus}, check_result=#{checkResult} where id=#{id}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论