wangtuohang@126.com преди 1 месец
родител
ревизия
bb9c35a24f
променени са 1 файла, в които са добавени 31 реда и са изтрити 0 реда
  1. 31 0
      src/main/java/org/springblade/common/controller/ParamsConvert.java

+ 31 - 0
src/main/java/org/springblade/common/controller/ParamsConvert.java

@@ -27,8 +27,10 @@ import org.springblade.modules.sign.entity.SignEntity;
 import org.springblade.modules.sign.vo.SignVO;
 import org.springblade.modules.sqmy.pojo.entity.FzrhyInfoEntity;
 import org.springblade.modules.sqmy.pojo.entity.JmhInfoEntity;
+import org.springblade.modules.sqmy.pojo.entity.SqmyInfoEntity;
 import org.springblade.modules.sqmy.pojo.entity.ZatbInfoEntity;
 import org.springblade.modules.sqmy.pojo.vo.JmhInfoVO;
+import org.springblade.modules.sqmy.pojo.vo.SqmyInfoVO;
 import org.springblade.modules.system.entity.User;
 import org.springblade.modules.system.vo.GsdrsjbVO;
 import org.springblade.modules.system.vo.MjDeptVO;
@@ -422,6 +424,11 @@ public class ParamsConvert {
 				return method.invoke(proxyObject, rksfzh);
 			} else if (method.getName().equals("getRhzfCs")) {
 				return method.invoke(proxyObject);
+			} else if (method.getName().equals("history")) {
+				Query query = new Query();
+				query.setSize(Integer.valueOf(params.get("size").toString()));
+				query.setCurrent(Integer.valueOf(params.get("current").toString()));
+				return method.invoke(proxyObject, params, query);
 			}
 		} else if (className.equals("fwRyController")) { // ********************************************* fwRyController
 			if (method.getName().equals("appRemove")) {
@@ -635,6 +642,30 @@ public class ParamsConvert {
 				JmhInfoEntity entity = jsonObject.toJavaObject(JmhInfoEntity.class);
 				return method.invoke(proxyObject, entity);
 			}
+		} else if (className.equals("sqmyInfoController")) { // ************************************* sqmyInfoController
+			if (method.getName().equals("save")) {
+				jsonObject.putAll(params);
+				SqmyInfoVO sqmyInfoVO = jsonObject.toJavaObject(SqmyInfoVO.class);
+				return method.invoke(proxyObject, sqmyInfoVO);
+			} else if (method.getName().equals("remove")) {
+				String ids = params.get("ids").toString();
+				return method.invoke(proxyObject, ids);
+			} else if (method.getName().equals("update")) {
+				jsonObject.putAll(params);
+				SqmyInfoVO sqmyInfoVO = jsonObject.toJavaObject(SqmyInfoVO.class);
+				return method.invoke(proxyObject, sqmyInfoVO);
+			} else if (method.getName().equals("page")) {
+				Query query = new Query();
+				query.setSize(Integer.valueOf(params.get("size").toString()));
+				query.setCurrent(Integer.valueOf(params.get("current").toString()));
+				return method.invoke(proxyObject, params, query);
+			} else if (method.getName().equals("detail")) {
+				jsonObject.putAll(params);
+				SqmyInfoEntity entity = jsonObject.toJavaObject(SqmyInfoEntity.class);
+				return method.invoke(proxyObject, entity);
+			} else if (method.getName().equals("sjtj")) {
+				return method.invoke(proxyObject, params);
+			}
 		} else if (className.equals("zatbInfoController")) { // ************************************* zatbInfoController
 			if (method.getName().equals("save")) {
 				jsonObject.putAll(params);