|
|
@ -113,6 +113,7 @@ public class LpkGiftCardService extends MybatisBaseService<LpkGiftCardMapper, Lp |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
return rb.success().setData(p); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean updateIsItInvalid() { |
|
|
|
ResultBean rb = new ResultBean(); |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
@ -125,6 +126,7 @@ public class LpkGiftCardService extends MybatisBaseService<LpkGiftCardMapper, Lp |
|
|
|
} |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean<AppletVo> getGifCardBySid(String sid) { |
|
|
|
ResultBean rb = new ResultBean().fail(); |
|
|
|
AppletVo vo = baseMapper.getGifCardBySid(sid); |
|
|
@ -373,6 +375,8 @@ public class LpkGiftCardService extends MybatisBaseService<LpkGiftCardMapper, Lp |
|
|
|
for (LpkGiftCardExport lpkGiftCardExport : exportList) { |
|
|
|
if (StringUtils.isNotBlank(lpkGiftCardExport.getCode())) { |
|
|
|
lpkGiftCardExport.setPic(finUrl + lpkGiftCardExport.getCode()); |
|
|
|
lpkGiftCardExport.setCode1(lpkGiftCardExport.getCode().substring(0,10)); |
|
|
|
lpkGiftCardExport.setCode2(lpkGiftCardExport.getCode().substring(lpkGiftCardExport.getCode().length() - 10)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -389,6 +393,7 @@ public class LpkGiftCardService extends MybatisBaseService<LpkGiftCardMapper, Lp |
|
|
|
ExportExcelUtils.export(fileNameURL, exportList, LpkGiftCardExport.class, response); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean cardGrant(CardGrantDto dto) { |
|
|
|
ResultBean rb = new ResultBean().fail(); |
|
|
|
int start = Integer.parseInt(dto.getStart()); |
|
|
@ -421,6 +426,7 @@ public class LpkGiftCardService extends MybatisBaseService<LpkGiftCardMapper, Lp |
|
|
|
baseMapper.updateState(serialNumbers, "2", dto.getBankSid(), r); |
|
|
|
return rb.success().setData("成功"); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean<Integer> cardGrantCount(String recordSid) { |
|
|
|
ResultBean rb = new ResultBean().fail(); |
|
|
|
Integer i = baseMapper.cardGrantCount(recordSid); |
|
|
|