文章广告

This commit is contained in:
zkr_liushenlu 2021-03-25 09:52:49 +08:00
parent ed4113968c
commit 9ed04fce2a
4 changed files with 6 additions and 2 deletions

View File

@ -108,7 +108,7 @@ public class CmsArticleAdInfoServiceImpl implements ICmsArticleAdInfoService {
*/
@Override
public int updateCmsArticleAdInfo(MultipartFile file, CmsArticleAdInfo cmsArticleAdInfo) {
if (!file.isEmpty()) {
if (file != null && !file.isEmpty()) {
String fileName = file.getOriginalFilename();// 文件名
String ext = fileName.substring(fileName.lastIndexOf("."), fileName.length());// 文件后缀
String fileTime = DateUtils.getMillisecond();

View File

@ -160,7 +160,7 @@
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
select
<include refid="Base_Column_List"/>
from article_ad_info
from cms_article_ad_info
where AD_ID = #{adId,jdbcType=INTEGER}
</select>

View File

@ -125,6 +125,8 @@
function submitHandler() {
if ($.validate.form()) {
// 打开遮罩层
$.modal.loading("请稍后...");
var data = new FormData();
data.append('adTitle', $("#adTitle").val());
data.append('adName', $("#adName").val());

View File

@ -139,6 +139,8 @@
function submitHandler() {
if ($.validate.form()) {
// 打开遮罩层
$.modal.loading("请稍后...");
var data = new FormData();
data.append('adId', $("#adId").val());
data.append('adTitle', $("#adTitle").val());