|
@@ -39,43 +39,43 @@ public class CmBaikeProductService extends CrudService<CmBaikeProductDao, CmBaik
|
|
|
|
|
|
public CmBaikeProduct get(String id) {
|
|
|
CmBaikeProduct cmBaikeProduct = super.get(id);
|
|
|
- String marketTime = cmBaikeProduct.getMarketTime();
|
|
|
- if (StringUtils.isNotEmpty(marketTime)) {
|
|
|
- String[] split = marketTime.split("-");
|
|
|
- int length = split.length;
|
|
|
- if (length > 0) {
|
|
|
- cmBaikeProduct.setMarketYear(Integer.parseInt(split[0]));
|
|
|
- if (length > 1) {
|
|
|
- String splitMonth = split[1];
|
|
|
- Integer marketMonth = Integer.parseInt(splitMonth.startsWith("0") ? splitMonth.replace("0", "") : splitMonth);
|
|
|
- cmBaikeProduct.setMarketMonth(marketMonth);
|
|
|
- if (length > 2) {
|
|
|
- String splitDay = split[2];
|
|
|
- Integer marketDay = Integer.parseInt(splitDay.startsWith("0") ? splitDay.replace("0", "") : splitDay);
|
|
|
- cmBaikeProduct.setMarketDay(marketDay);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- String nmpaTime = cmBaikeProduct.getNmpaTime();
|
|
|
- if (StringUtils.isNotEmpty(nmpaTime)) {
|
|
|
- String[] split = nmpaTime.split("-");
|
|
|
- int length = split.length;
|
|
|
- if (length > 0) {
|
|
|
- cmBaikeProduct.setNmpaYear(Integer.parseInt(split[0]));
|
|
|
- if (length > 1) {
|
|
|
- String splitMonth = split[1];
|
|
|
- Integer nmpaMonth = Integer.parseInt(splitMonth.startsWith("0") ? splitMonth.replace("0", "") : splitMonth);
|
|
|
- cmBaikeProduct.setNmpaMonth(nmpaMonth);
|
|
|
- if (length > 2) {
|
|
|
- String splitDay = split[2];
|
|
|
- Integer nmpaDay = Integer.parseInt(splitDay.startsWith("0") ? splitDay.replace("0", "") : splitDay);
|
|
|
- cmBaikeProduct.setNmpaDay(nmpaDay);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+// String marketTime = cmBaikeProduct.getMarketTime();
|
|
|
+// if (StringUtils.isNotEmpty(marketTime)) {
|
|
|
+// String[] split = marketTime.split("-");
|
|
|
+// int length = split.length;
|
|
|
+// if (length > 0) {
|
|
|
+// cmBaikeProduct.setMarketYear(Integer.parseInt(split[0]));
|
|
|
+// if (length > 1) {
|
|
|
+// String splitMonth = split[1];
|
|
|
+// Integer marketMonth = Integer.parseInt(splitMonth.startsWith("0") ? splitMonth.replace("0", "") : splitMonth);
|
|
|
+// cmBaikeProduct.setMarketMonth(marketMonth);
|
|
|
+// if (length > 2) {
|
|
|
+// String splitDay = split[2];
|
|
|
+// Integer marketDay = Integer.parseInt(splitDay.startsWith("0") ? splitDay.replace("0", "") : splitDay);
|
|
|
+// cmBaikeProduct.setMarketDay(marketDay);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// String nmpaTime = cmBaikeProduct.getNmpaTime();
|
|
|
+// if (StringUtils.isNotEmpty(nmpaTime)) {
|
|
|
+// String[] split = nmpaTime.split("-");
|
|
|
+// int length = split.length;
|
|
|
+// if (length > 0) {
|
|
|
+// cmBaikeProduct.setNmpaYear(Integer.parseInt(split[0]));
|
|
|
+// if (length > 1) {
|
|
|
+// String splitMonth = split[1];
|
|
|
+// Integer nmpaMonth = Integer.parseInt(splitMonth.startsWith("0") ? splitMonth.replace("0", "") : splitMonth);
|
|
|
+// cmBaikeProduct.setNmpaMonth(nmpaMonth);
|
|
|
+// if (length > 2) {
|
|
|
+// String splitDay = split[2];
|
|
|
+// Integer nmpaDay = Integer.parseInt(splitDay.startsWith("0") ? splitDay.replace("0", "") : splitDay);
|
|
|
+// cmBaikeProduct.setNmpaDay(nmpaDay);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
return cmBaikeProduct;
|
|
|
}
|
|
|
|