Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. ShipDateCalculated- Date
  2.  
  3. CorpAcctName -String
  4.  
  5. ShipDate - Date
  6.  
  7. row1.ShipDateCalculated==null?
  8. ("ABC".equalsIgnoreCase(row1.CorpAcctName) || "BCD".equalsIgnoreCase(row1.CorpAcctName)||"CDE".equalsIgnoreCase(row1.CorpAcctName))?
  9. TalendDate.getPartOfDate("DAY_OF_WEEK",row1.ShipDate) ==1?
  10. TalendDate.addDate(TalendDate.formatDate("MM/dd/yyyy", row1.ShipDate ),"MM/dd/yyyy",-3,"dd"):
  11. TalendDate.getPartOfDate("DAY_OF_WEEK",row1.ShipDate) ==2?
  12. TalendDate.addDate(TalendDate.formatDate("MM/dd/yyyy", row1.ShipDate ),"MM/dd/yyyy",-3,"dd"):
  13. TalendDate.addDate(TalendDate.formatDate("MM/dd/yyyy", row1.ShipDate ),"MM/dd/yyyy",-2,"dd"):
  14. TalendDate.getPartOfDate("DAY_OF_WEEK",row1.ShipDate) ==1?
  15. TalendDate.addDate(TalendDate.formatDate("MM/dd/yyyy", row1.ShipDate ),"MM/dd/yyyy",-2,"dd"):
  16. TalendDate.addDate(TalendDate.formatDate("MM/dd/yyyy", row1.ShipDate ),"MM/dd/yyyy",-1,"dd"):
  17. ""
  18.  
  19. Exception in thread "main" java.lang.Error: Unresolved compilation problem:
  20. The method equalsIgnoreCase(String) in the type String is not applicable for the arguments (Date)
  21.  
  22. TalendDate.parseDate("MM/dd/yyyy",("ABC".equalsIgnoreCase(row1.CorpAcctName) || "BCD".equalsIgnoreCase(row1.CorpAcctName)||"CDE".equalsIgnoreCase(row1.CorpAcctName)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement