|
@@ -1693,7 +1693,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
1693
|
1693
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
1694
|
1694
|
return
|
1695
|
1695
|
}
|
1696
|
|
- if res.Infcode == -1 {
|
|
1696
|
+ if res.Infcode != 0 {
|
1697
|
1697
|
adminUser := c.GetAdminUserInfo()
|
1698
|
1698
|
errlog := &models.HisOrderError{
|
1699
|
1699
|
UserOrgId: adminUser.CurrentOrgId,
|
|
@@ -1761,7 +1761,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
1761
|
1761
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
1762
|
1762
|
return
|
1763
|
1763
|
}
|
1764
|
|
- if res2.Infcode == -1 {
|
|
1764
|
+ if res2.Infcode != 0 {
|
1765
|
1765
|
adminUser := c.GetAdminUserInfo()
|
1766
|
1766
|
errlog := &models.HisOrderError{
|
1767
|
1767
|
UserOrgId: adminUser.CurrentOrgId,
|
|
@@ -2173,7 +2173,7 @@ func (c *HisApiController) GetUploadInfo() {
|
2173
|
2173
|
return
|
2174
|
2174
|
}
|
2175
|
2175
|
|
2176
|
|
- if res.Infcode == -1 {
|
|
2176
|
+ if res.Infcode != 0 {
|
2177
|
2177
|
errlog := &models.HisOrderError{
|
2178
|
2178
|
UserOrgId: adminUser.CurrentOrgId,
|
2179
|
2179
|
Ctime: time.Now().Unix(),
|
|
@@ -2716,7 +2716,7 @@ func (c *HisApiController) GetPreUploadInfo() {
|
2716
|
2716
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
2717
|
2717
|
return
|
2718
|
2718
|
}
|
2719
|
|
- if res.Infcode == -1 {
|
|
2719
|
+ if res.Infcode != 0 {
|
2720
|
2720
|
errlog := &models.HisOrderError{
|
2721
|
2721
|
UserOrgId: adminUser.CurrentOrgId,
|
2722
|
2722
|
Ctime: time.Now().Unix(),
|
|
@@ -4323,7 +4323,7 @@ func (c *HisApiController) GetUploadDiag() {
|
4323
|
4323
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
4324
|
4324
|
return
|
4325
|
4325
|
}
|
4326
|
|
- if res2.Infcode == -1 {
|
|
4326
|
+ if res2.Infcode != 0 {
|
4327
|
4327
|
adminUser := c.GetAdminUserInfo()
|
4328
|
4328
|
errlog := &models.HisOrderError{
|
4329
|
4329
|
UserOrgId: adminUser.CurrentOrgId,
|
|
@@ -4615,7 +4615,7 @@ func (c *HisApiController) GetPatientInfo() {
|
4615
|
4615
|
return
|
4616
|
4616
|
}
|
4617
|
4617
|
|
4618
|
|
- if res.Infcode == -1 {
|
|
4618
|
+ if res.Infcode != 0 {
|
4619
|
4619
|
c.ServeSuccessJSON(map[string]interface{}{
|
4620
|
4620
|
"failed_code": -10,
|
4621
|
4621
|
"msg": res.ErrMsg,
|