www in docker support
This commit is contained in:
parent
539a848e95
commit
c227fce036
2145 changed files with 399596 additions and 58 deletions
|
|
@ -0,0 +1,45 @@
|
|||
package it.acxent.cc;
|
||||
|
||||
import it.acxent.art.ArticoloCR;
|
||||
import it.acxent.common.CrontabInterface;
|
||||
import it.acxent.db.ApplParm;
|
||||
import it.acxent.db.ApplParmFull;
|
||||
import it.acxent.db.DBAdapter;
|
||||
import it.acxent.db.ResParm;
|
||||
import it.acxent.util.Timer;
|
||||
|
||||
public class CCCronArticoloAutoOfferte implements CrontabInterface {
|
||||
public static void main(String[] args) {
|
||||
String hostname = "localhost";
|
||||
String db = "cc";
|
||||
ApplParmFull apTarget = new ApplParmFull(new ApplParm(3, "//" + hostname + "/" + db, "root", "root", 1, 10, 300));
|
||||
CCCronArticoloAutoOfferte bean = new CCCronArticoloAutoOfferte();
|
||||
bean.crontabJob(apTarget);
|
||||
}
|
||||
|
||||
public ResParm crontabJob(ApplParmFull ap) {
|
||||
ResParm rp = new ResParm(true);
|
||||
Timer timer = new Timer();
|
||||
timer.start();
|
||||
System.out.println("CCCronSitemapXml start...");
|
||||
StringBuffer msg = new StringBuffer("\n################# Inizio crontab CCCronArticoloAutoOfferte CC (" +
|
||||
DBAdapter.getNow().toString() + ")\n#################");
|
||||
ArticoloCR CR = new ArticoloCR(ap);
|
||||
CR.setFlgReadyForWeb(1L);
|
||||
CR.setFlgEscludiWeb(0L);
|
||||
ArticoloAutoOfferte aao = new ArticoloAutoOfferte(ap);
|
||||
aao.setId_vetrinaAO(2L);
|
||||
aao.setNArticoliAO(50L);
|
||||
aao.setNGiorniAO(3L);
|
||||
aao.setGiacenzaMinimaAO(6L);
|
||||
aao.setPercScontoOffertaAO(2.5D);
|
||||
rp = aao.starAutoOfferte(ap, false);
|
||||
msg.append("\n################# Fine crontab CCCronArticoloAutoOfferte CC (" +
|
||||
DBAdapter.getNow().toString() + ")\n#################");
|
||||
timer.stop();
|
||||
msg.append("Durata aggiornamento: " + timer.getDurataHourMin() + "\n");
|
||||
rp.setMsg("\n" + rp.getMsg() + "\n" + msg.toString());
|
||||
System.out.println(msg.toString());
|
||||
return rp;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue