|
|
@@ -150,6 +150,73 @@ func (this *LimsDataEntryController) GetTaskBalanceList() {
|
|
|
this.ServeJSON()
|
|
|
}
|
|
|
|
|
|
+// @Title 获取数据录入列表
|
|
|
+// @Description get user by token
|
|
|
+// @Success 200 {object} business.device.DeviceChannels
|
|
|
+// @router /finishlist [get]
|
|
|
+func (this *LimsDataEntryController) GetTaskBalanceFinishList() {
|
|
|
+ var list []limsdataentry.LimsDateEntryModel
|
|
|
+ //获取分页信息
|
|
|
+ page := this.GetPageInfoForm()
|
|
|
+ svc := limsdataentry.GetLimsDataEntryService(utils.DBE)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ EntrustNo := this.GetString("EntrustNo")
|
|
|
+ testDetailId := this.GetString("TestDetailId")
|
|
|
+ department := this.GetString("department")
|
|
|
+ conUserBy := this.GetString("conUserBy")
|
|
|
+ CheckStatus := this.GetString("CheckStatus")
|
|
|
+ BalanceTime := this.GetString("BalanceTime")
|
|
|
+ orderby := "a.Id desc"
|
|
|
+ Order := this.GetString("Order")
|
|
|
+ Prop := this.GetString("Prop")
|
|
|
+ if Order != "" && Prop != "" {
|
|
|
+ orderby = Prop + " " + Order
|
|
|
+ }
|
|
|
+ where := " b.BalanceStatus <> 0 "
|
|
|
+ if EntrustNo != "" {
|
|
|
+ where = where + " and b.EntrustNo like '%" + EntrustNo + "%'"
|
|
|
+ }
|
|
|
+ if testDetailId != "" {
|
|
|
+ where = where + " and b.TestDetailId = '" + testDetailId + "'"
|
|
|
+ }
|
|
|
+ if department != "" {
|
|
|
+ where = where + " and b.Department like '%" + department + "%'"
|
|
|
+ }
|
|
|
+ if conUserBy != "" {
|
|
|
+ where = where + " and b.ConUserBy = '" + conUserBy + "'"
|
|
|
+ }
|
|
|
+ if CheckStatus != "" {
|
|
|
+ where = where + " and a.CheckStatus = '" + CheckStatus + "'"
|
|
|
+ }
|
|
|
+ if BalanceTime != "" {
|
|
|
+ dates := strings.Split(BalanceTime, ",")
|
|
|
+ if len(dates) == 2 {
|
|
|
+ minDate := dates[0]
|
|
|
+ maxDate := dates[1]
|
|
|
+ where = where + " and b.BalanceTime>='" + minDate + "' and b.BalanceTime<='" + maxDate + "'"
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ svcActiviti := workflow.GetActivitiService(utils.DBE)
|
|
|
+ var processInstanceId string
|
|
|
+ var RoleSet auditsetting.Base_OilAuditSetting
|
|
|
+ rsvc := auditsetting.GetOilAuditSettingService(utils.DBE)
|
|
|
+ rsvc.GetAuditStepRoleEntity(OilAuditSettingName, this.User.DepartmentId, workflow.DATAAUDIT, &RoleSet)
|
|
|
+ processInstanceId = svcActiviti.GetHistoryMyTasks(RoleSet.WorkFlowCord, this.User.Id)
|
|
|
+ if len(processInstanceId) <= 0 {
|
|
|
+ processInstanceId = "0"
|
|
|
+ }
|
|
|
+ where += " and a.Id in (" + processInstanceId + ")"
|
|
|
+ total, list := svc.GetBalanceEntrySerch(this.User.AccCode+LimsTaskBalanceName, this.User.AccCode+LimsDateEntryName, this.User.AccCode+LimsEntrustMainName, page.CurrentPage, page.Size, orderby, where)
|
|
|
+ var datainfo DataInfo
|
|
|
+ datainfo.Items = list
|
|
|
+ datainfo.CurrentItemCount = total
|
|
|
+ this.Data["json"] = &datainfo
|
|
|
+ this.ServeJSON()
|
|
|
+}
|
|
|
+
|
|
|
// @Title 获取数据录入列表
|
|
|
// @Description get user by token
|
|
|
// @Success 200 {object} business.device.DeviceChannels
|