| Line 50... |
Line 50... |
| 50 |
import org.springframework.http.ResponseEntity;
|
50 |
import org.springframework.http.ResponseEntity;
|
| 51 |
import org.springframework.mail.javamail.JavaMailSender;
|
51 |
import org.springframework.mail.javamail.JavaMailSender;
|
| 52 |
import org.springframework.stereotype.Controller;
|
52 |
import org.springframework.stereotype.Controller;
|
| 53 |
import org.springframework.transaction.annotation.Transactional;
|
53 |
import org.springframework.transaction.annotation.Transactional;
|
| 54 |
import org.springframework.ui.Model;
|
54 |
import org.springframework.ui.Model;
|
| - |
|
55 |
import org.springframework.web.bind.annotation.GetMapping;
|
| 55 |
import org.springframework.web.bind.annotation.PostMapping;
|
56 |
import org.springframework.web.bind.annotation.PostMapping;
|
| 56 |
import org.springframework.web.bind.annotation.RequestBody;
|
57 |
import org.springframework.web.bind.annotation.RequestBody;
|
| 57 |
import org.springframework.web.bind.annotation.RequestMapping;
|
58 |
import org.springframework.web.bind.annotation.RequestMapping;
|
| 58 |
import org.springframework.web.bind.annotation.RequestMethod;
|
59 |
import org.springframework.web.bind.annotation.RequestMethod;
|
| 59 |
import org.springframework.web.bind.annotation.RequestParam;
|
60 |
import org.springframework.web.bind.annotation.RequestParam;
|
| Line 84... |
Line 85... |
| 84 |
import com.spice.profitmandi.dao.entity.catalog.HighDemandItem;
|
85 |
import com.spice.profitmandi.dao.entity.catalog.HighDemandItem;
|
| 85 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
86 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
| 86 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
87 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
| 87 |
import com.spice.profitmandi.dao.entity.catalog.TagRanking;
|
88 |
import com.spice.profitmandi.dao.entity.catalog.TagRanking;
|
| 88 |
import com.spice.profitmandi.dao.entity.cs.Position;
|
89 |
import com.spice.profitmandi.dao.entity.cs.Position;
|
| - |
|
90 |
import com.spice.profitmandi.dao.entity.fofo.CurrentInventorySnapshot;
|
| 89 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrder;
|
91 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrder;
|
| 90 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
92 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 91 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
93 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
| 92 |
import com.spice.profitmandi.dao.entity.fofo.LiveDemoSerialNumber;
|
94 |
import com.spice.profitmandi.dao.entity.fofo.LiveDemoSerialNumber;
|
| 93 |
import com.spice.profitmandi.dao.entity.transaction.AddWalletRequest;
|
95 |
import com.spice.profitmandi.dao.entity.transaction.AddWalletRequest;
|
| Line 1892... |
Line 1894... |
| 1892 |
highDemandItemsRepository.deleteById(id);
|
1894 |
highDemandItemsRepository.deleteById(id);
|
| 1893 |
model.addAttribute("response", mvcResponseSender.createResponseString(true));
|
1895 |
model.addAttribute("response", mvcResponseSender.createResponseString(true));
|
| 1894 |
return "response";
|
1896 |
return "response";
|
| 1895 |
}
|
1897 |
}
|
| 1896 |
|
1898 |
|
| - |
|
1899 |
@GetMapping(value = "/imei")
|
| - |
|
1900 |
public String getImei(HttpServletRequest request, Model model, @RequestParam int fofoId, @RequestParam String query)
|
| - |
|
1901 |
throws Exception {
|
| - |
|
1902 |
|
| - |
|
1903 |
List<String> serialNumber = inventoryItemRepository.selectAllByFofoId(fofoId, query).stream()
|
| - |
|
1904 |
.map(x -> x.getSerialNumber()).collect(Collectors.toList());
|
| - |
|
1905 |
LOGGER.info("serialNumber" + serialNumber);
|
| - |
|
1906 |
LOGGER.info("query" + query);
|
| - |
|
1907 |
|
| - |
|
1908 |
model.addAttribute("response", mvcResponseSender.createResponseString(serialNumber));
|
| - |
|
1909 |
|
| - |
|
1910 |
return "response";
|
| - |
|
1911 |
}
|
| - |
|
1912 |
|
| 1897 |
}
|
1913 |
}
|