完善礼品卡信息导出功能
This commit is contained in:
@@ -12,11 +12,14 @@ import lombok.Data;
|
||||
public class LpkGiftCardExport {
|
||||
@ExportEntityMap(CnName = "提货二维码", EnName = "pic")
|
||||
private String pic;
|
||||
@ExportEntityMap(CnName = "提货编码", EnName = "code")
|
||||
private String code;
|
||||
@ExportEntityMap(CnName = "提货编码第一行", EnName = "code1")
|
||||
private String code1;
|
||||
@ExportEntityMap(CnName = "提货编码第二行", EnName = "code2")
|
||||
private String code2;
|
||||
@ExportEntityMap(CnName = "提货密码", EnName = "codeKey")
|
||||
private String codeKey;
|
||||
@ExportEntityMap(CnName = "序列号", EnName = "serialNumber")
|
||||
private String serialNumber;
|
||||
private String code;
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user