| | |
| | | et_problemDes.visibility = View.GONE |
| | | ll_change_suggestion.visibility = View.GONE |
| | | //加载预置数据 |
| | | val gittypeList = DbFactory.getInstance().gittypeDao.queryBuilder() |
| | | val gittypeList = DbFactory.getInstance().gittypeDao.queryBuilder() |
| | | .where( |
| | | GittypeDao.Properties.Tasktype.eq(subTask?.type) , |
| | | GittypeDao.Properties.Scensetype.eq(scene?.type), |
| | | GittypeDao.Properties.Districtname.eq(subTask?.districtname) |
| | | GittypeDao.Properties.Tasktype.eq(subTask?.type ?: ""), |
| | | GittypeDao.Properties.Scensetype.eq(scene?.type ?: ""), |
| | | GittypeDao.Properties.Districtname.eq(subTask?.districtname ?: "") |
| | | ).orderAsc(GittypeDao.Properties.Typeid).list() |
| | | if (gittypeList.size == 0) { |
| | | val gittype1 = Gittype() |
| | |
| | | override fun onResponse(call: Call<ResponseBody>, response: Response<ResponseBody>) { |
| | | if (response.body() != null) { |
| | | Toast.makeText(application, "提交成功", Toast.LENGTH_SHORT).show() |
| | | for (oldfile in pathTempList) { |
| | | for (l in pathTempList) { |
| | | val oldfile = l.first |
| | | val fileName = gitSelected.name + " " + UUIDGenerator.generateUUID(4) + ".jpg" |
| | | val mediafile = Mediafile() |
| | | mediafile.guid = UUIDGenerator.generate16ShortUUID() |