|
|
|
|
@ -11,6 +11,7 @@ import com.imitate.web.params.SecretImportParam;
|
|
|
|
|
import com.imitate.web.params.SecretIssueMailboxParam;
|
|
|
|
|
import com.imitate.web.params.SecretIssuePrivateParam;
|
|
|
|
|
import com.imitate.web.params.SecretIssueSubordinateParam;
|
|
|
|
|
import com.imitate.web.persistence.beans.DeviceType;
|
|
|
|
|
import com.imitate.web.persistence.beans.SecretAsk;
|
|
|
|
|
import com.imitate.web.persistence.beans.SecretBodyAcceptance;
|
|
|
|
|
import com.imitate.web.persistence.beans.SecretFormat;
|
|
|
|
|
@ -30,6 +31,8 @@ import com.imitate.web.persistence.mapper.SecretIssuePrivateMapper;
|
|
|
|
|
import com.imitate.web.persistence.mapper.SecretIssueSubordinateMapper;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import sun.lwawt.macosx.CSystemTray;
|
|
|
|
|
import tk.mybatis.mapper.entity.Example;
|
|
|
|
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
|
@ -146,6 +149,7 @@ public class SecretBodyService {
|
|
|
|
|
SecretImport secretImport5 = new SecretImport();
|
|
|
|
|
SecretImport secretImportVpn = new SecretImport();
|
|
|
|
|
SecretImport secretImportOne = new SecretImport();
|
|
|
|
|
SecretImport secretImportPro = new SecretImport();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -249,6 +253,28 @@ public class SecretBodyService {
|
|
|
|
|
secretImportOne.setImportTime(LocalDateTime.now());
|
|
|
|
|
list.add(secretImportOne);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查询是否已经添加专用秘钥 专用秘钥只需要添加1次
|
|
|
|
|
Example example = new Example(SecretImport.class);
|
|
|
|
|
example.createCriteria().andEqualTo("sysType", sysType).andEqualTo("keyType","专用秘钥装配 PMCS");
|
|
|
|
|
List<SecretImport> proList = secretImportMapper.selectByExample(example);
|
|
|
|
|
if(proList == null){
|
|
|
|
|
//初始化未装配的专用秘钥
|
|
|
|
|
secretImportPro.setSysType(sysType);
|
|
|
|
|
secretImportPro.setKeyType("专用秘钥装配 PMCS");
|
|
|
|
|
secretImportPro.setProductName("专用秘钥装配 PMCS");
|
|
|
|
|
secretImportPro.setProductNum("PMCS");
|
|
|
|
|
secretImportPro.setCarrierType(carrierType);
|
|
|
|
|
secretImportPro.setApplyNum(1);
|
|
|
|
|
secretImportPro.setApplyModel(carrierModel);
|
|
|
|
|
secretImportPro.setNumber(2);
|
|
|
|
|
secretImportPro.setSource(net);
|
|
|
|
|
secretImportPro.setCurrentStatus("未使用");
|
|
|
|
|
secretImportPro.setIsClean(0);
|
|
|
|
|
list.add(secretImportPro);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
secretImportMapper.insertList(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -262,6 +288,7 @@ public class SecretBodyService {
|
|
|
|
|
public PageInfo<SecretImport> secretList(SecretImportParam param) {
|
|
|
|
|
PageHelper.startPage(param.getPageNumber(), param.getPageSize());
|
|
|
|
|
List<SecretImport> list = secretImportMapper.selectAllByParam(param);
|
|
|
|
|
|
|
|
|
|
return new PageInfo<>(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|