`update TAB_BZGL_KNZY_APP_BGGL set BGZT = '待上架', JSSJ =' ${time}' , XS = ${params.xs}, PC = ${params.pc} where ddh in ('${params.ddh}')`
`update TAB_BZGL_KNZY_APP_BGGL set BGZT = '待上架', JSSJ =' ${time}' , XS = ${params.xs}, PC = ${params.pc} where ddh in ('${params.ddh}')`
return sql
return sql
}
}
// 删除sql
static deleHwRecordSql(guid?:string):string {
const sql = `delete from tab_bzgl_knzy_app_hwb where guid = '${guid}'`
return sql
}
// 判断临时区有没有这个品种
static testLsqWzSql(params?:any):string{
const sql =
`select * from tab_bzgl_knzy_app_hwb where pmdmcode = ${params.pmdmcode} and gldwguid = '${params.gldwguid}' and kfguid = '${params.kfguid}' and zmlx = '${params.zmlx}' and hwh = 'LS-1-1-1'`
return sql
}
// 加临时区物资
static addLsqWzSql(params?:any):string {
const sql =
`update tab_bzgl_knzy_app_hwb set hwsl = hwsl + ${params.hwsl} where pmdmcode = ${params.pmdmcode} and gldwguid = '${params.gldwguid}' and kfguid = '${params.kfguid}' and zmlx = '${params.zmlx}' and hwh = 'LS-1-1-1'`