sample_task_rsp.dart 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938
  1. import 'package:json_annotation/json_annotation.dart';
  2. import 'package:lszlgl/model/num_converter.dart';
  3. import 'package:lszlgl/model/string_converter.dart';
  4. import '../../service/dict_service.dart';
  5. part 'sample_task_rsp.g.dart';
  6. @JsonSerializable(genericArgumentFactories: true)
  7. class SampleTaskListRsp {
  8. final num? total;
  9. final List<SampleTaskItem>? list;
  10. const SampleTaskListRsp({
  11. this.total,
  12. this.list,
  13. });
  14. factory SampleTaskListRsp.fromJson(Map<String, dynamic> json) => _$SampleTaskListRspFromJson(json);
  15. Map<String, dynamic> toJson() => _$SampleTaskListRspToJson(this);
  16. }
  17. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  18. class SampleTaskItem {
  19. num? id;
  20. String? qyryName; // 人员名称
  21. String? fjrq; // 分解日期
  22. String? ypbh; // 样品编号
  23. String? jtpzmc; // 具体品种名称
  24. num? deliveryStatus; // 任务单任务状态:0是待领取,1是待扦样,2已扦样
  25. num? ypdj; // 样品等级--字典获取
  26. String? jyzb; // 检验指标:质量/品质/食安
  27. String? qydq; // 扦样地区
  28. num? jhcysl; // 计划采样数量
  29. num? zljysl; // 质量检验数量
  30. num? pzjyjg; // 品质检验机构
  31. num? pzjysl; // 品质检验数量
  32. num? sajyjg; // 食安检验机构
  33. num? sajysl; // 食安检验数量
  34. num? jhcyjg; // 扦样机构
  35. String? lspz; // 粮食品种
  36. num? bchlx; // 病虫害类型
  37. String? bdcnhhhzs; // 被调查农户或合作社
  38. num? gcpwlx; // 工厂排污类型
  39. String? lxfs; // 联系方式
  40. num? qydbsl; // 扦样代表数量(公斤)
  41. String? qyddjwd; // 扦样地点经纬度
  42. String? qysj; // 扦样时间
  43. num? qysl; // 扦样数量(公斤)
  44. bool? scgczsffsbjyzdbch; // 生产过程中是否发生比较严重的病虫害
  45. String? sheng; // 省
  46. String? shi; // 市
  47. String? qu; // 区
  48. String? xian; // 县
  49. String? cun; // 村
  50. num? shidu; // 湿度
  51. String? shsj; // 收获时间
  52. num? trdllx; // 土壤地理类型
  53. num? wendu; // 温度
  54. num? wrwlx; // 污染物类型
  55. num? zzmj; // 种植面积(亩地)
  56. bool? zztdzwsfygcpw; // 种植土地周围是否有工厂排污
  57. bool? zztdzwsysytrsfywr; // 种植土地周围使用水源、土壤是否有污染
  58. num? zjBaseEnterpriseId; // 企业基本信息ID
  59. num? zjBasePersonnelId; // 人员基本信息表ID
  60. num? zjCodeSamplingTaskId;
  61. num? zjCodeSamplingPlanId; // 采样计划详情ID
  62. String? xzqh; // 行政区划
  63. num? zjBaseGrainInformationId; // 品种id
  64. num? cypzmc; // 采样品种名称
  65. String? cypzName; // 采样品种名称
  66. String? qyrwdh; // 扦样任务单号
  67. num? shengXzqh; // 省行政区划id
  68. num? shiXzqh; // 市行政区划id
  69. num? quXzqh; // 区行政区划id
  70. num? xiangXzqh; // 县行政区划id
  71. num? cunXzqh; // 村行政区划id
  72. num? createTime; // 创建时间
  73. num? state; // 0是待扦样,1已扦样,2已完成
  74. String? name; // 扦样人员姓名
  75. String? dgryName; // 扦样多个人员名称: 张三,李四
  76. String? rwjssj; // 任务接收时间
  77. String? bsjzsj; // 报送截止时间
  78. num? rwlx; // 任务类型/监测环节
  79. num? jclb; // 监测类别
  80. String? dwmc; // 单位名称
  81. List<EnterpriseItem>? enterpriseList; // 机构信息
  82. List<UseMedicineItem>? codeUseMedicineList; // 种植期间农药使用情况
  83. String? zzpz; // 种植品种
  84. String? shengXzqhName; // 省
  85. String? shiXzqhName; // 市
  86. String? quXzqhName; // 区
  87. String? xiangXzqhName; // 县
  88. String? cunXzqhName; // 村
  89. String? cyjhbmCode; // 采样计划编号
  90. String? cyjhmc; // 采样计划名称
  91. String? niandu; // 年度
  92. List<SamplingTaskAllotSgjcItem>? codeSamplingTaskAllotSgjcRespList; // 任务分配
  93. // List<>? codeSamplingTaskDetailsKcjcRespVO; // 库存检测
  94. // List<>? fplist; // 分配多条信息
  95. num? sfyzpz; // 是否优质品种
  96. num? yzpzlx; // 优质品种类型
  97. num? shqjsffslyytq; // 收获期间是否发生连阴雨天气
  98. num? shlssfsfpg; // 收获粮食水分是否偏高
  99. num? jnlbdsffszmwr; // 近年来本地是否发生真菌毒素污染
  100. num? zjdswrlx; // 真菌毒素污染类型
  101. num? jnlbdsfzjswr; // 近年来本地是否发生重金属污染
  102. num? zjswrlx; // 重金属污染类型
  103. List<JyjgxxItem>? jyjgxxRespVOList; // 检验机构信息
  104. num? jypzStatus; // 检验品质按钮0显示1不显示
  105. num? tqqk; // 天气情况
  106. List<NonghuItem>? codeSamplingNonghuList; // 扦样农户信息
  107. String? xzqhCode; // 行政区划六位编码
  108. List<String>? filePictureList; // 签名图片url
  109. SampleTaskItem({
  110. this.id,
  111. this.qyryName,
  112. this.fjrq,
  113. this.ypbh,
  114. this.jtpzmc,
  115. this.deliveryStatus,
  116. this.ypdj,
  117. this.jyzb,
  118. this.qydq,
  119. this.jhcysl,
  120. this.zljysl,
  121. this.pzjyjg,
  122. this.pzjysl,
  123. this.sajyjg,
  124. this.sajysl,
  125. this.jhcyjg,
  126. this.lspz,
  127. this.bchlx,
  128. this.bdcnhhhzs,
  129. this.gcpwlx,
  130. this.lxfs,
  131. this.qydbsl,
  132. this.qyddjwd,
  133. this.qysj,
  134. this.qysl,
  135. this.scgczsffsbjyzdbch,
  136. this.sheng,
  137. this.shi,
  138. this.qu,
  139. this.xian,
  140. this.cun,
  141. this.shidu,
  142. this.shsj,
  143. this.trdllx,
  144. this.wendu,
  145. this.wrwlx,
  146. this.zzmj,
  147. this.zztdzwsfygcpw,
  148. this.zztdzwsysytrsfywr,
  149. this.zjBaseEnterpriseId,
  150. this.zjBasePersonnelId,
  151. this.zjCodeSamplingTaskId,
  152. this.zjCodeSamplingPlanId,
  153. this.xzqh,
  154. this.zjBaseGrainInformationId,
  155. this.cypzmc,
  156. this.cypzName,
  157. this.qyrwdh,
  158. this.shengXzqh,
  159. this.shiXzqh,
  160. this.quXzqh,
  161. this.xiangXzqh,
  162. this.cunXzqh,
  163. this.createTime,
  164. this.state,
  165. this.name,
  166. this.dgryName,
  167. this.rwjssj,
  168. this.bsjzsj,
  169. this.rwlx,
  170. this.jclb,
  171. this.dwmc,
  172. this.enterpriseList,
  173. this.codeUseMedicineList,
  174. this.zzpz,
  175. this.shengXzqhName,
  176. this.shiXzqhName,
  177. this.quXzqhName,
  178. this.xiangXzqhName,
  179. this.cunXzqhName,
  180. this.cyjhbmCode,
  181. this.cyjhmc,
  182. this.niandu,
  183. this.codeSamplingTaskAllotSgjcRespList,
  184. this.sfyzpz,
  185. this.yzpzlx,
  186. this.shqjsffslyytq,
  187. this.shlssfsfpg,
  188. this.jnlbdsffszmwr,
  189. this.zjdswrlx,
  190. this.jnlbdsfzjswr,
  191. this.zjswrlx,
  192. this.jyjgxxRespVOList,
  193. this.jypzStatus,
  194. this.tqqk,
  195. this.codeSamplingNonghuList,
  196. this.xzqhCode,
  197. this.filePictureList,
  198. });
  199. SampleTaskItem createUI() {
  200. // 工厂排污
  201. zztdzwsfygcpw ??= false;
  202. // 工厂排污类型
  203. gcpwlx ??= DictService.getDictFirstNum(DictType.gcpwlx);
  204. // 水源、土壤污染
  205. zztdzwsysytrsfywr ??= false;
  206. // 污染物类型
  207. wrwlx ??= DictService.getDictFirstNum(DictType.wrwlx);
  208. // 病虫害
  209. scgczsffsbjyzdbch ??= false;
  210. // 病虫害类型
  211. bchlx ??= DictService.getDictFirstNum(DictType.bchlx);
  212. // 收获期间是否发生连阴雨天气
  213. shqjsffslyytq ??= 1;
  214. // 收获粮食水分是否偏高
  215. shlssfsfpg ??= 1;
  216. // 近年来本地是否发生真菌毒素污染
  217. jnlbdsffszmwr ??= 1;
  218. // 真菌毒素污染类型
  219. zjdswrlx ??= DictService.getDictFirstNum(DictType.zjdswrlx);
  220. // 近年来本地是否发生重金属污染
  221. jnlbdsfzjswr ??= 1;
  222. // 重金属污染类型
  223. zjswrlx ??= DictService.getDictFirstNum(DictType.zjswrlx);
  224. return this;
  225. }
  226. factory SampleTaskItem.fromJson(Map<String, dynamic> json) => _$SampleTaskItemFromJson(json)..createUI();
  227. Map<String, dynamic> toJson() => _$SampleTaskItemToJson(this);
  228. String getDeliveryStatusText() {
  229. // 任务单任务状态:0是待领取,1是待扦样,2已扦样
  230. return switch (deliveryStatus) { 0 => '待领取', 1 => '待扦样', 2 => '已扦样', _ => '' };
  231. }
  232. Map<String, dynamic> getReqJson() {
  233. Map<String, dynamic> map = {};
  234. map['state'] = state;
  235. map['id'] = id;
  236. map['xzqhCode'] = xzqhCode;
  237. map['xiangXzqhName'] = xiangXzqhName;
  238. map['cunXzqhName'] = cunXzqhName;
  239. map['qyddjwd'] = qyddjwd;
  240. map['zzmj'] = zzmj;
  241. map['trdllx'] = trdllx;
  242. map['bdcnhhhzs'] = bdcnhhhzs;
  243. map['lxfs'] = lxfs;
  244. map['lspz'] = lspz;
  245. map['jtpzmc'] = jtpzmc;
  246. map['sfyzpz'] = sfyzpz;
  247. map['yzpzlx'] = yzpzlx;
  248. map['shsj'] = shsj;
  249. map['qysj'] = qysj;
  250. map['qysl'] = qysl;
  251. map['qydbsl'] = qydbsl;
  252. map['wendu'] = wendu;
  253. map['shidu'] = shidu;
  254. map['zztdzwsfygcpw'] = zztdzwsfygcpw;
  255. map['gcpwlx'] = gcpwlx;
  256. map['zztdzwsysytrsfywr'] = zztdzwsysytrsfywr;
  257. map['wrwlx'] = wrwlx;
  258. map['scgczsffsbjyzdbch'] = scgczsffsbjyzdbch;
  259. map['bchlx'] = bchlx;
  260. map['shqjsffslyytq'] = shqjsffslyytq;
  261. map['shlssfsfpg'] = shlssfsfpg;
  262. map['jnlbdsffszmwr'] = jnlbdsffszmwr;
  263. map['zjdswrlx'] = zjdswrlx;
  264. map['jnlbdsfzjswr'] = jnlbdsfzjswr;
  265. map['zjswrlx'] = zjswrlx;
  266. List<UseMedicineItem>? medicineList = codeUseMedicineList?.where((e) => e.id == null).toList();
  267. if (medicineList != null && medicineList.isNotEmpty) {
  268. map['codeUseMedicineList'] = medicineList.map((e) => e.toReqJson()).toList();
  269. }
  270. map['dgryName'] = dgryName;
  271. map['tqqk'] = tqqk;
  272. List<NonghuItem>? nonghuList = codeSamplingNonghuList?.where((e) => e.id == null).toList();
  273. if (nonghuList != null && nonghuList.isNotEmpty) {
  274. map['codeSamplingNonghuList'] = nonghuList.map((e) => e.toReqJson()).toList();
  275. }
  276. map['filePictureList'] = filePictureList;
  277. return map;
  278. }
  279. }
  280. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  281. class EnterpriseItem {
  282. final num? id; // 单位id
  283. final String? address; // 具体地址
  284. final String? beizhu; // 备注
  285. final num? bgsmj; // 办公室面积(m²)
  286. final num? cqlb; // 产权类别
  287. final num? dnczbksr; // 当年财政拨款收入
  288. final num? dnywwtsr; // 当年业务委托收入
  289. final num? dwdzSheng; // 省id
  290. final String? dwdzShengName; // 省名称
  291. final num? dwdzShi; // 市id
  292. final String? dwdzShiName; // 市名称
  293. final num? dwdzXian; // 县id
  294. final String? dwdzXianName; //县名称
  295. final num? dwjb; // 单位级别
  296. final String? dwmc; //单位名称
  297. final num? dwxz; //单位性质
  298. final String? frdb; //法人代表
  299. final num? jglb; //机构类别
  300. final num? jyyrs; //检验员人数
  301. final String? lxfs; //联系方式
  302. final num? rybzsl; //人员编制数量
  303. final String? shtyxydm; //社会统一信用代码
  304. final num? sysmj; //实验室面积(m²)
  305. final num? zjzmj; //总建筑面积(m²)
  306. final num? zrs; //总人数
  307. final String? dwdz; //单位地址
  308. final String? createTime; //创建时间
  309. final String? creatorDeptId; //创建人所在部门id
  310. final num? deptId; //隶属部门Id
  311. final String? sjzgdw; //上级主管单位
  312. // final List<>? jyllList; //检验能力集合
  313. // final List<>? jyzsList; //检验证书集合
  314. final String? flowCode; //审核编号
  315. final num? flowStatus; //审核状态:0待发起,1审核中,2通过,3驳回
  316. final String? flowCause; //审核意见
  317. final num? flowCheckUserId; //审核人id
  318. final String? flowTime; //审核时间
  319. // final List<>? kycxtdList; //科研创新团队
  320. // final List<>? xdbzList; //牵头或参与制修订标准
  321. // final List<>? kyxmList; //牵头或参与负责科研项目
  322. // final List<>? hdryList; //获得荣誉
  323. // final List<>? personnelList; //人员信息
  324. // final List<>? instrumentEquipmentList; //设备信息
  325. final num? personnelCount; //人员数量
  326. final num? instrumentEquipmentCount; //设备数量
  327. // final List<>? filePictureList; //附件(图片)地址
  328. // final List<>? filePictureTwoList; //附件(图片)地址
  329. // final List<>? guaPaiDeptRespVoList; //挂牌部门集合
  330. const EnterpriseItem({
  331. this.id,
  332. this.address,
  333. this.beizhu,
  334. this.bgsmj,
  335. this.cqlb,
  336. this.dnczbksr,
  337. this.dnywwtsr,
  338. this.dwdzSheng,
  339. this.dwdzShengName,
  340. this.dwdzShi,
  341. this.dwdzShiName,
  342. this.dwdzXian,
  343. this.dwdzXianName,
  344. this.dwjb,
  345. this.dwmc,
  346. this.dwxz,
  347. this.frdb,
  348. this.jglb,
  349. this.jyyrs,
  350. this.lxfs,
  351. this.rybzsl,
  352. this.shtyxydm,
  353. this.sysmj,
  354. this.zjzmj,
  355. this.zrs,
  356. this.dwdz,
  357. this.createTime,
  358. this.creatorDeptId,
  359. this.deptId,
  360. this.sjzgdw,
  361. this.flowCode,
  362. this.flowStatus,
  363. this.flowCause,
  364. this.flowCheckUserId,
  365. this.flowTime,
  366. this.personnelCount,
  367. this.instrumentEquipmentCount,
  368. });
  369. factory EnterpriseItem.fromJson(Map<String, dynamic> json) => _$EnterpriseItemFromJson(json);
  370. Map<String, dynamic> toJson() => _$EnterpriseItemToJson(this);
  371. }
  372. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  373. class UseMedicineItem {
  374. num? id; //ID
  375. String? cjsj; //创建时间
  376. String? syff; //施药方式
  377. String? synypz; //使用农药品种
  378. num? synysl; //扦样使用农药的数量(公斤或毫升/每亩地)
  379. String? sysj; //施药时间
  380. num? zjCodeSamplingTaskDetailsKcjcId;
  381. num? zjCodeSamplingTaskDetailsSgjcId;
  382. String? createTime; //创建时间
  383. String? jcz; //检测值
  384. String? zczfw; //正常值范围
  385. UseMedicineItem({
  386. this.id,
  387. this.cjsj,
  388. this.syff,
  389. this.synypz,
  390. this.synysl,
  391. this.sysj,
  392. this.zjCodeSamplingTaskDetailsKcjcId,
  393. this.zjCodeSamplingTaskDetailsSgjcId,
  394. this.createTime,
  395. this.jcz,
  396. this.zczfw,
  397. });
  398. factory UseMedicineItem.fromJson(Map<String, dynamic> json) => _$UseMedicineItemFromJson(json);
  399. Map<String, dynamic> toJson() => _$UseMedicineItemToJson(this);
  400. Map<String, dynamic> toReqJson() {
  401. Map<String, dynamic> map = {};
  402. map['id'] = id;
  403. map['synypz'] = synypz;
  404. map['synysl'] = synysl;
  405. map['sysj'] = sysj;
  406. map['syff'] = syff;
  407. return map;
  408. }
  409. }
  410. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  411. class NonghuItem {
  412. /// ID
  413. num? id;
  414. /// 被调查农户或合作社
  415. String? bdcnhhhzs;
  416. /// 扦样数量(公斤)
  417. num? qysl;
  418. /// 联系方式
  419. String? lxfs;
  420. /// 扦样代表数量(公斤)
  421. num? qydbsl;
  422. /// 收购扦样任务单ID
  423. num? zjCodeSamplingTaskDetailsSgjcId;
  424. /// 库存扦样任务单ID
  425. num? zjCodeSamplingTaskDetailsKcjcId;
  426. NonghuItem({
  427. this.id,
  428. this.bdcnhhhzs,
  429. this.qysl,
  430. this.lxfs,
  431. this.qydbsl,
  432. this.zjCodeSamplingTaskDetailsKcjcId,
  433. this.zjCodeSamplingTaskDetailsSgjcId,
  434. });
  435. factory NonghuItem.fromJson(Map<String, dynamic> json) => _$NonghuItemFromJson(json);
  436. Map<String, dynamic> toJson() => _$NonghuItemToJson(this);
  437. Map<String, dynamic> toReqJson() {
  438. Map<String, dynamic> map = {};
  439. map['id'] = id;
  440. map['bdcnhhhzs'] = bdcnhhhzs;
  441. map['qysl'] = qysl;
  442. map['lxfs'] = lxfs;
  443. map['qydbsl'] = qydbsl;
  444. return map;
  445. }
  446. }
  447. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  448. class SamplingTaskAllotSgjcItem {
  449. final num? id; //id
  450. final num? zjBaseGrainInformationId; //品种id
  451. final String? cypzmc; //采样品种名称
  452. final num? samplingCount; //计划采样数量
  453. final String? bsjzsj; //报送截至时间
  454. final num? personnelId; // 人员id
  455. final num? zjCodeSamplingPlanId; //计划id
  456. final num? zjCodeSamplingTaskId; //任务id
  457. final String? creater; //创建人
  458. final String? createDate; //创建时间
  459. final String? updateDate; //修改时间
  460. final String? cyjhbmCode; //采样计划编号
  461. final String? cyjhmc; //采样计划名称
  462. final String? niandu; //年度
  463. final String? zzpz; //种植品种
  464. final num? jhcysl; //计划采样数量
  465. const SamplingTaskAllotSgjcItem({
  466. this.id,
  467. this.zjBaseGrainInformationId,
  468. this.cypzmc,
  469. this.samplingCount,
  470. this.bsjzsj,
  471. this.personnelId,
  472. this.zjCodeSamplingPlanId,
  473. this.zjCodeSamplingTaskId,
  474. this.creater,
  475. this.createDate,
  476. this.updateDate,
  477. this.cyjhbmCode,
  478. this.cyjhmc,
  479. this.niandu,
  480. this.zzpz,
  481. this.jhcysl,
  482. });
  483. factory SamplingTaskAllotSgjcItem.fromJson(Map<String, dynamic> json) => _$SamplingTaskAllotSgjcItemFromJson(json);
  484. Map<String, dynamic> toJson() => _$SamplingTaskAllotSgjcItemToJson(this);
  485. }
  486. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  487. class JyjgxxItem {
  488. //企业id
  489. final num? zjBaseEnterpriseId;
  490. //单位名称
  491. final String? dwmc;
  492. //具体地址
  493. final String? address;
  494. //检验单号
  495. final String? jydh;
  496. //样品接收时间
  497. final String? ypjssj;
  498. //数据标记 1-质量,2-品质,3-食品安全,4-储存
  499. final num? sjbj;
  500. const JyjgxxItem({
  501. this.zjBaseEnterpriseId,
  502. this.dwmc,
  503. this.address,
  504. this.jydh,
  505. this.ypjssj,
  506. this.sjbj,
  507. });
  508. factory JyjgxxItem.fromJson(Map<String, dynamic> json) => _$JyjgxxItemFromJson(json);
  509. Map<String, dynamic> toJson() => _$JyjgxxItemToJson(this);
  510. }
  511. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  512. class SampleTaskItemKcjcRsp {
  513. /// ID
  514. num? id;
  515. /// 检验人员ID
  516. num? zjBasePersonnelId;
  517. ///
  518. num? zjCodeSamplingTaskId;
  519. /// 采样计划详情ID
  520. num? zjCodeSamplingPlanId;
  521. /// 创建时间
  522. String? createTime;
  523. /// 机构id
  524. num? zjBaseEnterpriseId;
  525. /// (下发或分解)行政区划Id
  526. num? xzqh;
  527. /// 是否施药
  528. num? sfsy;
  529. /// 编码
  530. String? code;
  531. /// 备注
  532. String? bz;
  533. /// 承储企业名称
  534. String? ccqymc;
  535. /// 扦样仓房
  536. String? qycf;
  537. /// 扦样货位
  538. String? qyhw;
  539. /// 扦样区域
  540. String? qyqy;
  541. /// 仓型
  542. String? cangxing;
  543. /// 入库时间
  544. String? rksj;
  545. /// 入库等级
  546. num? rkdj;
  547. /// 上层粮温(℃)
  548. num? sclw;
  549. /// 产地
  550. String? guoChandi;
  551. /// 产地
  552. String? shengChandi;
  553. /// 代表数量(吨)
  554. num? dbsl;
  555. /// 粮食性质--库存性质
  556. String? lsxz;
  557. /// 收获年度
  558. String? shnd;
  559. /// 扦样时间
  560. String? qysj;
  561. /// 最近施药时间
  562. String? zjsysj;
  563. /// 使用药剂名称
  564. String? syyjmc;
  565. /// 虫害发生情况
  566. num? chfsqk;
  567. /// 扦样时上层粮温(℃)
  568. num? qyssclw;
  569. /// 储粮技术设施
  570. String? cljsss;
  571. /// 扦样任务单号
  572. String? qyrwdh;
  573. /// 样品编号
  574. String? ypbh;
  575. /// 扦样人员姓名
  576. String? name;
  577. /// 任务类型
  578. num? rwlx;
  579. /// 单位名称
  580. String? dwmc;
  581. /// 采样品种名称
  582. num? cypzmc;
  583. /// 采样品种名称
  584. String? cypzName;
  585. /// 种植品种
  586. String? zzpz;
  587. /// 计划采样数量
  588. num? jhcysl;
  589. /// 品质检验数量
  590. num? pzjysl;
  591. /// 质量检验数量
  592. num? zljysl;
  593. /// 食安检验数量
  594. num? sajysl;
  595. /// 储存检验数量
  596. num? ccjysl;
  597. /// 报送截止时间
  598. String? bsjzsj;
  599. /// 扦样机构
  600. num? jhcyjg;
  601. /// 品种id
  602. num? zjBaseGrainInformationId;
  603. /// 采样计划编号
  604. String? cyjhbmCode;
  605. /// 采样计划名称
  606. String? cyjhmc;
  607. /// 年度
  608. String? niandu;
  609. ///
  610. List<SampleTaskAllotItemRsp>? codeSamplingTaskAllotSgjcRespList;
  611. /// 分解状态0是未分解,1已保存,2已分解
  612. num? state;
  613. /// 人员名称
  614. String? qyryName;
  615. /// 下发部门
  616. String? xfbmName;
  617. /// 任务单任务状态:0是待扦样,1已扦样
  618. num? deliveryStatus;
  619. /// 粮食品种
  620. num? lspz;
  621. /// 所在货位粮食总数(吨)
  622. String? szhwlszs;
  623. /// 附件地址
  624. List<FileRsp>? fileList;
  625. ///
  626. num? jclb;
  627. SampleTaskItemKcjcRsp({
  628. this.id,
  629. this.zjBasePersonnelId,
  630. this.zjCodeSamplingTaskId,
  631. this.zjCodeSamplingPlanId,
  632. this.createTime,
  633. this.zjBaseEnterpriseId,
  634. this.xzqh,
  635. this.sfsy,
  636. this.code,
  637. this.bz,
  638. this.ccqymc,
  639. this.qycf,
  640. this.qyhw,
  641. this.qyqy,
  642. this.cangxing,
  643. this.rksj,
  644. this.rkdj,
  645. this.sclw,
  646. this.guoChandi,
  647. this.shengChandi,
  648. this.dbsl,
  649. this.lsxz,
  650. this.shnd,
  651. this.qysj,
  652. this.zjsysj,
  653. this.syyjmc,
  654. this.chfsqk,
  655. this.qyssclw,
  656. this.cljsss,
  657. this.qyrwdh,
  658. this.ypbh,
  659. this.name,
  660. this.rwlx,
  661. this.dwmc,
  662. this.cypzmc,
  663. this.cypzName,
  664. this.zzpz,
  665. this.jhcysl,
  666. this.pzjysl,
  667. this.zljysl,
  668. this.sajysl,
  669. this.ccjysl,
  670. this.bsjzsj,
  671. this.jhcyjg,
  672. this.zjBaseGrainInformationId,
  673. this.cyjhbmCode,
  674. this.cyjhmc,
  675. this.niandu,
  676. this.codeSamplingTaskAllotSgjcRespList,
  677. this.state,
  678. this.qyryName,
  679. this.xfbmName,
  680. this.deliveryStatus,
  681. this.lspz,
  682. this.szhwlszs,
  683. this.fileList,
  684. this.jclb,
  685. });
  686. factory SampleTaskItemKcjcRsp.fromJson(Map<String, dynamic> json) => _$SampleTaskItemKcjcRspFromJson(json);
  687. Map<String, dynamic> toJson() => _$SampleTaskItemKcjcRspToJson(this);
  688. Map<String, dynamic> getReqJson() {
  689. Map<String, dynamic> map = {};
  690. map['state'] = state;
  691. map['id'] = id;
  692. map['zjBasePersonnelId'] = zjBasePersonnelId;
  693. map['zjCodeSamplingTaskId'] = zjCodeSamplingTaskId;
  694. map['zjCodeSamplingPlanId'] = zjCodeSamplingPlanId;
  695. map['zjBaseEnterpriseId'] = zjBaseEnterpriseId;
  696. map['zjBaseGrainInformationId'] = zjBaseGrainInformationId;
  697. map['qyqy'] = qyqy;
  698. map['rksj'] = rksj;
  699. map['rkdj'] = rkdj;
  700. map['guoChandi'] = guoChandi;
  701. map['sclw'] = sclw;
  702. map['dbsl'] = dbsl;
  703. map['szhwlszs'] = szhwlszs;
  704. map['shnd'] = shnd;
  705. map['qysj'] = qysj;
  706. map['sfsy'] = sfsy;
  707. map['zjsysj'] = zjsysj;
  708. map['syyjmc'] = syyjmc;
  709. map['chfsqk'] = chfsqk;
  710. map['qyssclw'] = qyssclw;
  711. map['cljsss'] = cljsss;
  712. map['bz'] = bz;
  713. return map;
  714. }
  715. }
  716. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  717. class FileRsp {
  718. /// 文件编号
  719. num? id;
  720. /// 文件名
  721. String? name;
  722. /// 文件 URL
  723. String? url;
  724. /// 来源类型:0企业附件、1计划附件...
  725. num? objType;
  726. /// 来源id:企业id、计划id...
  727. num? objId;
  728. /// 来源细分:因为企业中有两个附件,要区分开
  729. num? type;
  730. FileRsp({
  731. this.id,
  732. this.name,
  733. this.url,
  734. this.objType,
  735. this.objId,
  736. this.type,
  737. });
  738. factory FileRsp.fromJson(Map<String, dynamic> json) => _$FileRspFromJson(json);
  739. Map<String, dynamic> toJson() => _$FileRspToJson(this);
  740. }
  741. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  742. class SampleTaskAllotItemRsp {
  743. /// id
  744. num? id;
  745. /// 品种id
  746. num? zjBaseGrainInformationId;
  747. /// 采样品种名称
  748. String? cypzmc;
  749. /// 计划采样数量
  750. num? samplingCount;
  751. /// 报送截至时间
  752. String? bsjzsj;
  753. /// 人员id
  754. num? personnelId;
  755. /// 计划id
  756. num? zjCodeSamplingPlanId;
  757. /// 任务id
  758. num? zjCodeSamplingTaskId;
  759. ///
  760. String? creater;
  761. ///
  762. String? createDate;
  763. ///
  764. String? updateDate;
  765. /// 采样计划编号
  766. String? cyjhbmCode;
  767. /// 采样计划名称
  768. String? cyjhmc;
  769. /// 年度
  770. String? niandu;
  771. /// 种植品种
  772. String? zzpz;
  773. /// 计划采样数量
  774. num? jhcysl;
  775. /// 种植品种
  776. String? zzpzmc;
  777. SampleTaskAllotItemRsp({
  778. this.id,
  779. this.zjBaseGrainInformationId,
  780. this.cypzmc,
  781. this.samplingCount,
  782. this.bsjzsj,
  783. this.personnelId,
  784. this.zjCodeSamplingPlanId,
  785. this.zjCodeSamplingTaskId,
  786. this.creater,
  787. this.createDate,
  788. this.updateDate,
  789. this.cyjhbmCode,
  790. this.cyjhmc,
  791. this.niandu,
  792. this.zzpz,
  793. this.jhcysl,
  794. this.zzpzmc,
  795. });
  796. factory SampleTaskAllotItemRsp.fromJson(Map<String, dynamic> json) => _$SampleTaskAllotItemRspFromJson(json);
  797. Map<String, dynamic> toJson() => _$SampleTaskAllotItemRspToJson(this);
  798. }