Compare commits
No commits in common. "3327bece3cb5769d222353d963b8eb2218a17930" and "50638b0da4b1576301688885a257097533aebe09" have entirely different histories.
3327bece3c
...
50638b0da4
@ -125,12 +125,12 @@
|
||||
@click="handleUpdate(scope.row)"
|
||||
>修改</el-button>
|
||||
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- @click="handleDelete(scope.row)"-->
|
||||
<!-- >删除-->
|
||||
<!-- </el-button>-->
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@click="handleDelete(scope.row)"
|
||||
>删除
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
|
@ -115,12 +115,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<el-dialog
|
||||
@close="close()"
|
||||
:title="title"
|
||||
:close-on-click-modal="false"
|
||||
:visible.sync="open" width="28%"
|
||||
append-to-body>
|
||||
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="28%" append-to-body>
|
||||
<el-form ref="form" :model="deviceInfo" label-width="80px" :rules="rules">
|
||||
<el-form :model="deviceInfo" ref="deviceForm" label-width="120px" :rules="rules">
|
||||
<el-form-item label="banner名称" prop="bannerName">
|
||||
@ -173,7 +168,6 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="submitForm('deviceForm')">提交</el-button>
|
||||
<el-button @click="open=false">取消</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-form>
|
||||
@ -256,12 +250,6 @@ export default {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
//监听弹窗关闭
|
||||
close(){
|
||||
//重置表单状态
|
||||
this.$refs['deviceForm'].resetFields();
|
||||
|
||||
},
|
||||
getList(){
|
||||
getBannerListApi(this.queryParams).then(res=>{
|
||||
this.tableData = res.data.records;
|
||||
|
@ -63,7 +63,7 @@ public class CardGiftActiveServiceImpl extends ServiceImpl<CardGiftActiveMapper,
|
||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||
if (CollectionUtil.isNotEmpty(list)) {
|
||||
LambdaQueryWrapper<CardGiftActive> queryWrapperActive = new LambdaQueryWrapper<>();
|
||||
queryWrapperActive.eq(CardGiftActive::getActiveName,activeNum)
|
||||
queryWrapperActive.eq(CardGiftActive::getActiveNum,activeNum)
|
||||
.eq(CardGiftActive::getStoreId,nowAccountInfo.getStoreId()).last("limit 1");
|
||||
CardGiftActive giftActive = this.getOne(queryWrapperActive);
|
||||
if (interType.equals("1")){
|
||||
|
@ -70,10 +70,6 @@ public class SysBannerController extends BaseController {
|
||||
@PostMapping
|
||||
public ResponseObject add(@RequestBody SysBanner sysBanner) {
|
||||
try {
|
||||
// 先查询名称是否存在
|
||||
if(this.sysBannerService.queryByName(sysBanner.getBannerName())!=null){
|
||||
return getFailureResult(500,"名称已存在");
|
||||
}
|
||||
SysLog sysLog =new SysLog();
|
||||
sysLog.setSystemName("1");
|
||||
sysLog.setMoudle("banner配置");
|
||||
@ -92,10 +88,6 @@ public class SysBannerController extends BaseController {
|
||||
@PutMapping
|
||||
public ResponseObject edit(@RequestBody SysBanner sysBanner) {
|
||||
try {
|
||||
// 先查询名称是否存在
|
||||
if(this.sysBannerService.queryByName(sysBanner.getBannerName())!=null){
|
||||
return getFailureResult(500,"名称已存在");
|
||||
}
|
||||
SysLog sysLog =new SysLog();
|
||||
sysLog.setSystemName("1");
|
||||
sysLog.setMoudle("banner配置");
|
||||
|
@ -55,6 +55,4 @@ public interface SysBannerService {
|
||||
*/
|
||||
boolean deleteById(Integer id);
|
||||
|
||||
SysBanner queryByName(String bannerName);
|
||||
|
||||
}
|
||||
|
@ -13,8 +13,6 @@ import com.fuint.common.dto.AccountInfo;
|
||||
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 存储Banner信息的表(SysBanner)表服务实现类
|
||||
@ -90,13 +88,4 @@ public class SysBannerServiceImpl implements SysBannerService {
|
||||
public boolean deleteById(Integer id) {
|
||||
return this.sysBannerMapper.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysBanner queryByName(String bannerName) {
|
||||
HashMap<String, Object> objectObjectHashMap = new HashMap<>();
|
||||
objectObjectHashMap.put("banner_name",bannerName);
|
||||
List<SysBanner> sysBanners = sysBannerMapper.selectByMap(objectObjectHashMap);
|
||||
|
||||
return sysBanners.size() > 0 ? sysBanners.get(0) : null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user