Subversion Repositories SmartDukaan

Rev

Rev 37027 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37027 Rev 37120
Line 221... Line 221...
221
	private LocalDateTime createdTimestamp;
221
	private LocalDateTime createdTimestamp;
222
 
222
 
223
	@Column(name = "updated_timestamp")
223
	@Column(name = "updated_timestamp")
224
	private LocalDateTime updatedTimestamp;
224
	private LocalDateTime updatedTimestamp;
225
 
225
 
-
 
226
	// ---- LMS operating-core columns (additive; see migration_lms_operating_core.sql) ----
-
 
227
	// Legacy `status` above is kept in sync with `stage` (LeadStage.toLegacyStatus) on every mutation.
-
 
228
 
-
 
229
	/** Immutable formatted LMS id, e.g. LMS-UPW-26-000123. Generated on create; null for legacy rows. */
-
 
230
	@Column(name = "lms_code")
-
 
231
	private String lmsCode;
-
 
232
 
-
 
233
	/** Richer lifecycle stage (SOP §8). Null for legacy rows → derive via LeadStage.fromLegacy on read. */
-
 
234
	@Column(name = "stage")
-
 
235
	@Enumerated(EnumType.STRING)
-
 
236
	private com.spice.profitmandi.dao.enumuration.dtr.LeadStage stage;
-
 
237
 
-
 
238
	/** Last call disposition (SOP §12.2). */
-
 
239
	@Column(name = "disposition")
-
 
240
	@Enumerated(EnumType.STRING)
-
 
241
	private com.spice.profitmandi.dao.enumuration.dtr.LeadDisposition disposition;
-
 
242
 
-
 
243
	/** Sub-reason for NOT_INTERESTED (Price / Terms / Already partnered / Category mismatch / Other). */
-
 
244
	@Column(name = "disposition_sub_reason")
-
 
245
	private String dispositionSubReason;
-
 
246
 
-
 
247
	/** Creation path: 'A' = BGC outbound, 'B' = field encounter (geo mandatory). */
-
 
248
	@Column(name = "creation_path")
-
 
249
	private String creationPath;
-
 
250
 
-
 
251
	/** Resolved region (FK to cs.region) driving auto-assignment. */
-
 
252
	@Column(name = "region_id")
-
 
253
	private Integer regionId;
-
 
254
 
-
 
255
	/** Region short code (UPW/UPE/RJ/PB/HR/UK/DL) — denormalised for display + LMS id. */
-
 
256
	@Column(name = "region_code")
-
 
257
	private String regionCode;
-
 
258
 
-
 
259
	/** Auto-resolved owning BM/RSM auth id (distinct from assignTo, which is the working owner/ASM). */
-
 
260
	@Column(name = "owner_bm_id")
-
 
261
	private Integer ownerBmId;
-
 
262
 
-
 
263
	/** ASSIGNED / HOLD / FALLBACK (SOP §10.2). HOLD = no active BM/RSM for the region. */
-
 
264
	@Column(name = "assignment_status")
-
 
265
	private String assignmentStatus;
-
 
266
 
-
 
267
	/** First-contact SLA deadline = created + 5h (SOP §11). */
-
 
268
	@Column(name = "first_contact_due")
-
 
269
	private LocalDateTime firstContactDue;
-
 
270
 
-
 
271
	/** When first contact (call/visit with disposition) actually happened. Stamped once. */
-
 
272
	@Column(name = "first_contacted_at")
-
 
273
	private LocalDateTime firstContactedAt;
-
 
274
 
-
 
275
	/** Count of NOT_REACHABLE attempts; lead auto-flags DROPPED after N (SOP §8). */
-
 
276
	@Column(name = "unreachable_count")
-
 
277
	private Integer unreachableCount;
-
 
278
 
-
 
279
	public String getLmsCode() {
-
 
280
		return lmsCode;
-
 
281
	}
-
 
282
 
-
 
283
	public void setLmsCode(String lmsCode) {
-
 
284
		this.lmsCode = lmsCode;
-
 
285
	}
-
 
286
 
-
 
287
	public com.spice.profitmandi.dao.enumuration.dtr.LeadStage getStage() {
-
 
288
		return stage;
-
 
289
	}
