6 changed files with 136 additions and 24 deletions
-
3.idea/xm-backend.iml
-
41xm-bootstrap/xm-bootstrap.iml
-
2xm-core/src/main/java/com/xm/core/ctrl/XmTaskController.java
-
38xm-core/src/test/java/com/xm/core/service/TestXmGroupService.java
-
38xm-core/src/test/java/com/xm/core/service/TestXmGroupStateService.java
-
38xm-core/src/test/java/com/xm/core/service/TestXmGroupUserService.java
@ -0,0 +1,38 @@ |
|||||
|
package com.xm.core.service; |
||||
|
|
||||
|
import java.util.*; |
||||
|
import java.text.SimpleDateFormat; |
||||
|
import org.junit.Assert; |
||||
|
import org.junit.Test; |
||||
|
import org.junit.runner.RunWith; |
||||
|
import org.springframework.test.context.ContextConfiguration; |
||||
|
import org.springframework.test.context.ContextHierarchy; |
||||
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
||||
|
import com.mdp.core.utils.BaseUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import com.xm.core.service.XmGroupService; |
||||
|
import com.xm.core.entity.XmGroup; |
||||
|
import org.springframework.boot.test.context.SpringBootTest; |
||||
|
/** |
||||
|
* @author code-gen |
||||
|
* @since 2023-11-10 |
||||
|
*/ |
||||
|
@RunWith(SpringJUnit4ClassRunner.class) |
||||
|
@SpringBootTest |
||||
|
public class TestXmGroupService { |
||||
|
|
||||
|
@Autowired |
||||
|
XmGroupService xmGroupService; |
||||
|
|
||||
|
/** |
||||
|
* 新增一条数据 |
||||
|
***/ |
||||
|
@Test |
||||
|
public void insert() { |
||||
|
Map<String,Object> p=BaseUtils.map("id","PS0R","groupName","zjya","projectId","q50f","pgTypeId","qIVN","pgTypeName","v2Cg","leaderUserid","uhyX","leaderUsername","OfYq","ctime",new Date("2023-11-10 16:33:3"),"ltime",new Date("2023-11-10 16:33:3"),"productId","c40j","branchId","SOEs","pgClass","X","pgroupId","p0dQ","lvl",1521,"pidPaths","J5w5","isTpl","e","assUserid","9LlN","assUsername","emuI","childrenCnt",1697,"userCnt",8957,"qxCode","MnDD","calcWorkload","E","ntype","K","crowBranchId","DYQO","crowBranchName","lMyS","isCrow","9"); |
||||
|
XmGroup xmGroup=BaseUtils.fromMap(p,XmGroup.class); |
||||
|
xmGroupService.save(xmGroup); |
||||
|
//Assert.assertEquals(1, result); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,38 @@ |
|||||
|
package com.xm.core.service; |
||||
|
|
||||
|
import java.util.*; |
||||
|
import java.text.SimpleDateFormat; |
||||
|
import org.junit.Assert; |
||||
|
import org.junit.Test; |
||||
|
import org.junit.runner.RunWith; |
||||
|
import org.springframework.test.context.ContextConfiguration; |
||||
|
import org.springframework.test.context.ContextHierarchy; |
||||
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
||||
|
import com.mdp.core.utils.BaseUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import com.xm.core.service.XmGroupStateService; |
||||
|
import com.xm.core.entity.XmGroupState; |
||||
|
import org.springframework.boot.test.context.SpringBootTest; |
||||
|
/** |
||||
|
* @author code-gen |
||||
|
* @since 2023-11-10 |
||||
|
*/ |
||||
|
@RunWith(SpringJUnit4ClassRunner.class) |
||||
|
@SpringBootTest |
||||
|
public class TestXmGroupStateService { |
||||
|
|
||||
|
@Autowired |
||||
|
XmGroupStateService xmGroupStateService; |
||||
|
|
||||
|
/** |
||||
|
* 新增一条数据 |
||||
|
***/ |
||||
|
@Test |
||||
|
public void insert() { |
||||
|
Map<String,Object> p=BaseUtils.map("planStartTime",new Date("2023-11-10 16:33:3"),"planEndTime",new Date("2023-11-10 16:33:3"),"actStartTime",new Date("2023-11-10 16:33:3"),"actEndTime",new Date("2023-11-10 16:33:3"),"planWorkload",1073.08,"actWorkload",7946.42,"planCostAmount",2655.46,"actCostAmount",2094.76,"finishRate",3413.5,"demandRate",7640.24,"designRate",9242.96,"devRate",8315.16,"uatRate",3971.94,"sitRate",2932.46,"ctime",new Date("2023-11-10 16:33:3"),"calcTime",new Date("2023-11-10 16:33:3"),"planWorkhours",756.86,"planWorkerCnt",6995.62,"closedBugs",939,"activeBugs",7671,"confirmedBugs",9137,"resolvedBugs",5801,"testCases",9705,"execCases",915,"designCases",1329,"finishCases",3450,"iterationCnt",1548,"taskCnt",7039,"finishTaskCnt",901,"bizDate","n1xJ","bugCnt",1553,"groupId","ki4Q","projectId","refF","projectName","8r4q","groupName","qmay"); |
||||
|
XmGroupState xmGroupState=BaseUtils.fromMap(p,XmGroupState.class); |
||||
|
xmGroupStateService.save(xmGroupState); |
||||
|
//Assert.assertEquals(1, result); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,38 @@ |
|||||
|
package com.xm.core.service; |
||||
|
|
||||
|
import java.util.*; |
||||
|
import java.text.SimpleDateFormat; |
||||
|
import org.junit.Assert; |
||||
|
import org.junit.Test; |
||||
|
import org.junit.runner.RunWith; |
||||
|
import org.springframework.test.context.ContextConfiguration; |
||||
|
import org.springframework.test.context.ContextHierarchy; |
||||
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
||||
|
import com.mdp.core.utils.BaseUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import com.xm.core.service.XmGroupUserService; |
||||
|
import com.xm.core.entity.XmGroupUser; |
||||
|
import org.springframework.boot.test.context.SpringBootTest; |
||||
|
/** |
||||
|
* @author code-gen |
||||
|
* @since 2023-11-10 |
||||
|
*/ |
||||
|
@RunWith(SpringJUnit4ClassRunner.class) |
||||
|
@SpringBootTest |
||||
|
public class TestXmGroupUserService { |
||||
|
|
||||
|
@Autowired |
||||
|
XmGroupUserService xmGroupUserService; |
||||
|
|
||||
|
/** |
||||
|
* 新增一条数据 |
||||
|
***/ |
||||
|
@Test |
||||
|
public void insert() { |
||||
|
Map<String,Object> p=BaseUtils.map("joinTime",new Date("2023-11-10 16:33:3"),"groupId","i297","userid","ztct","username","FNbW","outTime",new Date("2023-11-10 16:33:3"),"status","f","obranchId","1zPT","isPri","F","seqNo",5179,"projectId","Y968","productId","80g5","pgClass","G","obranchName","R9eR"); |
||||
|
XmGroupUser xmGroupUser=BaseUtils.fromMap(p,XmGroupUser.class); |
||||
|
xmGroupUserService.save(xmGroupUser); |
||||
|
//Assert.assertEquals(1, result); |
||||
|
} |
||||
|
|
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue