|
|
|
@ -5,10 +5,8 @@ import com.ms.api.dto.move.MoveProductDTO;
|
|
|
|
|
import com.ms.api.dto.move.SaveBatchMoveTaskRequestDTO;
|
|
|
|
|
import com.ms.api.tool.CommonTool;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.time.ZoneId;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
public class CommonToolTest {
|
|
|
|
|
|
|
|
|
@ -16,19 +14,22 @@ public class CommonToolTest {
|
|
|
|
|
// String s = CommonTool.getCurMonthLastTime();
|
|
|
|
|
// System.out.println(s);
|
|
|
|
|
|
|
|
|
|
Map<String,List<MoveProductDTO>> start = new HashMap<>();
|
|
|
|
|
List<MoveProductDTO> mList = new ArrayList<>();
|
|
|
|
|
// Map<String,List<MoveProductDTO>> start = new HashMap<>();
|
|
|
|
|
// List<MoveProductDTO> mList = new ArrayList<>();
|
|
|
|
|
//
|
|
|
|
|
// MoveProductDTO moveProductDTO = new MoveProductDTO();
|
|
|
|
|
// moveProductDTO.setSource("1688");
|
|
|
|
|
// moveProductDTO.setIsFastMode(0);
|
|
|
|
|
// moveProductDTO.setCid("20219");
|
|
|
|
|
// moveProductDTO.setSourceImgUrl("https://cbu01.alicdn.com/img/ibank/O1CN01j9gsEX1LJpR9dXvjY_!!2215879181279-0-cib.jpg");
|
|
|
|
|
// moveProductDTO.setSourceItemId(734074040263L);
|
|
|
|
|
// moveProductDTO.setSourceTitle("半身裙女春夏2023新款裙裤短裙蓬蓬裙高腰百褶裙荷叶边超短裙");
|
|
|
|
|
// mList.add(moveProductDTO);
|
|
|
|
|
//
|
|
|
|
|
// start.put("products",mList);
|
|
|
|
|
// System.out.println(JSON.toJSONString(start));
|
|
|
|
|
ZoneId zoneId = ZoneId.systemDefault();
|
|
|
|
|
System.out.println("Current TimeZone is: " + zoneId.getId());
|
|
|
|
|
|
|
|
|
|
MoveProductDTO moveProductDTO = new MoveProductDTO();
|
|
|
|
|
moveProductDTO.setSource("1688");
|
|
|
|
|
moveProductDTO.setIsFastMode(0);
|
|
|
|
|
moveProductDTO.setCid("20219");
|
|
|
|
|
moveProductDTO.setSourceImgUrl("https://cbu01.alicdn.com/img/ibank/O1CN01j9gsEX1LJpR9dXvjY_!!2215879181279-0-cib.jpg");
|
|
|
|
|
moveProductDTO.setSourceItemId(734074040263L);
|
|
|
|
|
moveProductDTO.setSourceTitle("半身裙女春夏2023新款裙裤短裙蓬蓬裙高腰百褶裙荷叶边超短裙");
|
|
|
|
|
mList.add(moveProductDTO);
|
|
|
|
|
|
|
|
|
|
start.put("products",mList);
|
|
|
|
|
System.out.println(JSON.toJSONString(start));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|