|
@@ -107,12 +107,14 @@ public class TSugarDoController {
|
|
|
sugarDo.setModifyDate(date);
|
|
|
tSugarDoService.save(sugarDo);
|
|
|
String machineType = equipment.getMachineType();
|
|
|
+ JSONObject kindData = new JSONObject();
|
|
|
if (StringUtils.isNotEmpty(machineType) && machineType.equals("2")) {
|
|
|
// 如果是冰淇淋
|
|
|
+ kindData.put("makeCodes", makeCodes);
|
|
|
+ kindData.put("no", sugarDo.getNo());
|
|
|
makeCodes = "[" + makeCodes + "]";
|
|
|
tEquipmentService.sentMessage(equipment.getClientId(), PushUtils.buildJson("dosugar", makeCodes).toString());
|
|
|
} else {
|
|
|
- JSONObject kindData = new JSONObject();
|
|
|
LambdaQueryWrapper<TProduct> queryWrapper = Wrappers.lambdaQuery();
|
|
|
queryWrapper.eq(TProduct::getEquipmentId, equipmentId);
|
|
|
queryWrapper.eq(TProduct::getProductName, productName);
|