-
 
290
 
-
 
291
	public void setStage(com.spice.profitmandi.dao.enumuration.dtr.LeadStage stage) {
-
 
292
		this.stage = stage;
-
 
293
	}
-
 
294
 
-
 
295
	public com.spice.profitmandi.dao.enumuration.dtr.LeadDisposition getDisposition() {
-
 
296
		return disposition;
-
 
297
	}
-
 
298
 
-
 
299
	public void setDisposition(com.spice.profitmandi.dao.enumuration.dtr.LeadDisposition disposition) {
-
 
300
		this.disposition = disposition;
-
 
301
	}
-
 
302
 
-
 
303
	public String getDispositionSubReason() {
-
 
304
		return dispositionSubReason;
-
 
305
	}
-
 
306
 
-
 
307
	public void setDispositionSubReason(String dispositionSubReason) {
-
 
308
		this.dispositionSubReason = dispositionSubReason;
-
 
309
	}
-
 
310
 
-
 
311
	public String getCreationPath() {
-
 
312
		return creationPath;
-
 
313
	}
-
 
314
 
-
 
315
	public void setCreationPath(String creationPath) {
-
 
316
		this.creationPath = creationPath;
-
 
317
	}
-
 
318
 
-
 
319
	public Integer getRegionId() {
-
 
320
		return regionId;
-
 
321
	}
-
 
322
 
-
 
323
	public void setRegionId(Integer regionId) {
-
 
324
		this.regionId = regionId;
-
 
325
	}
-
 
326
 
-
 
327
	public String getRegionCode() {
-
 
328
		return regionCode;
-
 
329
	}
-
 
330
 
-
 
331
	public void setRegionCode(String regionCode) {
-
 
332
		this.regionCode = regionCode;
-
 
333
	}
-
 
334
 
-
 
335
	public Integer getOwnerBmId() {
-
 
336
		return ownerBmId;
-
 
337
	}
-
 
338
 
-
 
339
	public void setOwnerBmId(Integer ownerBmId) {
-
 
340
		this.ownerBmId = ownerBmId;
-
 
341
	}
-
 
342
 
-
 
343
	public String getAssignmentStatus() {
-
 
344
		return assignmentStatus;
-
 
345
	}
-
 
346
 
-
 
347
	public void setAssignmentStatus(String assignmentStatus) {
-
 
348
		this.assignmentStatus = assignmentStatus;
-
 
349
	}
-
 
350
 
-
 
351
	public LocalDateTime getFirstContactDue() {
-
 
352
		return firstContactDue;
-
 
353
	}
-
 
354
 
-
 
355
	public void setFirstContactDue(LocalDateTime firstContactDue) {
-
 
356
		this.firstContactDue = firstContactDue;
-
 
357
	}
-
 
358
 
-
 
359
	public LocalDateTime getFirstContactedAt() {
-
 
360
		return firstContactedAt;
-
 
361
	}
-
 
362
 
-
 
363
	public void setFirstContactedAt(LocalDateTime firstContactedAt) {
-
 
364
		this.firstContactedAt = firstContactedAt;
-
 
365
	}
-
 
366
 
-
 
367
	public Integer getUnreachableCount() {
-
 
368
		return unreachableCount;
-
 
369
	}
-
 
370
 
-
 
371
	public void setUnreachableCount(Integer unreachableCount) {
-
 
372
		this.unreachableCount = unreachableCount;
-
 
373
	}
-
 
374
 
-
 
375
	/** Effective stage for display: stored stage, or derived from legacy status for pre-LMS rows. */
-
 
376
	@Transient
-
 
377
	public com.spice.profitmandi.dao.enumuration.dtr.LeadStage getEffectiveStage() {
-
 
378
		return stage != null
-
 
379
				? stage
-
 
380
				: com.spice.profitmandi.dao.enumuration.dtr.LeadStage.fromLegacy(status, color);
-
 
381
	}
-
 
382
 
226
	public int getAssignTo() {
383
	public int getAssignTo() {
227
		return assignTo;
384
		return assignTo;
228
	}
385
	}
229
 
386
 
230
	public void setAssignTo(int assignTo) {
387
	public void setAssignTo(int assignTo) {