Browse Source

变更流程列表开发

anderx 3 years ago
parent
commit
f9c64465fd

+ 1 - 0
src/main/java/com/goafanti/core/cache/serializer/FastJsonRedisSerializer.java

@@ -29,6 +29,7 @@ public class FastJsonRedisSerializer implements RedisSerializer<Object> {
 		pc.addAccept("com.goafanti.core.mybatis.page.Pagination");
 		pc.addAccept("com.goafanti.common.bo.Result");
 		pc.addAccept("com.goafanti.order.bo.OrderProcessName");
+		pc.addAccept("com.goafanti.order.bo.OutProcessName");
 		pc.addAccept("com.goafanti.permission.bo.PermissionBo");
 		pc.addAccept("java.util.Map");
 

+ 4 - 2
src/main/java/com/goafanti/order/controller/OrderChangeApiController.java

@@ -5,6 +5,7 @@ import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 import org.springframework.beans.factory.annotation.Autowired;
+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;
@@ -572,8 +573,9 @@ public class OrderChangeApiController extends CertifyApiController {
 	}
 
 
-	@RequestMapping(value = "/gerProcessName" ,method = RequestMethod.GET)
-	public Result gerProcessName(Integer id){
+	@RequestMapping(value = "/getChangeProcessName" ,method = RequestMethod.GET)
+	@Cacheable(value = "getChangeProcessName", key = "'Key:'+#id")
+	public Result getChangeProcessName(Integer id){
 		Result res = new Result();
 		if(id==null){
 			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"","变更编号"));

+ 5 - 0
src/main/java/com/goafanti/order/service/OrderChangeService.java

@@ -19,6 +19,9 @@ import com.goafanti.order.bo.OutNewOrderRefund;
 import com.goafanti.order.bo.TChangeDunOut;
 import com.goafanti.order.bo.TChangeTaskOut;
 import com.goafanti.order.bo.TOrderNewBo;
+import org.springframework.cache.annotation.Cacheable;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
 
 public interface OrderChangeService {
 
@@ -114,5 +117,7 @@ public interface OrderChangeService {
 
     Object updateMemberSonProject(Integer id,String taskComment);
 
+
+
 	Object gerProcessName(Integer id);
 }

+ 1 - 2
src/main/java/com/goafanti/order/service/impl/OrderChangeServiceImpl.java

@@ -1458,7 +1458,6 @@ public class OrderChangeServiceImpl extends BaseMybatisDao<NewOrderChangeMapper>
 	@Override
 	public Object gerProcessName(Integer id) {
 		NewOrderChange newOrderChange=newOrderChangeMapper.selectByPrimaryKey(id);
-		newOrderChangeMapper.gerProcessName(id,newOrderChange.getOrderNo());
-		return null;
+		return newOrderChangeMapper.gerProcessName(id,newOrderChange.getOrderNo());
 	}
 }