bug
This commit is contained in:
parent
d0707345f5
commit
5c0172fa32
@ -89,5 +89,15 @@ public class ActiveOneCouponController extends BaseController {
|
||||
return getSuccessResult(this.activeOneCouponService.removeByIds(idList));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@DeleteMapping("/delById/{id}")
|
||||
public ResponseObject deleteById(@PathVariable Long id) {
|
||||
return getSuccessResult(this.activeOneCouponService.removeById(id));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,7 @@ import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -95,6 +96,7 @@ public class CardGiftController extends BaseController {
|
||||
*/
|
||||
@PutMapping
|
||||
public ResponseObject update(@RequestBody CardGift cardGift) {
|
||||
cardGift.setSailTime(new Date());
|
||||
return getSuccessResult(this.cardGiftService.updateById(cardGift));
|
||||
}
|
||||
|
||||
|
@ -159,6 +159,9 @@ public class CardGiftServiceImpl extends ServiceImpl<CardGiftMapper, CardGift> i
|
||||
if(ObjectUtils.isNotEmpty(cardGift.getSailStatus())) {
|
||||
queryWrapper.eq(CardGift::getSailStatus,cardGift.getSailStatus());
|
||||
}
|
||||
if(ObjectUtils.isNotEmpty(cardGift.getActivateStatus())) {
|
||||
queryWrapper.eq(CardGift::getActivateStatus,cardGift.getActivateStatus());
|
||||
}
|
||||
if(ObjectUtils.isNotEmpty(cardGift.getCardAmount())) {
|
||||
queryWrapper.eq(CardGift::getCardAmount,cardGift.getCardAmount());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user