Compare commits
2 Commits
51f41ab996
...
2ee6ec00a0
Author | SHA1 | Date | |
---|---|---|---|
2ee6ec00a0 | |||
6abf78e8eb |
|
@ -121,7 +121,7 @@ func CreateAccount(req *ErpCashier, storeNums []uint32) error {
|
|||
|
||||
// UpdateAccount 更新账号
|
||||
func UpdateAccount(req *ErpCashier, storeNums []uint32) error {
|
||||
exist, err := QueryRecordExist(fmt.Sprintf("SELECT * FROM erp_cashier WHERE `name`='%s'", req.Name))
|
||||
exist, err := QueryRecordExist(fmt.Sprintf("SELECT * FROM erp_cashier WHERE `id`='%d'", req.ID))
|
||||
if err != nil {
|
||||
return fmt.Errorf("更新失败[QueryRecordExist err]:%v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user