|
|
@@ -7,6 +7,7 @@ import com.jpsoft.employment.modules.base.service.CompanyService;
|
|
|
import com.jpsoft.employment.modules.common.dto.MessageResult;
|
|
|
import com.jpsoft.employment.modules.common.dto.Sort;
|
|
|
import com.jpsoft.employment.modules.common.utils.PojoUtils;
|
|
|
+import com.jpsoft.employment.modules.job.entity.JobUser;
|
|
|
import com.jpsoft.employment.modules.sys.entity.DataDictionary;
|
|
|
import com.jpsoft.employment.modules.sys.service.DataDictionaryService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
@@ -267,4 +268,61 @@ public class CompanyController {
|
|
|
|
|
|
return msgResult;
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value="获取信息")
|
|
|
+ @GetMapping("editChecked/{id}")
|
|
|
+ public MessageResult<Company> editChecked(@PathVariable("id") String id, @RequestAttribute String subject){
|
|
|
+ MessageResult<Company> msgResult = new MessageResult<>();
|
|
|
+
|
|
|
+ try {
|
|
|
+ Company company = companyService.get(id);
|
|
|
+
|
|
|
+ if (company != null) {
|
|
|
+ msgResult.setResult(true);
|
|
|
+ msgResult.setData(company);
|
|
|
+ } else {
|
|
|
+ msgResult.setResult(false);
|
|
|
+ msgResult.setMessage("数据库不存在该记录!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch(Exception ex){
|
|
|
+ logger.error(ex.getMessage(),ex);
|
|
|
+
|
|
|
+ msgResult.setResult(false);
|
|
|
+ msgResult.setMessage(ex.getMessage());
|
|
|
+ }
|
|
|
+
|
|
|
+ return msgResult;
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value="更新用户")
|
|
|
+ @PostMapping("checked")
|
|
|
+ public MessageResult<Company> checked(String id,@RequestAttribute String subject){
|
|
|
+ MessageResult<Company> msgResult = new MessageResult<>();
|
|
|
+
|
|
|
+ try {
|
|
|
+ Company company = companyService.get(id);
|
|
|
+ company.setIsCertification("2");
|
|
|
+ company.setUpdateBy(subject);
|
|
|
+ company.setUpdateTime(new Date());
|
|
|
+
|
|
|
+ int affectCount = companyService.update(company);
|
|
|
+
|
|
|
+ if (affectCount > 0) {
|
|
|
+ msgResult.setResult(true);
|
|
|
+ msgResult.setData(company);
|
|
|
+ } else {
|
|
|
+ msgResult.setResult(false);
|
|
|
+ msgResult.setMessage("数据库更新失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch(Exception ex){
|
|
|
+ logger.error(ex.getMessage(),ex);
|
|
|
+
|
|
|
+ msgResult.setResult(false);
|
|
|
+ msgResult.setMessage(ex.getMessage());
|
|
|
+ }
|
|
|
+
|
|
|
+ return msgResult;
|
|
|
+ }
|
|
|
}
|