文章广告
This commit is contained in:
parent
ed4113968c
commit
9ed04fce2a
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue