|
@@ -84,14 +84,20 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public HttpRespMsg setMeal(Integer companyId) {
|
|
|
+ public HttpRespMsg setMeal(Integer companyId,Integer meal) {
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
Company company = new Company();
|
|
|
company.setId(companyId);
|
|
|
- company.setSetMeal(1);
|
|
|
+ company.setSetMeal(meal);
|
|
|
companyMapper.updateById(company);
|
|
|
String name = companyMapper.selectById(companyId).getCompanyName();
|
|
|
- saveLog("设置["+name+"]为已签约");
|
|
|
+ switch (meal){
|
|
|
+ case 0:saveLog("["+name+"]取消签约");
|
|
|
+ break;
|
|
|
+ case 1:saveLog("设置["+name+"]为已签约");
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
return msg;
|
|
|
}
|
|
|
|