add dbscript

Signed-off-by: harrybetter <harrybetter@qq.com>
删除错误数据，完善单据打印和进度查看的权限，修改根据各种业务id是否为空或者为-1判断是否新增

Signed-off-by: harrybetter <harrybetter@qq.com>