Bladeren bron

优化员工功能

wuxw 6 jaren geleden
bovenliggende
commit
949b57a5b8

+ 24 - 1
Api/src/main/java/com/java110/api/listener/users/AddStaffServiceListener.java

@@ -83,6 +83,9 @@ public class AddStaffServiceListener extends AbstractServiceApiDataFlowListener{
         JSONObject staffBusiness = addStaff(paramInJson);
         businesses.add(staffBusiness);
 
+        JSONObject staffOrgBusiness = addStaffOrg(paramInJson);
+        businesses.add(staffOrgBusiness);
+
         HttpHeaders header = new HttpHeaders();
         dataFlowContext.getRequestCurrentHeaders().put(CommonConstant.HTTP_USER_ID,userId);
         dataFlowContext.getRequestCurrentHeaders().put(CommonConstant.HTTP_ORDER_TYPE_CD,"D");
@@ -107,6 +110,24 @@ public class AddStaffServiceListener extends AbstractServiceApiDataFlowListener{
         privilegeUserDefault(dataFlowContext,paramInJson);
     }
 
+    private JSONObject addStaffOrg(JSONObject paramInJson) {
+
+        JSONObject business = JSONObject.parseObject("{\"datas\":{}}");
+        business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_SAVE_STORE_USER);
+        business.put(CommonConstant.HTTP_SEQ,1);
+        business.put(CommonConstant.HTTP_INVOKE_MODEL,CommonConstant.HTTP_INVOKE_MODEL_S);
+        JSONArray businessStaffOrgs = new JSONArray();
+        JSONObject businessStaffOrg = new JSONObject();
+        businessStaffOrg.put("storeId",paramInJson.getString("storeId"));
+        businessStaffOrg.put("storeUserId","-1");
+        businessStaffOrg.put("userId",paramInJson.getString("userId"));
+        businessStaffOrg.put("relCd",paramInJson.getString("relCd"));
+        businessStaffOrgs.add(businessStaffOrg);
+        business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put("businessStoreUser",businessStaffOrgs);
+
+        return business;
+    }
+
     /**
      * 添加员工
      * @param paramInJson
@@ -140,7 +161,9 @@ public class AddStaffServiceListener extends AbstractServiceApiDataFlowListener{
         Assert.jsonObjectHaveKey(paramObj,"name","请求参数中未包含name 节点,请确认");
         Assert.jsonObjectHaveKey(paramObj,"email","请求参数中未包含email 节点,请确认");
         Assert.jsonObjectHaveKey(paramObj,"tel","请求参数中未包含tel 节点,请确认");
-
+        Assert.jsonObjectHaveKey(paramObj,"orgId", "请求报文格式错误或未包含部门信息");
+        Assert.jsonObjectHaveKey(paramObj,"address", "请求报文格式错误或未包含地址信息");
+        Assert.jsonObjectHaveKey(paramObj,"sex", "请求报文格式错误或未包含性别信息");
 
         JSONObject business = JSONObject.parseObject("{\"datas\":{}}");
         business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_SAVE_USER_INFO);

+ 27 - 2
Api/src/main/java/com/java110/api/rest/PicTest.java

@@ -17,15 +17,40 @@ import javax.imageio.ImageIO;
 import javax.imageio.stream.FileImageOutputStream;
 
 public class PicTest {
+
+    static int a = 0;
     public static void main(String[] args) throws IOException {
-        long timeStart = System.currentTimeMillis();
+        /*long timeStart = System.currentTimeMillis();
         String imgLocalUrl = "D:\\白静雪.jpg";
 
         byte[] imgBytes = getByteByPic(imgLocalUrl);
         byte[] resultImg = compressUnderSize(imgBytes,800 * 1024);
         byte2image(resultImg,"E:\\tp\\timga.jpg");
         long timeEnd = System.currentTimeMillis();
-        System.out.println("耗时:"+ (timeEnd - timeStart));
+        System.out.println("耗时:"+ (timeEnd - timeStart));*/
+        char i= 8;
+        int j = 0;
+        for (;i >0;j-=3){
+            ++j;
+        }
+        System.out.printf("%d\n",j);
+
+       // System.out.printf("a= "+ fib(5));
+    }
+
+    public static int fib(int i) {
+        a++;
+        if(i == 0){
+            return 1;
+        }else{
+            if(i== 1){
+                return 2;
+            }else{
+                return  fib(i-1)+fib(i-2);
+            }
+
+        }
+
     }
 
     public static byte[] getByteByPic(String imageUrl) throws IOException{

+ 20 - 149
Api/src/main/resources/photoInfo.txt

@@ -1,149 +1,20 @@
-713039780971|http://135.192.50.148:7500/v1/crmappkey0001/T1zyATBCLT1RXrhCrK
-713039976392|http://135.192.50.148:7500/v1/crmappkey0001/T18zJTB5DT1RXrhCrK
-713039997387|http://135.192.50.148:7500/v1/crmappkey0001/T1QabTB5hT1RXrhCrK
-713040006717|http://135.192.50.148:7500/v1/crmappkey0001/T1NRVTBvd_1RXrhCrK
-713040078002|http://135.192.50.148:7500/v1/crmappkey0001/T1htVTBQVb1RXrhCrK
-713040066641|http://135.192.50.148:7500/v1/crmappkey0001/T1XXZTBjDQ1RXrhCrK
-713040117755|http://135.192.50.148:7500/v1/crmappkey0001/T1pXdTBmDC1RXrhCrK
-713040106986|http://135.192.50.148:7500/v1/crmappkey0001/T1ltATBQWm1RXrhCrK
-713040140517|http://135.192.50.148:7500/v1/crmappkey0001/T1uybTBCdm1RXrhCrK
-713040265790|http://135.192.50.148:7500/v1/crmappkey0001/T1sRbTBjhW1RXrhCrK
-713040380070|http://135.192.50.148:7500/v1/crmappkey0001/T1bVVgBmDv1RXrhCrK
-713040402676|http://135.192.50.148:7500/v1/crmappkey0001/T1mk_gBbJT1RXrhCrK
-713040452404|http://135.192.50.148:7500/v1/crmappkey0001/T1E.DgB7d_1RXrhCrK
-713040461591|http://135.192.50.148:7500/v1/crmappkey0001/T1C6CgBvbT1RXrhCrK
-713040443108|http://135.192.50.148:7500/v1/crmappkey0001/T1.khgBCL_1RXrhCrK
-713040492312|http://135.192.50.148:7500/v1/crmappkey0001/T15U_gBXKv1RXrhCrK
-713040246676|http://135.192.50.148:7500/v1/crmappkey0001/T1V6hgBQLT1RXrhCrK
-713040534246|http://135.192.50.148:7500/v1/crmappkey0001/T1qoJgB7xg1RXrhCrK
-713040538258|http://135.192.50.148:7500/v1/crmappkey0001/T14oxgBKYg1RXrhCrK
-713040592876|http://135.192.50.148:7500/v1/crmappkey0001/T1B.ZgB5_j1RXrhCrK
-713040790871|http://135.192.50.148:7500/v1/crmappkey0001/T1PaxTBKb91RXrhCrK
-713040786042|http://135.192.50.148:7500/v1/crmappkey0001/T1t6VgBy_s1RXrhCrK
-713040779146|http://135.192.50.148:7500/v1/crmappkey0001/T1JRZTBvD91RXrhCrK
-713040772213|http://135.192.50.148:7500/v1/crmappkey0001/T1PmbgBvCQ1RXrhCrK
-713040136201|http://135.192.50.148:7500/v1/crmappkey0001/T1DXLTBjdS1RXrhCrK
-713040855740|http://135.192.50.148:7500/v1/crmappkey0001/T1cohgByK41RXrhCrK
-713040936071|http://135.192.50.148:7500/v1/crmappkey0001/T1kchgBbWs1RXrhCrK
-713041022095|http://135.192.50.148:7500/v1/crmappkey0001/T1V6bgByWb1RXrhCrK
-713040959132|http://135.192.50.148:7500/v1/crmappkey0001/T1NcDgBmCs1RXrhCrK
-713041138341|http://135.192.50.148:7500/v1/crmappkey0001/T1OkbgBmWs1RXrhCrK
-713041246981|http://135.192.50.148:7500/v1/crmappkey0001/T1sZbgB_ds1RXrhCrK
-713041255419|http://135.192.50.148:7500/v1/crmappkey0001/T1sZbgBQxs1RXrhCrK
-713041240318|http://135.192.50.148:7500/v1/crmappkey0001/T1hCLgBsVb1RXrhCrK
-713040981460|http://135.192.50.148:7500/v1/crmappkey0001/T1A.AgBKbX1RXrhCrK
-713041272320|http://135.192.50.148:7500/v1/crmappkey0001/T1G6JgByKm1RXrhCrK
-713041335082|http://135.192.50.148:7500/v1/crmappkey0001/T1kUdgBj_s1RXrhCrK
-713041110867|http://135.192.50.148:7500/v1/crmappkey0001/T1RCKgBQbX1RXrhCrK
-713041330246|http://135.192.50.148:7500/v1/crmappkey0001/T1zcdgBQbs1RXrhCrK
-713041348303|http://135.192.50.148:7500/v1/crmappkey0001/T1iUAgB5Cs1RXrhCrK
-713041384395|http://135.192.50.148:7500/v1/crmappkey0001/T1q0CgBmLQ1RXrhCrK
-713041472301|http://135.192.50.148:7500/v1/crmappkey0001/T1Qk_gB5xC1RXrhCrK
-713041538189|http://135.192.50.148:7500/v1/crmappkey0001/T1A5KgBjKC1RXrhCrK
-713041774093|http://135.192.50.148:7500/v1/crmappkey0001/T1zUAgBQEb1RXrhCrK
-713041833366|http://135.192.50.148:7500/v1/crmappkey0001/T1j.WgBTbX1RXrhCrK
-713041815076|http://135.192.50.148:7500/v1/crmappkey0001/T1bZKgByVX1RXrhCrK
-713042069292|http://135.192.50.148:7500/v1/crmappkey0001/T1rzCTB4ES1RXrhCrK
-713042071969|http://135.192.50.148:7500/v1/crmappkey0001/T132YgBvds1RXrhCrK
-713042129527|http://135.192.50.148:7500/v1/crmappkey0001/T17oAgBTEX1RXrhCrK
-713042140286|http://135.192.50.148:7500/v1/crmappkey0001/T1IUVgB7Zb1RXrhCrK
-753040937722|http://135.192.50.148:7500/v1/crmappkey0001/T1Y7LgB4xT1RXrhCrK
-713042187191|http://135.192.50.148:7500/v1/crmappkey0001/T1k2bgB4LT1RXrhCrK
-713042327534|http://135.192.50.148:7500/v1/crmappkey0001/T1d7hgBKdQ1RXrhCrK
-713042335814|http://135.192.50.148:7500/v1/crmappkey0001/T1m2EgB4Ks1RXrhCrK
-713042342652|http://135.192.50.148:7500/v1/crmappkey0001/T11OdgB5VQ1RXrhCrK
-713042440563|http://135.192.50.148:7500/v1/crmappkey0001/T1I6EgB7Aj1RXrhCrK
-713042493945|http://135.192.50.148:7500/v1/crmappkey0001/T1boAgBQ_X1RXrhCrK
-713042460687|http://135.192.50.148:7500/v1/crmappkey0001/T1xkZgBsds1RXrhCrK
-713042500971|http://135.192.50.148:7500/v1/crmappkey0001/T1CUZgBvL41RXrhCrK
-713042486657|http://135.192.50.148:7500/v1/crmappkey0001/T1c6CgBsbX1RXrhCrK
-713042514320|http://135.192.50.148:7500/v1/crmappkey0001/T1t.KgBCb41RXrhCrK
-713042586556|http://135.192.50.148:7500/v1/crmappkey0001/T1.EWgBCWC1RXrhCrK
-713042663331|http://135.192.50.148:7500/v1/crmappkey0001/T1hcLgBvCQ1RXrhCrK
-713042662911|http://135.192.50.148:7500/v1/crmappkey0001/T1Q6ZgBQbs1RXrhCrK
-713042703695|http://135.192.50.148:7500/v1/crmappkey0001/T1LUAgBCJX1RXrhCrK
-713042678838|http://135.192.50.148:7500/v1/crmappkey0001/T1j6VgB_Lb1RXrhCrK
-713042664876|http://135.192.50.148:7500/v1/crmappkey0001/T1ZcJgBmZy1RXrhCrK
-713042656558|http://135.192.50.148:7500/v1/crmappkey0001/T1P.dgB_A41RXrhCrK
-713042645610|http://135.192.50.148:7500/v1/crmappkey0001/T1NcZgB_Ks1RXrhCrK
-713042668757|http://135.192.50.148:7500/v1/crmappkey0001/T1hU_gBQAs1RXrhCrK
-713042766439|http://135.192.50.148:7500/v1/crmappkey0001/T1S5WgBsLX1RXrhCrK
-713042773211|http://135.192.50.148:7500/v1/crmappkey0001/T18oDgBTbs1RXrhCrK
-713042869667|http://135.192.50.148:7500/v1/crmappkey0001/T1t.WgBTC41RXrhCrK
-713042836800|http://135.192.50.148:7500/v1/crmappkey0001/T18chgB5Lb1RXrhCrK
-713042873517|http://135.192.50.148:7500/v1/crmappkey0001/T1IZAgBCJX1RXrhCrK
-713042890457|http://135.192.50.148:7500/v1/crmappkey0001/T1nchgBgVX1RXrhCrK
-713042952681|http://135.192.50.148:7500/v1/crmappkey0001/T18mAgBsKb1RXrhCrK
-713042946062|http://135.192.50.148:7500/v1/crmappkey0001/T1xEWgBgWX1RXrhCrK
-713043053593|http://135.192.50.148:7500/v1/crmappkey0001/T1DkxgBsJs1RXrhCrK
-713043042066|http://135.192.50.148:7500/v1/crmappkey0001/T1eZVgBC_y1RXrhCrK
-713043070701|http://135.192.50.148:7500/v1/crmappkey0001/T1J2DgBX_X1RXrhCrK
-713043097285|http://135.192.50.148:7500/v1/crmappkey0001/T15ECgBvDy1RXrhCrK
-713043223356|http://135.192.50.148:7500/v1/crmappkey0001/T1W7xgBv_C1RXrhCrK
-713043202839|http://135.192.50.148:7500/v1/crmappkey0001/T1FZAgBXDm1RXrhCrK
-713043187864|http://135.192.50.148:7500/v1/crmappkey0001/T1SkxgBgCs1RXrhCrK
-713043413273|http://135.192.50.148:7500/v1/crmappkey0001/T1rUdgBgbX1RXrhCrK
-713043382161|http://135.192.50.148:7500/v1/crmappkey0001/T1f2_gBTLT1RXrhCrK
-713043256769|http://135.192.50.148:7500/v1/crmappkey0001/T1j5EgBgxy1RXrhCrK
-713043473099|http://135.192.50.148:7500/v1/crmappkey0001/T1SkEgB7Y41RXrhCrK
-713043469218|http://135.192.50.148:7500/v1/crmappkey0001/T1s0EgByLX1RXrhCrK
-713043495025|http://135.192.50.148:7500/v1/crmappkey0001/T1emhgB5_b1RXrhCrK
-713043436669|http://135.192.50.148:7500/v1/crmappkey0001/T1aVVgB7EX1RXrhCrK
-713043525963|http://135.192.50.148:7500/v1/crmappkey0001/T1_U_gBsJb1RXrhCrK
-713043581038|http://135.192.50.148:7500/v1/crmappkey0001/T1QkYgBsK41RXrhCrK
-713043491049|http://135.192.50.148:7500/v1/crmappkey0001/T19UEgBjh41RXrhCrK
-713043627563|http://135.192.50.148:7500/v1/crmappkey0001/T1T7AgBgAT1RXrhCrK
-713043633685|http://135.192.50.148:7500/v1/crmappkey0001/T1V5ZgBmh41RXrhCrK
-713043577649|http://135.192.50.148:7500/v1/crmappkey0001/T1e2bgBTVT1RXrhCrK
-713043579749|http://135.192.50.148:7500/v1/crmappkey0001/T1ccbgBbAb1RXrhCrK
-713043638372|http://135.192.50.148:7500/v1/crmappkey0001/T1nUZgBjAQ1RXrhCrK
-713043640366|http://135.192.50.148:7500/v1/crmappkey0001/T1DoZgB5CX1RXrhCrK
-713043643934|http://135.192.50.148:7500/v1/crmappkey0001/T1AcxgBbWQ1RXrhCrK
-713043654194|http://135.192.50.148:7500/v1/crmappkey0001/T18cYgBCWX1RXrhCrK
-713043737085|http://135.192.50.148:7500/v1/crmappkey0001/T1hU_gBXLX1RXrhCrK
-713043717610|http://135.192.50.148:7500/v1/crmappkey0001/T1KCCgBQYX1RXrhCrK
-713043754780|http://135.192.50.148:7500/v1/crmappkey0001/T1e6DgByV41RXrhCrK
-713043795513|http://135.192.50.148:7500/v1/crmappkey0001/T1eOLgBv_T1RXrhCrK
-713043861117|http://135.192.50.148:7500/v1/crmappkey0001/T1ZkWgBvY41RXrhCrK
-713043818869|http://135.192.50.148:7500/v1/crmappkey0001/T1ikJgBj_y1RXrhCrK
-713044318496|http://135.192.50.148:7500/v1/crmappkey0001/T1a7ZgBCWX1RXrhCrK
-713043780618|http://135.192.50.148:7500/v1/crmappkey0001/T1wUEgBXKX1RXrhCrK
-713044332117|http://135.192.50.148:7500/v1/crmappkey0001/T1Jc_gBCDy1RXrhCrK
-713044483607|http://135.192.50.148:7500/v1/crmappkey0001/T1.CWgBKxX1RXrhCrK
-713044678147|http://135.192.50.148:7500/v1/crmappkey0001/T1r6EgB7dm1RXrhCrK
-713044329689|http://135.192.50.148:7500/v1/crmappkey0001/T1n2hgBgKX1RXrhCrK
-713044492032|http://135.192.50.148:7500/v1/crmappkey0001/T1o0JgBvEX1RXrhCrK
-713044270240|http://135.192.50.148:7500/v1/crmappkey0001/T1S5CgBTVX1RXrhCrK
-713043954224|http://135.192.50.148:7500/v1/crmappkey0001/T17OJgBCYX1RXrhCrK
-713044266033|http://135.192.50.148:7500/v1/crmappkey0001/T1rC_gBgxX1RXrhCrK
-713044521077|http://135.192.50.148:7500/v1/crmappkey0001/T1YdEgBKWT1RXrhCrK
-713044517301|http://135.192.50.148:7500/v1/crmappkey0001/T1a5JgB7dX1RXrhCrK
-713043814765|http://135.192.50.148:7500/v1/crmappkey0001/T1LkbgB5_y1RXrhCrK
-713043953413|http://135.192.50.148:7500/v1/crmappkey0001/T1IOAgBQdT1RXrhCrK
-713043966119|http://135.192.50.148:7500/v1/crmappkey0001/T19mbgBmxX1RXrhCrK
-713044183408|http://135.192.50.148:7500/v1/crmappkey0001/T1X0CgBbKX1RXrhCrK
-713044085230|http://135.192.50.148:7500/v1/crmappkey0001/T1o7VgBsLT1RXrhCrK
-713043985364|http://135.192.50.148:7500/v1/crmappkey0001/T1lOVgB_dT1RXrhCrK
-713044103672|http://135.192.50.148:7500/v1/crmappkey0001/T1tZCgBgbX1RXrhCrK
-713043976633|http://135.192.50.148:7500/v1/crmappkey0001/T1LZ_gB_CX1RXrhCrK
-713043967833|http://135.192.50.148:7500/v1/crmappkey0001/T1vO_gBQZT1RXrhCrK
-713039847348|http://135.192.50.148:7500/v1/crmappkey0001/T1cFdTBXDT1RXrhCrK
-713039851547|http://135.192.50.148:7500/v1/crmappkey0001/T1fVVgBCZ_1RXrhCrK
-713039890438|http://135.192.50.148:7500/v1/crmappkey0001/T14VAgBXEs1RXrhCrK
-713039912006|http://135.192.50.148:7500/v1/crmappkey0001/T1QRWTB4VT1RXrhCrK
-713040089296|http://135.192.50.148:7500/v1/crmappkey0001/T1mAJgB_AT1RXrhCrK
-713040102279|http://135.192.50.148:7500/v1/crmappkey0001/T16JJgByWv1RXrhCrK
-713040137708|http://135.192.50.148:7500/v1/crmappkey0001/T1.zLTBbAl1RXrhCrK
-713040156309|http://135.192.50.148:7500/v1/crmappkey0001/T1L6KgB7xQ1RXrhCrK
-713040379105|http://135.192.50.148:7500/v1/crmappkey0001/T15OVgBKE_1RXrhCrK
-713040451190|http://135.192.50.148:7500/v1/crmappkey0001/T1hUYgBQZy1RXrhCrK
-713040819173|http://135.192.50.148:7500/v1/crmappkey0001/T1..JgB5Wm1RXrhCrK
-713041043972|http://135.192.50.148:7500/v1/crmappkey0001/T19OZgByDy1RXrhCrK
-713041841075|http://135.192.50.148:7500/v1/crmappkey0001/T192AgBvDv1RXrhCrK
-713042515929|http://135.192.50.148:7500/v1/crmappkey0001/T17KEgBs_v1RXrhCrK
-713042795870|http://135.192.50.148:7500/v1/crmappkey0001/T1cCCgBbxX1RXrhCrK
-713043330749|http://135.192.50.148:7500/v1/crmappkey0001/T145bgB_dm1RXrhCrK
-713043370598|http://135.192.50.148:7500/v1/crmappkey0001/T1qoYgBjEQ1RXrhCrK
-713043423115|http://135.192.50.148:7500/v1/crmappkey0001/T1SVCgBmCC1RXrhCrK
-713043441424|http://135.192.50.148:7500/v1/crmappkey0001/T1wAKgB7KT1RXrhCrK
-753040212159|http://135.192.50.148:7500/v1/crmappkey0001/T1VNJTBsLL1RXrhCrK
+713039811614|http://135.192.50.148:7500/v1/crmappkey0001/T1Z5KgB7Wm1RXrhCrK
+713039930373|http://135.192.50.148:7500/v1/crmappkey0001/T1S5KgB7Ky1RXrhCrK
+713040525406|http://135.192.50.148:7500/v1/crmappkey0001/T1iULgBXhX1RXrhCrK
+713040591436|http://135.192.50.148:7500/v1/crmappkey0001/T1.JEgBgZv1RXrhCrK
+713040763091|http://135.192.50.148:7500/v1/crmappkey0001/T1fkKgBvZ41R4bAZ6K
+713040774592|http://135.192.50.148:7500/v1/crmappkey0001/T1cZVgBT_X1R4bAZ6K
+713041058324|http://135.192.50.148:7500/v1/crmappkey0001/T1PUxgBgCb1RXrhCrK
+713041574065|http://135.192.50.148:7500/v1/crmappkey0001/T19.xgB7Vs1RXrhCrK
+713041840227|http://135.192.50.148:7500/v1/crmappkey0001/T140ZgBKZb1R4bAZ6K
+713041927203|http://135.192.50.148:7500/v1/crmappkey0001/T1XUZgByLy1R4bAZ6K
+713042563428|http://135.192.50.148:7500/v1/crmappkey0001/T1_.hgBjZ41RXrhCrK
+713043138860|http://135.192.50.148:7500/v1/crmappkey0001/T1z2AgBQYT1R4bAZ6K
+713043241768|http://135.192.50.148:7500/v1/crmappkey0001/T1l7bgBgL_1RXrhCrK
+713043390327|http://135.192.50.148:7500/v1/crmappkey0001/T1bOdgBCEb1R4bAZ6K
+713043652157|http://135.192.50.148:7500/v1/crmappkey0001/T1tJJgBTh_1RXrhCrK
+713044030925|http://135.192.50.148:7500/v1/crmappkey0001/T1B2AgB5dv1RyJcC6K
+713047606942|http://135.192.50.148:7500/v1/crmappkey0001/T1CoZgBbx51RXrhCrK
+713047841429|http://135.192.50.148:7500/v1/crmappkey0001/T12CbgBvWm1RXrhCrK
+713048076575|http://135.192.50.148:7500/v1/crmappkey0001/T14KCgB_hT1RXrhCrK
+753043810973|http://135.192.50.148:7500/v1/crmappkey0001/T1g5YgB7Ky1RXrhCrK

+ 35 - 0
WebService/src/main/java/com/java110/web/components/staff/AddStaffStepBindingComponent.java

@@ -0,0 +1,35 @@
+package com.java110.web.components.staff;
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.IStaffServiceSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+/**
+ * 添加添加员工组件
+ */
+@Component("addStaffStepBinding")
+public class AddStaffStepBindingComponent {
+
+    @Autowired
+    private IStaffServiceSMO staffServiceSMOImpl;
+
+    /**
+     * 添加添加员工数据
+     *
+     * @param pd 页面数据封装
+     * @return ResponseEntity 对象
+     */
+    public ResponseEntity<String> binding(IPageData pd) {
+        return staffServiceSMOImpl.saveStaff(pd);
+    }
+
+    public IStaffServiceSMO getStaffServiceSMOImpl() {
+        return staffServiceSMOImpl;
+    }
+
+    public void setStaffServiceSMOImpl(IStaffServiceSMO staffServiceSMOImpl) {
+        this.staffServiceSMOImpl = staffServiceSMOImpl;
+    }
+}

+ 1 - 0
WebService/src/main/java/com/java110/web/smo/impl/StaffServiceSMOImpl.java

@@ -41,6 +41,7 @@ public class StaffServiceSMOImpl extends BaseComponentSMO implements IStaffServi
         Assert.jsonObjectHaveKey(pd.getReqData(), "tel", "请求报文格式错误或未包含手机信息");
         Assert.jsonObjectHaveKey(pd.getReqData(), "sex", "请求报文格式错误或未包含性别信息");
         Assert.jsonObjectHaveKey(pd.getReqData(), "address", "请求报文格式错误或未包含地址信息");
+        Assert.jsonObjectHaveKey(pd.getReqData(), "orgId", "请求报文格式错误或未包含部门信息");
 
         ResponseEntity responseEntity = super.getStoreInfo(pd, restTemplate);
 

+ 20 - 27
WebService/src/main/resources/components/orgPackage/view-org-info/viewOrgInfo.html

@@ -2,55 +2,48 @@
     <div class="col-lg-12">
         <div class="ibox ">
             <div class="ibox-title">
-                <h5>组织管理信息</h5>
+                <h5>{{viewOrgInfo.componentName}}</h5>
                 <div class="ibox-tools" style="top:10px;">
-                    <button type="button" v-if="viewOrgInfo.index != 2" class="btn btn-primary btn-sm" style="margin-right:10px;"  v-on:click="_openSelectOrgInfoModel()">
-                        <i class="glyphicon glyphicon-search"></i> 选择组织管理</button>
-
-                    <button type="button" v-if="viewOrgInfo.index != 2" class="btn btn-primary btn-sm" v-on:click="_openAddOrgInfoModel()">
-                        <i class="glyphicon glyphicon-plus"></i> 添加组织管理</button>
+                    <button type="button" v-if="viewOrgInfo.index != 2" class="btn btn-primary btn-sm"
+                            style="margin-right:10px;" v-on:click="_openSelectOrgInfoModel()">
+                        <i class="glyphicon glyphicon-search"></i> 选择组织管理
+                    </button>
                 </div>
             </div>
             <div class="ibox-content">
                 <div class="row">
-<div class="col-sm-4">
+                    <div class="col-sm-4">
                         <div class="form-group">
-                            <label class="col-form-label" >组织名称:</label>
+                            <label class="col-form-label">组织名称:</label>
                             <label class="">{{viewOrgInfo.orgName}}</label>
                         </div>
-</div>
-<div class="col-sm-4">
+                    </div>
+                    <div class="col-sm-4">
                         <div class="form-group">
-                            <label class="col-form-label" >组织级别:</label>
+                            <label class="col-form-label">组织级别:</label>
                             <label class="">{{viewOrgInfo.orgLevel}}</label>
                         </div>
-</div>
-<div class="col-sm-4">
+                    </div>
+                    <div class="col-sm-4">
                         <div class="form-group">
-                            <label class="col-form-label" >上级ID:</label>
+                            <label class="col-form-label">上级组织:</label>
                             <label class="">{{viewOrgInfo.parentOrgId}}</label>
                         </div>
-</div>
-</div>
-<div class="row">
-<div class="col-sm-4">
+                    </div>
+                </div>
+                <div class="row">
+                    <div class="col-sm-4">
                         <div class="form-group">
-                            <label class="col-form-label" >描述:</label>
+                            <label class="col-form-label">描述:</label>
                             <label class="">{{viewOrgInfo.description}}</label>
                         </div>
-</div>
-</div>
+                    </div>
+                </div>
 
             </div>
         </div>
     </div>
 
-    <vc:create name="addOrg"
-               callBackListener="viewOrgInfo"
-               callBackFunction="chooseOrg"
-    ></vc:create>
-
-
     <vc:create name="chooseOrg"
                emitChooseOrg="viewOrgInfo"
                emitLoadData="viewOrgInfo"

+ 12 - 4
WebService/src/main/resources/components/orgPackage/view-org-info/viewOrgInfo.js

@@ -10,18 +10,21 @@
         },
         data:{
             viewOrgInfo:{
+                componentName:'组织管理信息',
                 index:0,
                 flowComponent:'viewOrgInfo',
                 orgName:'',
-orgLevel:'',
-parentOrgId:'',
-description:'',
-
+                orgLevel:'',
+                parentOrgId:'',
+                description:'',
+                branchOrgId:'',
             }
         },
         _initMethod:function(){
             //根据请求参数查询 查询 业主信息
             vc.component._loadOrgInfoData();
+
+
         },
         _initEvent:function(){
             vc.on('viewOrgInfo','chooseOrg',function(_app){
@@ -33,6 +36,11 @@ description:'',
                 vc.component.viewOrgInfo.index = _index;
             });
 
+            vc.on('viewOrgInfo', '_initInfo', function(_info){
+                //vc.component.viewOrgInfo.index = _index;
+                vc.copyObject(_info,vc.component.viewOrgInfo);
+            });
+
         },
         methods:{
 

+ 35 - 0
WebService/src/main/resources/components/staffPackage/addStaffStep/addStaffStep.html

@@ -0,0 +1,35 @@
+<div id="component">
+
+    <div class="java110_step">
+        <div id="step"></div>
+    </div>
+
+    <!-- 选择 应用信息 -->
+    <div v-if="addStaffStepInfo.index == 0 or addStaffStepInfo.index == 1">
+        <vc:create name="viewOrgInfo"
+                   callBackListener="addStaffStep"
+                   callBackFunction="notify"
+        ></vc:create>
+    </div>
+    <div v-if="addStaffStepInfo.index == 2">
+        <vc:create name="addStaff"
+                   callBackListener="addStaffStep"
+                   callBackFunction="notify"
+        ></vc:create>
+    </div>
+
+
+    <div class="row">
+        <div class="col-md-10"></div>
+        <div class="col-md-2 " style="margin-bottom:10px; text-align:right">
+            <button type="button" class="btn btn-secondary" v-on:click="_prevStep()">上一步</button>
+            <button v-if="addStaffStepInfo.index != 2" type="button" class="btn btn-primary" style="margin-left:10px;"
+                    v-on:click="_nextStep()">下一步
+            </button>
+            <button v-if="addStaffStepInfo.index == 2" type="button" class="btn btn-primary" style="margin-left:10px;"
+                    v-on:click="_finishStep()">完成
+            </button>
+        </div>
+    </div>
+
+</div>

+ 95 - 0
WebService/src/main/resources/components/staffPackage/addStaffStep/addStaffStep.js

@@ -0,0 +1,95 @@
+/**
+    入驻小区
+**/
+(function(vc){
+    vc.extends({
+        data:{
+            addStaffStepInfo:{
+                $step:{},
+                index:0,
+                infos:[],
+                staffInfo:{
+                    orgId:'',
+                    username:'',
+                    sex:'',
+                    email:'',
+                    tel:'',
+                    address:'',
+                }
+            }
+        },
+        _initMethod:function(){
+            vc.component._initStep();
+        },
+        _initEvent:function(){
+            vc.on("addStaffStep", "notify", function(_info){
+                vc.component.addStaffStepInfo.infos[vc.component.addStaffStepInfo.index] = _info;
+
+                if(vc.component.addStaffStepInfo.index == 1){
+                   vc.component.addStaffStepInfo.staffInfo.orgId = _info.orgId
+                }
+
+                if(vc.component.addStaffStepInfo.index == 2){
+                    vc.copyObject(_info, vc.component.addStaffStepInfo.staffInfo);
+                }
+            });
+
+        },
+        methods:{
+            _initStep:function(){
+                vc.component.addStaffStepInfo.$step = $("#step");
+                vc.component.addStaffStepInfo.$step.step({
+                    index: 0,
+                    time: 500,
+                    title: ["选择分公司","选择部门","员工信息"]
+                });
+                vc.component.addStaffStepInfo.index = vc.component.addStaffStepInfo.$step.getIndex();
+            },
+            _prevStep:function(){
+                vc.component.addStaffStepInfo.$step.prevStep();
+                vc.component.addStaffStepInfo.index = vc.component.addStaffStepInfo.$step.getIndex();
+
+                vc.emit('viewOrgInfo', 'onIndex', vc.component.addStaffStepInfo.index);
+                vc.emit('addStaff', 'onIndex', vc.component.addStaffStepInfo.index);
+
+            },
+            _nextStep:function(){
+                var _currentData = vc.component.addStaffStepInfo.infos[vc.component.addStaffStepInfo.index];
+                if( _currentData == null || _currentData == undefined){
+                    vc.message("请选择或填写必选信息");
+                    return ;
+                }
+                vc.component.addStaffStepInfo.$step.nextStep();
+                vc.component.addStaffStepInfo.index = vc.component.addStaffStepInfo.$step.getIndex();
+
+                 vc.emit('viewOrgInfo', 'onIndex', vc.component.addStaffStepInfo.index);
+                vc.emit('addStaff', 'onIndex', vc.component.addStaffStepInfo.index);
+
+            },
+            _finishStep:function(){
+               vc.http.post(
+                   'addStaffStepBinding',
+                   'binding',
+                   JSON.stringify(vc.component.addStaffStepInfo.staffInfo),
+                   {
+                       emulateJSON:true
+                    },
+                    function(json,res){
+                       if(res.status == 200){
+
+                           vc.message('处理成功',true);
+                           //关闭model
+                           vc.jumpToPage("/flow/staff?" + vc.objToGetParam(JSON.parse(json)));
+                           return ;
+                       }
+                       vc.message(json);
+                    },
+                    function(errInfo,error){
+                       console.log('请求失败处理');
+
+                       vc.message(errInfo);
+                    });
+            }
+        }
+    });
+})(window.vc);

+ 49 - 0
WebService/src/main/resources/components/staffPackage/addStaffView/addStaffView.html

@@ -0,0 +1,49 @@
+<div class="row">
+    <div class="col-lg-12">
+        <div class="ibox">
+            <div class="ibox-title">
+                <h5>添加员工</h5>
+                <div class="ibox-tools" style="top:10px;">
+
+                </div>
+            </div>
+            <div class="ibox-content">
+
+                <div class="form-group row">
+         <label class="col-sm-2 col-form-label">员工名称</label>
+         <div class="col-sm-10">
+           <input v-model="addStaffViewInfo.username"                   type="text" placeholder="必填,请填写员工名称" class="form-control">
+         </div>
+</div>
+<div class="form-group row">
+         <label class="col-sm-2 col-form-label">员工性别</label>
+         <div class="col-sm-10">
+<select class="custom-select" v-model="addStaffViewInfo.sex">
+         <option selected  disabled value="">必填,请选择员工性别</option>
+         <option  value="1">男</option>
+<option  value="0">女</option>
+  </select>         </div>
+</div>
+<div class="form-group row">
+         <label class="col-sm-2 col-form-label">员工邮箱</label>
+         <div class="col-sm-10">
+           <input v-model="addStaffViewInfo.email"                   type="text" placeholder="必填,请填写员工邮箱" class="form-control">
+         </div>
+</div>
+<div class="form-group row">
+         <label class="col-sm-2 col-form-label">手机</label>
+         <div class="col-sm-10">
+           <input v-model="addStaffViewInfo.tel"                   type="text" placeholder="选填,请填写手机" class="form-control">
+         </div>
+</div>
+<div class="form-group row">
+         <label class="col-sm-2 col-form-label">家庭住址</label>
+         <div class="col-sm-10">
+           <input v-model="addStaffViewInfo.address"                   type="text" placeholder="必填,请填写家庭住址" class="form-control">
+         </div>
+</div>
+
+            </div>
+        </div>
+    </div>
+</div>

+ 108 - 0
WebService/src/main/resources/components/staffPackage/addStaffView/addStaffView.js

@@ -0,0 +1,108 @@
+(function(vc){
+
+    vc.extends({
+        propTypes: {
+           callBackListener:vc.propTypes.string, //父组件名称
+           callBackFunction:vc.propTypes.string //父组件监听方法
+        },
+        data:{
+            addStaffViewInfo:{
+                flowComponent:'addStaffView',
+                username:'',
+                sex:'',
+                email:'',
+                tel:'',
+                address:'',
+            }
+        },
+        watch:{
+            addStaffViewInfo:{
+                deep: true,
+                handler:function(){
+                    vc.component.saveAddStaffInfo();
+                }
+             }
+        },
+         _initMethod:function(){
+
+         },
+         _initEvent:function(){
+
+            vc.on('addStaffViewInfo', 'onIndex', function(_index){
+                vc.component.addStaffViewInfo.index = _index;
+            });
+        },
+        methods:{
+            addStaffValidate(){
+                return vc.validate.validate({
+                    addStaffViewInfo:vc.component.addStaffViewInfo
+                },{
+                    'addStaffViewInfo.username':[
+{
+                            limit:"required",
+                            param:"",
+                            errInfo:"员工名称不能为空"
+                        },
+ {
+                            limit:"maxin",
+                            param:"2,10",
+                            errInfo:"员工名称长度必须在2位至10位"
+                        },
+                    ],
+'addStaffViewInfo.sex':[
+{
+                            limit:"required",
+                            param:"",
+                            errInfo:"员工性别不能为空"
+                        },
+ {
+                            limit:"num",
+                            param:"",
+                            errInfo:"员工性别不能为空"
+                        },
+                    ],
+'addStaffViewInfo.email':[
+{
+                            limit:"required",
+                            param:"",
+                            errInfo:"员工邮箱不能为空"
+                        },
+ {
+                            limit:"email",
+                            param:"",
+                            errInfo:"员工邮箱不是有效邮箱"
+                        },
+                    ],
+'addStaffViewInfo.tel':[
+ {
+                            limit:"photo",
+                            param:"",
+                            errInfo:"联系方式不是有效手机"
+                        },
+                    ],
+'addStaffViewInfo.address':[
+{
+                            limit:"required",
+                            param:"",
+                            errInfo:"家庭住址不能为空"
+                        },
+ {
+                            limit:"maxLength",
+                            param:"200",
+                            errInfo:"家庭住址不能超过200位"
+                        },
+                    ],
+
+                });
+            },
+            saveAddStaffInfo:function(){
+                if(vc.component.addStaffValidate()){
+                    //侦听回传
+                    vc.emit($props.callBackListener,$props.callBackFunction, vc.component.addStaffViewInfo);
+                    return ;
+                }
+            }
+        }
+    });
+
+})(window.vc);

+ 38 - 0
WebService/src/main/resources/views/addStaffStepFlow.html

@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang="en"
+      xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:th="http://www.thymeleaf.org"
+      xmlns:vc="http://www.thymeleaf.org">
+<head>
+    <meta charset="UTF-8"/>
+    <title>添加员工|java110</title>
+    <vc:create name="commonTop"></vc:create>
+    <link href="/css/jquery.step.css" rel="stylesheet"/>
+    <script src="/js/jquery.step.min.js" ></script>
+</head>
+<body>
+<vc:create name="bodyTop"></vc:create>
+<div id="wrapper">
+    <vc:create name="menu"></vc:create>
+
+
+    <div id="page-wrapper" class="gray-bg dashbard-1">
+        <div class="row border-bottom">
+            <vc:create name="nav"></vc:create>
+        </div>
+        <div class="wrapper wrapper-content" style="padding-bottom: 0px;">
+            <vc:create name="breadcrumb"></vc:create>
+        </div>
+        <!-- id="component" -->
+        <div class="wrapper wrapper-content animated fadeInRight">
+            <vc:create name="addStaffStep"></vc:create>
+        </div>
+
+        <vc:create name="copyright"></vc:create>
+
+    </div>
+</div>
+
+<vc:create name="commonBottom"></vc:create>
+</body>
+</html>

+ 53 - 53
java110-code-generator/src/main/resources/relationship/template_1.json

@@ -1,65 +1,65 @@
 {
-  "templateName":"添加业主",
-  "templateCode":"addOwner",
-  "templateKey":"ownerId",
-  "templateKeyName":"业主ID",
-  "package": "ownerPackage",
-  "successUrl": "/flow/ownerFlow",
+  "templateName":"添加员工",
+  "templateCode":"addStaffStep",
+  "templateKey":"userId",
+  "templateKeyName":"员工ID",
+  "package": "staffPackage",
+  "successUrl": "/flow/staff",
   "needAffirm": false,
   "flows":[
     {
       "index": 0,
-      "code":"floor",
-      "flowKey": "floorId",
-      "cnCode":"选择楼栋",
-      "vcName":"viewFloorInfo",
-      "businessName": "businessFloor",
-      "businessType": "BUSINESS_TYPE_SAVE_FLOOR_INFO",
+      "code":"branchOrg",
+      "flowKey": "branchOrgId",
+      "cnCode":"选择分公司",
+      "vcName":"viewOrgInfo",
+      "businessName": "businessOrg",
+      "businessType": "BUSINESS_TYPE_SAVE_ORG_INFO",
       "existsComponent": true
     },
     {
       "index": 1,
-      "code":"room",
-      "flowKey": "roomId",
-      "cnCode":"选择房屋",
-      "vcName":"sellRoomSelectRoom",
-      "businessName": "businessRoom",
-      "businessType": "BUSINESS_TYPE_SAVE_ROOM_INFO",
+      "code":"departmentOrg",
+      "flowKey": "departmentOrgId",
+      "cnCode":"选择部门",
+      "vcName":"viewOrgInfo",
+      "businessName": "businessOrg",
+      "businessType": "BUSINESS_TYPE_SAVE_ORG_INFO",
       "existsComponent": true
     },
     {
       "index": 2,
-      "code":"owner",
-      "flowKey": "ownerId",
-      "cnCode":"填写业主信息",
-      "vcName":"addOwner",
-      "businessName": "businessOwner",
-      "businessType": "BUSINESS_TYPE_SAVE_OWNER_INFO",
+      "code":"staff",
+      "flowKey": "userId",
+      "cnCode":"填写员工信息",
+      "vcName":"addStaff",
+      "businessName": "businessStaff",
+      "businessType": "BUSINESS_TYPE_SAVE_STAFF_INFO",
       "existsComponent": false
     }
   ],
   "components": {
-      "addOwner": {
-        "templateName":"添加业主",
-        "templateCode":"addOwner",
-        "package": "ownerPackage",
+      "addStaff": {
+        "templateName":"添加员工",
+        "templateCode":"addStaff",
+        "package": "staffPackage",
         "columns":[
           {
-            "code":"name",
-            "cnCode":"名称",
-            "desc":"必填,名称不能为空",
+            "code":"username",
+            "cnCode":"员工名称",
+            "desc":"必填,员工名称不能为空",
             "required":true,
             "hasDefaultValue":false,
             "inputType":"input",
             "limit":"maxin",
             "limitParam":"2,10",
-            "limitErrInfo":"名称长度必须在2位至10位",
+            "limitErrInfo":"员工名称长度必须在2位至10位",
             "show": true
           },
           {
             "code":"sex",
-            "cnCode":"性别",
-            "desc":"必填,请选择性别",
+            "cnCode":"员工性别",
+            "desc":"必填,请选择员工性别",
             "required":true,
             "hasDefaultValue":false,
             "inputType":"select",
@@ -67,46 +67,46 @@
             "selectValueName":"男,女",
             "limit":"num",
             "limitParam":"",
-            "limitErrInfo":"性别不能为空",
+            "limitErrInfo":"员工性别不能为空",
             "show": true
           },
           {
-            "code":"age",
-            "cnCode":"年龄",
-            "desc":"必填,请填写年龄",
+            "code":"email",
+            "cnCode":"员工邮箱",
+            "desc":"必填,请填写员工邮箱",
             "required":true,
             "hasDefaultValue":false,
             "defaultValue":"",
             "inputType":"input",
-            "limit":"num",
+            "limit":"email",
             "limitParam":"",
-            "limitErrInfo":"年龄不是有效的数字",
-            "show": false
+            "limitErrInfo":"员工邮箱不是有效邮箱",
+            "show": true
           },
           {
-            "code":"link",
+            "code":"tel",
             "cnCode":"手机",
             "desc":"必填,请填写联系方式",
             "required":false,
             "hasDefaultValue":false,
             "defaultValue":"",
-            "inputType":"textarea",
-            "limit":"maxLength",
-            "limitParam":"2000",
-            "limitErrInfo":"输出模板不能超过2000",
-            "show": false
+            "inputType":"input",
+            "limit":"photo",
+            "limitParam":"",
+            "limitErrInfo":"联系方式不是有效手机",
+            "show": true
           },
           {
-            "code":"remark",
-            "cnCode":"备注",
-            "desc":"可填,请填写备注",
-            "required":false,
+            "code":"address",
+            "cnCode":"家庭住址",
+            "desc":"必填,写家庭住址",
+            "required":true,
             "hasDefaultValue":false,
             "defaultValue":"",
-            "inputType":"textarea",
+            "inputType":"input",
             "limit":"maxLength",
             "limitParam":"200",
-            "limitErrInfo":"备注长度不能超过200位",
+            "limitErrInfo":"家庭住址不能超过200位",
             "show": false
           }
         ]

+ 115 - 0
java110-code-generator/src/main/resources/relationship/template_owner.json

@@ -0,0 +1,115 @@
+{
+  "templateName":"添加业主",
+  "templateCode":"addOwner",
+  "templateKey":"ownerId",
+  "templateKeyName":"业主ID",
+  "package": "ownerPackage",
+  "successUrl": "/flow/ownerFlow",
+  "needAffirm": false,
+  "flows":[
+    {
+      "index": 0,
+      "code":"floor",
+      "flowKey": "floorId",
+      "cnCode":"选择楼栋",
+      "vcName":"viewFloorInfo",
+      "businessName": "businessFloor",
+      "businessType": "BUSINESS_TYPE_SAVE_FLOOR_INFO",
+      "existsComponent": true
+    },
+    {
+      "index": 1,
+      "code":"room",
+      "flowKey": "roomId",
+      "cnCode":"选择房屋",
+      "vcName":"sellRoomSelectRoom",
+      "businessName": "businessRoom",
+      "businessType": "BUSINESS_TYPE_SAVE_ROOM_INFO",
+      "existsComponent": true
+    },
+    {
+      "index": 2,
+      "code":"owner",
+      "flowKey": "ownerId",
+      "cnCode":"填写业主信息",
+      "vcName":"addOwner",
+      "businessName": "businessOwner",
+      "businessType": "BUSINESS_TYPE_SAVE_OWNER_INFO",
+      "existsComponent": false
+    }
+  ],
+  "components": {
+      "addOwner": {
+        "templateName":"添加业主",
+        "templateCode":"addOwner",
+        "package": "ownerPackage",
+        "columns":[
+          {
+            "code":"name",
+            "cnCode":"名称",
+            "desc":"必填,名称不能为空",
+            "required":true,
+            "hasDefaultValue":false,
+            "inputType":"input",
+            "limit":"maxin",
+            "limitParam":"2,10",
+            "limitErrInfo":"名称长度必须在2位至10位",
+            "show": true
+          },
+          {
+            "code":"sex",
+            "cnCode":"性别",
+            "desc":"必填,请选择性别",
+            "required":true,
+            "hasDefaultValue":false,
+            "inputType":"select",
+            "selectValue":"1,0",
+            "selectValueName":"男,女",
+            "limit":"num",
+            "limitParam":"",
+            "limitErrInfo":"性别不能为空",
+            "show": true
+          },
+          {
+            "code":"age",
+            "cnCode":"年龄",
+            "desc":"必填,请填写年龄",
+            "required":true,
+            "hasDefaultValue":false,
+            "defaultValue":"",
+            "inputType":"input",
+            "limit":"num",
+            "limitParam":"",
+            "limitErrInfo":"年龄不是有效的数字",
+            "show": false
+          },
+          {
+            "code":"link",
+            "cnCode":"手机",
+            "desc":"必填,请填写联系方式",
+            "required":false,
+            "hasDefaultValue":false,
+            "defaultValue":"",
+            "inputType":"textarea",
+            "limit":"maxLength",
+            "limitParam":"2000",
+            "limitErrInfo":"输出模板不能超过2000",
+            "show": false
+          },
+          {
+            "code":"remark",
+            "cnCode":"备注",
+            "desc":"可填,请填写备注",
+            "required":false,
+            "hasDefaultValue":false,
+            "defaultValue":"",
+            "inputType":"textarea",
+            "limit":"maxLength",
+            "limitParam":"200",
+            "limitErrInfo":"备注长度不能超过200位",
+            "show": false
+          }
+        ]
+      }
+  }
+}

+ 3 - 2
java110-utils/src/main/java/com/java110/utils/constant/PrivilegeCodeConstant.java

@@ -50,7 +50,6 @@ public final class PrivilegeCodeConstant {
     public static final String PRIVILEGE_CAR = "500201906019";
 
 
-
     //停车费用配置权限
     public static final String PRIVILEGE_PARKING_SPACE_CONFIG_FEE = "500201904021";
 
@@ -79,7 +78,7 @@ public final class PrivilegeCodeConstant {
     /**
      * 访客相关权限常量
      */
-    public static final String AGENT_HAS_LIST_VISIT="500201907033";
+    public static final String AGENT_HAS_LIST_VISIT = "500201907033";
 
     /**
      * 服务提供权限编码
@@ -103,5 +102,7 @@ public final class PrivilegeCodeConstant {
     public static final String LIST_ORG = "502019100721900005";
 
 
+    public static final String ADD_STAFF = "";
+
 
 }

+ 16 - 0
java110-utils/src/main/java/com/java110/utils/constant/ServiceCodeAddStaffStepConstant.java

@@ -0,0 +1,16 @@
+package com.java110.utils.constant;
+
+/**
+ * 添加员工常量类
+ * Created by wuxw on 2017/5/20.
+ */
+public class ServiceCodeAddStaffStepConstant {
+
+    /**
+     * 添加 添加员工
+     */
+    public static final String BINDING_ADDSTAFFSTEP = "staff.addStaffStep";
+
+
+
+}