添加交班时间

This commit is contained in:
牛叉闪闪 2024-07-22 14:50:47 +08:00
parent 2a361fed46
commit a4a9f43ac6
1 changed files with 71 additions and 67 deletions

View File

@ -126,9 +126,9 @@ public class DataService {
public Result handoverprint(Integer id,boolean isprintProduct){
if(ObjectUtil.isNotEmpty(id)){
ShopUserDuty shopUserDuty = shopUserDutyMapper.selectByPrimaryKey(id);
// ShopUserDuty shopUserDuty=shopUserDutyMapper.selectByShopIdAndDay(tbShopInfo.getId(),tradeDay);
MsgException.checkNull(shopUserDuty, "交班信息不存在");
if(ObjectUtil.isNotEmpty(shopUserDuty)){
TbShopInfo tbShopInfo= tbShopInfoMapper.selectByPrimaryKey(Integer.valueOf(shopUserDuty.getShopId()));
MsgException.checkNull(tbShopInfo,"店铺信息不存在");
@ -215,6 +215,10 @@ public class DataService {
PrinterUtils.printTickets(voiceJson, 1, 1, it.getAddress(), PrinterUtils.handoverprintData(handoverInfo));
});
}
}
return Result.success(CodeEnum.SUCCESS);
}
}