use of com.code.server.constant.db.AgentInfoRecord in project summer by foxsugar.
the class IChargeDaoTest method test.
@Test
public void test() {
List<AgentUser> list = (List<AgentUser>) agentUserDao.findAll();
for (AgentUser agentUser : list) {
AgentInfo agentInfo = new AgentInfo();
AgentInfoRecord agentInfoRecord = new AgentInfoRecord();
agentUser.setAgentInfo(agentInfo);
agentUser.setAgentInfoRecord(agentInfoRecord);
agentUserDao.save(agentUser);
}
}
use of com.code.server.constant.db.AgentInfoRecord in project summer by foxsugar.
the class DemoAction method updateAF.
@RequestMapping("/upateAgentInfo")
public void updateAF() {
List<AgentUser> list = (List<AgentUser>) agentUserDao.findAll();
for (AgentUser agentUser : list) {
AgentInfo agentInfo = new AgentInfo();
AgentInfoRecord agentInfoRecord = new AgentInfoRecord();
agentUser.setAgentInfo(agentInfo);
agentUser.setAgentInfoRecord(agentInfoRecord);
agentUserDao.save(agentUser);
}
}
Aggregations