添加交班时间
This commit is contained in:
@@ -126,9 +126,9 @@ public class DataService {
|
|||||||
|
|
||||||
|
|
||||||
public Result handoverprint(Integer id,boolean isprintProduct){
|
public Result handoverprint(Integer id,boolean isprintProduct){
|
||||||
|
if(ObjectUtil.isNotEmpty(id)){
|
||||||
ShopUserDuty shopUserDuty = shopUserDutyMapper.selectByPrimaryKey(id);
|
ShopUserDuty shopUserDuty = shopUserDutyMapper.selectByPrimaryKey(id);
|
||||||
// ShopUserDuty shopUserDuty=shopUserDutyMapper.selectByShopIdAndDay(tbShopInfo.getId(),tradeDay);
|
if(ObjectUtil.isNotEmpty(shopUserDuty)){
|
||||||
MsgException.checkNull(shopUserDuty, "交班信息不存在");
|
|
||||||
|
|
||||||
TbShopInfo tbShopInfo= tbShopInfoMapper.selectByPrimaryKey(Integer.valueOf(shopUserDuty.getShopId()));
|
TbShopInfo tbShopInfo= tbShopInfoMapper.selectByPrimaryKey(Integer.valueOf(shopUserDuty.getShopId()));
|
||||||
MsgException.checkNull(tbShopInfo,"店铺信息不存在");
|
MsgException.checkNull(tbShopInfo,"店铺信息不存在");
|
||||||
@@ -215,6 +215,10 @@ public class DataService {
|
|||||||
PrinterUtils.printTickets(voiceJson, 1, 1, it.getAddress(), PrinterUtils.handoverprintData(handoverInfo));
|
PrinterUtils.printTickets(voiceJson, 1, 1, it.getAddress(), PrinterUtils.handoverprintData(handoverInfo));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return Result.success(CodeEnum.SUCCESS);
|
return Result.success(CodeEnum.SUCCESS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user