小程序支付bug
This commit is contained in:
parent
c18c1f976b
commit
69dbe233cf
@ -154,7 +154,7 @@ public class CardFuelDieselController extends BaseController {
|
|||||||
//描述
|
//描述
|
||||||
activeApplet.setDiscountActiveDescribe("本充值活动,充值满"+
|
activeApplet.setDiscountActiveDescribe("本充值活动,充值满"+
|
||||||
cardFuelDiesel.getRechargeBalance()+"元可以参加,所参与油品类型为:"+activeApplet.getOilName()+",锁价单价为:"+
|
cardFuelDiesel.getRechargeBalance()+"元可以参加,所参与油品类型为:"+activeApplet.getOilName()+",锁价单价为:"+
|
||||||
cardFuelDiesel.getLockupPrice()+"元/L,总升数为:"+cardFuelDiesel.getIncomeLitres()+"L,活动时间为:不限时间!");
|
cardFuelDiesel.getLockPrice()+"元/L,活动时间为:不限时间!");
|
||||||
}else {
|
}else {
|
||||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
startFormat = simpleDateFormat.format(cardFuelDiesel.getStartTime());
|
startFormat = simpleDateFormat.format(cardFuelDiesel.getStartTime());
|
||||||
@ -163,7 +163,7 @@ public class CardFuelDieselController extends BaseController {
|
|||||||
//描述
|
//描述
|
||||||
activeApplet.setDiscountActiveDescribe("本充值活动,充值满"+
|
activeApplet.setDiscountActiveDescribe("本充值活动,充值满"+
|
||||||
cardFuelDiesel.getRechargeBalance()+"元可以参加,所参与油品类型为:"+activeApplet.getOilName()+",锁价单价为:"+
|
cardFuelDiesel.getRechargeBalance()+"元可以参加,所参与油品类型为:"+activeApplet.getOilName()+",锁价单价为:"+
|
||||||
cardFuelDiesel.getLockupPrice()+"元/L,总升数为:"+cardFuelDiesel.getIncomeLitres()+"L,活动时间为:"+startFormat+"-"+endFormat);
|
cardFuelDiesel.getLockPrice()+"元/L,活动时间为:"+startFormat+"-"+endFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -216,7 +216,7 @@ public class CardFuelDieselController extends BaseController {
|
|||||||
//描述
|
//描述
|
||||||
activeApplet.setDiscountActiveDescribe("本充值活动,充值满"+
|
activeApplet.setDiscountActiveDescribe("本充值活动,充值满"+
|
||||||
cardFuelDiesel.getRechargeBalance()+"元可以参加,所参与油品类型为:"+activeApplet.getOilName()+",锁价单价为:"+
|
cardFuelDiesel.getRechargeBalance()+"元可以参加,所参与油品类型为:"+activeApplet.getOilName()+",锁价单价为:"+
|
||||||
cardFuelDiesel.getLockupPrice()+"元/L,总升数为:"+cardFuelDiesel.getIncomeLitres()+"L,活动时间为:不限时间!");
|
cardFuelDiesel.getLockPrice()+"元/L,活动时间为:不限时间!");
|
||||||
}else {
|
}else {
|
||||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
startFormat = simpleDateFormat.format(cardFuelDiesel.getStartTime());
|
startFormat = simpleDateFormat.format(cardFuelDiesel.getStartTime());
|
||||||
@ -225,7 +225,7 @@ public class CardFuelDieselController extends BaseController {
|
|||||||
//描述
|
//描述
|
||||||
activeApplet.setDiscountActiveDescribe("本充值活动,充值满"+
|
activeApplet.setDiscountActiveDescribe("本充值活动,充值满"+
|
||||||
cardFuelDiesel.getRechargeBalance()+"元可以参加,所参与油品类型为:"+activeApplet.getOilName()+",锁价单价为:"+
|
cardFuelDiesel.getRechargeBalance()+"元可以参加,所参与油品类型为:"+activeApplet.getOilName()+",锁价单价为:"+
|
||||||
cardFuelDiesel.getLockupPrice()+"元/L,总升数为:"+cardFuelDiesel.getIncomeLitres()+"L,活动时间为:"+startFormat+"-"+endFormat);
|
cardFuelDiesel.getLockPrice()+"元/L,活动时间为:"+startFormat+"-"+endFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
activeApplet.setPoints(cardFuelDiesel.getPoints());
|
activeApplet.setPoints(cardFuelDiesel.getPoints());
|
||||||
|
@ -56,7 +56,9 @@ import com.fuint.business.printer.service.PrinterService;
|
|||||||
import com.fuint.business.storeInformation.entity.LJStore;
|
import com.fuint.business.storeInformation.entity.LJStore;
|
||||||
import com.fuint.business.storeInformation.service.ILJStoreService;
|
import com.fuint.business.storeInformation.service.ILJStoreService;
|
||||||
import com.fuint.business.tag.entity.OilTag;
|
import com.fuint.business.tag.entity.OilTag;
|
||||||
|
import com.fuint.business.tag.entity.TagCode;
|
||||||
import com.fuint.business.tag.service.OilTagService;
|
import com.fuint.business.tag.service.OilTagService;
|
||||||
|
import com.fuint.business.tag.service.TagCodeService;
|
||||||
import com.fuint.business.tag.util.TagUtils;
|
import com.fuint.business.tag.util.TagUtils;
|
||||||
import com.fuint.business.userManager.entity.ChainStoreConfig;
|
import com.fuint.business.userManager.entity.ChainStoreConfig;
|
||||||
import com.fuint.business.userManager.entity.LJUser;
|
import com.fuint.business.userManager.entity.LJUser;
|
||||||
@ -1727,9 +1729,12 @@ public class OilOrderServiceImpl extends ServiceImpl<OilOrderMapper, OilOrder> i
|
|||||||
@Resource
|
@Resource
|
||||||
private PrinterService printerService;
|
private PrinterService printerService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private TagCodeService tagCodeService;
|
||||||
@Override
|
@Override
|
||||||
public int updateOrderStatus(String orderNo, String status) throws Exception {
|
public int updateOrderStatus(String orderNo, String status) throws Exception {
|
||||||
int row = 0;
|
int row = 0;
|
||||||
|
String staffId ="";
|
||||||
OilOrder oilOrder = this.selectOilOrderByOrderNo(orderNo);
|
OilOrder oilOrder = this.selectOilOrderByOrderNo(orderNo);
|
||||||
Integer userId = oilOrder.getUserId();
|
Integer userId = oilOrder.getUserId();
|
||||||
LJUser user = null;
|
LJUser user = null;
|
||||||
@ -1747,6 +1752,13 @@ public class OilOrderServiceImpl extends ServiceImpl<OilOrderMapper, OilOrder> i
|
|||||||
LambdaQueryWrapper<OilTag> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<OilTag> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
queryWrapper.eq(OilTag::getTagCodeSn, oilTagSn);
|
queryWrapper.eq(OilTag::getTagCodeSn, oilTagSn);
|
||||||
OilTag oilTag = oilTagService.getOne(queryWrapper);
|
OilTag oilTag = oilTagService.getOne(queryWrapper);
|
||||||
|
Integer tagCodeId = oilTag.getTagCodeId();
|
||||||
|
TagCode tagCode = tagCodeService.getById(tagCodeId);
|
||||||
|
String[] staffIds = tagCode.getCollection().split("staffId");
|
||||||
|
if (staffIds.length > 1){
|
||||||
|
staffId = staffIds[1];
|
||||||
|
oilOrder.setStaffId(Integer.parseInt(staffId));
|
||||||
|
}
|
||||||
if (ObjectUtils.isNotEmpty(oilTag)) {
|
if (ObjectUtils.isNotEmpty(oilTag)) {
|
||||||
hashMap.put("devName", oilTag.getSnCode());
|
hashMap.put("devName", oilTag.getSnCode());
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ import com.fuint.business.tag.service.TagCodeService;
|
|||||||
import com.fuint.common.dto.AccountInfo;
|
import com.fuint.common.dto.AccountInfo;
|
||||||
import com.fuint.common.util.TokenUtil;
|
import com.fuint.common.util.TokenUtil;
|
||||||
import com.fuint.module.backendApi.controller.BackendFileController;
|
import com.fuint.module.backendApi.controller.BackendFileController;
|
||||||
|
import com.fuint.system.dept.service.ISysDeptService;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.mock.web.MockMultipartFile;
|
import org.springframework.mock.web.MockMultipartFile;
|
||||||
@ -35,6 +36,9 @@ public class OilTagServiceImpl extends ServiceImpl<OilTagMapper, OilTag> impleme
|
|||||||
@Resource
|
@Resource
|
||||||
private TagCodeService tagCodeService;
|
private TagCodeService tagCodeService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ISysDeptService iSysDeptService;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean add(OilTag oilTag) throws Exception {
|
public boolean add(OilTag oilTag) throws Exception {
|
||||||
@ -44,6 +48,7 @@ public class OilTagServiceImpl extends ServiceImpl<OilTagMapper, OilTag> impleme
|
|||||||
oilTag.setTerminalNumber(number+"");
|
oilTag.setTerminalNumber(number+"");
|
||||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
oilTag.setDeptId(Integer.parseInt(nowAccountInfo.getDeptId().toString()));
|
oilTag.setDeptId(Integer.parseInt(nowAccountInfo.getDeptId().toString()));
|
||||||
|
oilTag.setDeptIds(iSysDeptService.selectDeptById(nowAccountInfo.getDeptId()).getAncestors() + ","+nowAccountInfo.getDeptId());
|
||||||
|
|
||||||
LambdaQueryWrapper<TagCode> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<TagCode> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
queryWrapper.eq(TagCode::getTagCodeSn, oilTag.getTagCodeSn());
|
queryWrapper.eq(TagCode::getTagCodeSn, oilTag.getTagCodeSn());
|
||||||
|
Loading…
Reference in New Issue
Block a user