Browse Source

变更流程列表开发

anderx 3 years ago
parent
commit
1ec801d1f2

+ 2 - 0
src/main/java/com/goafanti/order/controller/AdminNewOrderApiController.java

@@ -19,6 +19,7 @@ import com.goafanti.order.service.OrderAssistService;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
+import org.springframework.cache.annotation.Cacheable;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
@@ -246,6 +247,7 @@ public class AdminNewOrderApiController extends CertifyApiController {
 	 * @return
 	 */
 	@RequestMapping(value = "/getProcessName", method = RequestMethod.GET)
+	@Cacheable(value = "getProcessName", key = "'BannersList:Key:'+#orderNo")
 	public Result getProcessName(String orderNo){
 		Result res = new Result();
 		if(StringUtils.isBlank(orderNo)){