图片套版生成模块
This commit is contained in:
parent
5dfd58f787
commit
20da5aa0a0
@ -22,7 +22,7 @@ public interface IDistributionCardService {
|
|||||||
* 考场分配准考证
|
* 考场分配准考证
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
void buildingPictures(String classPlanId, String planId) throws Exception;
|
void saveBuildingPictures(String classPlanId, String planId) throws Exception;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -19,7 +19,9 @@ import cn.com.tenlion.service.examination.distributioncard.IDistributionCardServ
|
|||||||
import cn.com.tenlion.service.examination.distributionfield.IDistributionFieldService;
|
import cn.com.tenlion.service.examination.distributionfield.IDistributionFieldService;
|
||||||
import ink.wgink.common.base.DefaultBaseService;
|
import ink.wgink.common.base.DefaultBaseService;
|
||||||
import ink.wgink.exceptions.SaveException;
|
import ink.wgink.exceptions.SaveException;
|
||||||
|
import ink.wgink.module.dictionary.pojo.dtos.DataDTO;
|
||||||
import ink.wgink.module.dictionary.service.IAreaService;
|
import ink.wgink.module.dictionary.service.IAreaService;
|
||||||
|
import ink.wgink.module.dictionary.service.IDataService;
|
||||||
import ink.wgink.pojo.ListPage;
|
import ink.wgink.pojo.ListPage;
|
||||||
import ink.wgink.pojo.result.SuccessResult;
|
import ink.wgink.pojo.result.SuccessResult;
|
||||||
import ink.wgink.pojo.result.SuccessResultList;
|
import ink.wgink.pojo.result.SuccessResultList;
|
||||||
@ -61,8 +63,11 @@ public class DistributionCardServiceImpl extends DefaultBaseService implements I
|
|||||||
@Autowired
|
@Autowired
|
||||||
private IApplyService iApplyService;
|
private IApplyService iApplyService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IDataService dataDictionaryServiceImpl;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void buildingPictures(String classPlanId, String planId) throws Exception {
|
public void saveBuildingPictures(String classPlanId, String planId) throws Exception {
|
||||||
/**
|
/**
|
||||||
* 通过planId查找到考试申请信息
|
* 通过planId查找到考试申请信息
|
||||||
*/
|
*/
|
||||||
@ -106,7 +111,8 @@ public class DistributionCardServiceImpl extends DefaultBaseService implements I
|
|||||||
userVO.setField(fieldDTO.getFieldName());
|
userVO.setField(fieldDTO.getFieldName());
|
||||||
userVO.setStation(institutionDTO.getInstitutionName());
|
userVO.setStation(institutionDTO.getInstitutionName());
|
||||||
userVO.setNumber(j+"");
|
userVO.setNumber(j+"");
|
||||||
userVO.setSex(userList.get(i).getApplySex());
|
DataDTO dataDTO = dataDictionaryServiceImpl.get(userList.get(i).getApplySex());
|
||||||
|
userVO.setSex(dataDTO.getDataName());
|
||||||
userVO.setName(userList.get(i).getApplyName());
|
userVO.setName(userList.get(i).getApplyName());
|
||||||
userVO.setIcon(userList.get(i).getApplyUserCardPhoto());
|
userVO.setIcon(userList.get(i).getApplyUserCardPhoto());
|
||||||
userVO.setIdentity(userList.get(i).getApplyCardNumber());
|
userVO.setIdentity(userList.get(i).getApplyCardNumber());
|
||||||
@ -127,7 +133,7 @@ public class DistributionCardServiceImpl extends DefaultBaseService implements I
|
|||||||
distributionCardVO.setClassPlanId(classPlanId);
|
distributionCardVO.setClassPlanId(classPlanId);
|
||||||
distributionCardVO.setDistributionId(distributionDTO.getDistributionId());
|
distributionCardVO.setDistributionId(distributionDTO.getDistributionId());
|
||||||
distributionCardVO.setDistributionCardPictures(base64);
|
distributionCardVO.setDistributionCardPictures(base64);
|
||||||
distributionCardVO.setDistributionCardUserSex(userList.get(i).getApplySex());
|
distributionCardVO.setDistributionCardUserSex(dataDTO.getDataName());
|
||||||
distributionCardVO.setDistributionCardUserIdentity(userList.get(i).getApplyCardNumber());
|
distributionCardVO.setDistributionCardUserIdentity(userList.get(i).getApplyCardNumber());
|
||||||
distributionCardVO.setDistributionCardUserResult("");
|
distributionCardVO.setDistributionCardUserResult("");
|
||||||
distributionCardVO.setDistributionCardUserStatus("0");
|
distributionCardVO.setDistributionCardUserStatus("0");
|
||||||
@ -179,11 +185,7 @@ public class DistributionCardServiceImpl extends DefaultBaseService implements I
|
|||||||
String distributionCardId = UUIDUtil.getUUID();
|
String distributionCardId = UUIDUtil.getUUID();
|
||||||
Map<String, Object> params = HashMapUtil.beanToMap(distributionCardVO);
|
Map<String, Object> params = HashMapUtil.beanToMap(distributionCardVO);
|
||||||
params.put("distributionCardId", distributionCardId);
|
params.put("distributionCardId", distributionCardId);
|
||||||
if (StringUtils.isBlank(token)) {
|
setSaveInfo(params);
|
||||||
setSaveInfo(params);
|
|
||||||
} else {
|
|
||||||
setAppSaveInfo(token, params);
|
|
||||||
}
|
|
||||||
distributionCardDao.save(params);
|
distributionCardDao.save(params);
|
||||||
return distributionCardId;
|
return distributionCardId;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user