Example #1
0
        public async Task <TData> DeleteForm(string ids)
        {
            TData obj = new TData();
            await baseInfoService.DeleteForm(ids);

            obj.Tag = 1;
            return(obj);
        }
Example #2
0
        /// <summary>
        /// 清除people_base_info表中数据
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        private async Task <bool> DeleteBaseData(string ids)
        {
            List <string> per    = new List <string>();
            string        perids = "";

            foreach (var id in ids)
            {
                var EntityData = await baseInfoService.GetEntity(id);

                if (EntityData == null)
                {
                    continue;
                }
                perids += (EntityData.Id + ",");
            }
            await baseInfoService.DeleteForm(perids.Trim(','));

            return(true);
        }