|
|
|
|
@ -18,14 +18,17 @@ import java.util.List;
|
|
|
|
|
public class BroadDruidServiceImpl implements IBroadDruidService {
|
|
|
|
|
@Autowired
|
|
|
|
|
private BroadDataMapper mapper;
|
|
|
|
|
//定时生成产量
|
|
|
|
|
//定时删除数据
|
|
|
|
|
public void createWork(){
|
|
|
|
|
BoxOutput boxOutput=mapper.selectNowXkOutPut();
|
|
|
|
|
int nowOut=boxOutput.getQty();
|
|
|
|
|
int qty=mapper.selectXK_H_QTY(); //上一条
|
|
|
|
|
int zsQty=mapper.selectNowXkOutPut1();
|
|
|
|
|
int cha=nowOut-qty;
|
|
|
|
|
mapper.insertXK_H_QTY(boxOutput.getName(),zsQty,cha<0?0:cha,nowOut);
|
|
|
|
|
// BoxOutput boxOutput=mapper.selectNowXkOutPut();
|
|
|
|
|
// int nowOut=boxOutput.getQty();
|
|
|
|
|
// int qty=mapper.selectXK_H_QTY(); //上一条
|
|
|
|
|
// int zsQty=mapper.selectNowXkOutPut1();
|
|
|
|
|
// int cha=nowOut-qty;
|
|
|
|
|
// mapper.insertXK_H_QTY(boxOutput.getName(),zsQty,cha<0?0:cha,nowOut);
|
|
|
|
|
|
|
|
|
|
mapper.deleteWorkTime();
|
|
|
|
|
mapper.deleteBoxOutput();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|