|
@@ -36,23 +36,9 @@ func SecondaryOrderApiRegistRouters() {
|
36
|
36
|
beego.Router("/api/secondary/getusername", &SecondaryOrderApiController{}, "get:GetuserName") //获取仓库管理员信息
|
37
|
37
|
beego.Router("/api/secondary/byliinit", &SecondaryOrderApiController{}, "get:Byliinit") //初始化旧数据
|
38
|
38
|
beego.Router("/api/secondary/getcreaterid", &SecondaryOrderApiController{}, "get:GetCreaterId") //获取当前登录的人的id
|
39
|
|
- beego.Router("/api/secondary/ttttt", &SecondaryOrderApiController{}, "get:TTTTT")
|
40
|
39
|
|
41
|
40
|
}
|
42
|
41
|
|
43
|
|
-//ceshi
|
44
|
|
-func (this *SecondaryOrderApiController) TTTTT() {
|
45
|
|
- orgid := this.GetAdminUserInfo().CurrentOrgId
|
46
|
|
- err := service.GetDefaultStorehouse(orgid)
|
47
|
|
- if err != nil {
|
48
|
|
- utils.ErrorLog("创建默认仓库失败,原因为:", err)
|
49
|
|
- }
|
50
|
|
- this.ServeSuccessJSON(map[string]interface{}{
|
51
|
|
- "list": err,
|
52
|
|
- })
|
53
|
|
- return
|
54
|
|
-}
|
55
|
|
-
|
56
|
42
|
//获取仓库编码
|
57
|
43
|
func (this *SecondaryOrderApiController) GetStoreCode() {
|
58
|
44
|
orgId := this.GetAdminUserInfo().CurrentOrgId
|